LREtools
constcoeffsol
find all solutions of linear recurrence equations with constant coefficients
Calling Sequence
Parameters
Description
Examples
constcoeffsol(problem)
problem
-
problem statement or RESol for a single equation in a single recurrence variable
Finds all solutions of the linear recurrence equation with constant coefficients.
Optionally, one can specify output=basis or output=gensol, which specifies respectively that one wants a basis of the solutions or a generic solution. The initial conditions that may be associated to the problem are only used in the generic solution case. Arbitrary constants for the basis case are represented as _C[1], _C[2], ..., _C[n], where the _C is an escaped local variable.
See the help page for LREtools[REcreate] for the definition of the format of a problem.
withLREtools:
rec≔an−9an+1+26an+2−34an+3+21an+4−5an+5=0:
constcoeffsolrec,an,∅
−−3125a4256−3125a0256+3125a164−9375a2128+3125a36415n5+5a44+a04−2a1+9a22−4a3n+1n+2n+36−85a416+21a016−41a14+175a28−73a34n+1n+22+565a464+181a064−341a116+1343a232−517a316n+1−1845a4256−821a0256+1461a164−5023a2128+1781a364
rec≔an+4=−an+3+3an+2+5an+1+2an:
−2−a354−a218−a118−a0542n+−13a327−4a29+14a19+68a027−1n+−a33+a1+2a03−1nn+1n+22+7a39+a23−8a13−20a09−1nn+1
rec≔an+2−2an+1−an=0:
−−3a04+a142−1+a04−a142−1−n2−1−−3a04+a14−1−2+a04−a14−1−2−n−1−2
See Also
LREtools[REcreate]
RESol
rsolve
Download Help Document