How can u(0) = 0.6 when I give u(0) = 1? I would have expected to get
1, 3^1/1=3, 3^3/2, etc. in the same way that the first sequence values were 1, 2^1/1 = 2, 2^2/2 = 2, 2^2/3 = 1.33333 etc.
What am I doing wrong, and how to explain the result in the second case?
Please provide your code…but the most likely is that you do not use a SetDelayed (:=) for the definition of u[n] or that you don’t Clear u before redefining it.
Please note that the recurrence with a 3 is quickly divergent (overfow at n=5).
In[9]:= u[4] // N
Out[9]= 2.054631331186877*10^439181
In[10]:= u[5] // N
During evaluation of In[10]:= General::ovfl: Overflow occurred in computation. >>
Out[10]= Overflow[]
Thank you for your answer…
I realize I might have given the wrong tags to my question, it is not a mathematica program, just the input that I give to Wolfram Alpha…
( Sequence with 2 and Sequence with 3 )
Could this overflow that you mention be the reason of the strange output in the second case? Or am I doing a stupid mistake somewhere?