I want to compute elements of a recursive sequence and use them as coefficients of a power series. However, the (i+1)-th element depends on all previous elements. Writing this as a sum in RecurrenceTable
doesn't work. d[l]
is a regularly defined function.
RecurrenceTable[{c[i + 1] == 1/((i + 1) d[0]) Sum[(l (5 + 1) - (i + 1))
d[l] c[i + 1 - l], {l, 1,
i + 1}] , c[1] == d[0]^5}, c, {i, 1, 10}]
The code needs to be adjusted so that RecurrenceTable
understands that the c[l]
in the Sum
are the ones to be used for the recursion relation. This error shows up:
All arguments in position 1 of c[1+i]==\!\(\*UnderoverscriptBox[\(\
[Sum]\), \(l = 1\), \(1 + i\)]\(\((\(-1\) - i + 6\ l)\)\ c[1 + i -
l]\)\)/(1+i) should be in the form i + integer.
Can I do this with RecurrenceTable
or do I need to write a brute force code that computes the sequence?
c[0]
, which is not defined. Other than that I think it would be easier to just use normal definitions to get the sequence. $\endgroup$