I have a recursive expression defined as $$ h_u= (1-a)(1-b) h_{u-1} + \sum_{k=2}^{u-1} (1-a) b h_{u-1-k} - \sum_{k=2}^{u} h_{u-k} - \sum_{k=1}^{u+1} \Lambda_{u,k} $$ where $\Lambda_{u,k} = \sum_{m=u-k+1}^{u-k+y}(1-a)\frac{1}{4}\left(\frac{3}{4}\right)^{m-1}$. Here $u$ is the recursion index taking integer values in $\mathbb{N}_0$. $y$ is a parameter taking integer values in $\mathbb{N}$. $a$ and $b$ are fixed constants.
The initial value is $h_0 = \frac{a}{(1-a)(1-b)}\left[ (b+a)^{2} M_1 - (1-b) M_2\right]$ with $M_1 = \sum_{u=0}^{\infty} \sum_{k=u+1}^{u+y} (1-a) \left[ \left(\frac{3}{4}\right)^{k-1} - \left(\frac{1}{2}\right)^{k-1}\right]$ and $M_2 = \sum_{k=1}^{y} (1-a) \left[ \left(\frac{3}{4}\right)^{k-1}\right]$. $h_0$ is the initial value (also depends on the parameter $y$) of $h_u$ for a given value of $y$.
My attempts:
a = 5/6;
b = 1/46;
\[CapitalLambda] = FullSimplify@Sum[(1 - a)/4 * (3/4)^(m - 1), {m, u - k + 1, u - k + y}];
M1 = FullSimplify@Sum[(1 - a) (3/4)^k - 1 - (1/2)^(k - 1), {u, 0, Infinity}, {k, u + 1, u + y}];
M2 = FullSimplify@Sum[(1 - a) (3/4)^(k - 1), {k, 1, y}];
h[0] = a/((1 - a) (1 - b)) ( (b + a)^2 M1 - (1 - b) M2);
h[u_] := h[u] = (1 - a) (1 - b) h[u - 1] + FullSimplify@ Sum[(1 - a) b h[u - 1 - k], {k, 2, u - 1}] h[u - 1 - k] + FullSimplify@ Sum[h[u - k], {k, 2, u}] - FullSimplify@ Sum[\[CapitalLambda] , {k, 1, u + 1}];
.
T = Table[ {u, h[u]}, {u, 1, 30}] // N Grid[T, Frame -> All
I fixed $y$ and ran the Mathematica program several times and generated a table of values of $h[u]$ for $\lbrace u,0,30\rbrace$ and compiled them in excel. But this is the hard way around.
I would like to know if a table of values of u for each value of the parameter y and also their asymptotic values can be generated using Mathematica. I used $'Manipulate'$ as described in Defining a recursive function with additional parameters that can be used in a Manipulated ListPlot to generate a plot by including the parameter inside the recursive function but there too, I am getting an empty plot. I also tried using $RSolve$ , but that too did not give me any result.
Can I get some help in resolving the above mentioned issue?
Many thanks.
InputForm
) that can be copied and pasted into a notebook. $\endgroup$M1
the term(3/4)^k - 1
should be ``(3/4)^(k - 1)` . I have not checked for other typos. I did notice, however, than many of the intermediate sums can be performed symbolically, saving a lot of computing time. $\endgroup$h[u]
are ill-defined foru = 1
andu = 2
. $\endgroup$