If I’m not posting this in the correct place, someone, please tell me where to post it.
I have a linear recursion: f(n + 2) = (1/n) + (1 + 1/n) f(n), that I am trying to estimate the behavior of for large values of n. The solution is hideous (which is why I’m using Mathematica), and I don’t know if I’m using the right tool.
I solved the recursion using RSolve. Then I tried to use Series[(…),{n, Infinity, 2}] to get the large n behavior, but the program flatly refused to do it. I fiddled with it for a while but couldn’t get anywhere.
Too complicated, I suspect. Is there another tool I can approach this with?
(I can, of course, just calculate the series and do a polynomial fit, but I’m trying to find a way to generate the solution from the recursion itself.)
Welcome to Wolfram Community!
Please Edit your post and provide your trials in terms of Wolfram Language code. This will make it easier for other members to help you.
Umm… Okay, let’s do this. The formula that RSolve gave is not very “tight” as far as a good solution is written. It spans about 30 lines. I solved the problem on paper, and though I haven’t fully checked the work the expression is giving me the same problem.
Here is a term in the expression:
Product[(Product[2 k - 1, {k, 1, j - 1}]/Product[2 k, {k, 1, j - 1}])^2, {j, 1, n - 1}]
When I try to expand this for large n using Series:
it simply won’t perform the calculation. Again, I’m not faulting the program, I’m asking it to do a rather hard job. I am wondering if there might be a better tool to use for this or if the built in Mathematica tools aren’t set up for something like this.
There is a free tier of the Wolfram Cloud, in case you want to try the current version of the software.
As for even vs odd, this becomes computationally easier if you make it first order instead of second, and then after the fact change n to 2*n or 2*n+1 as appropriate.