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.
with⁡LREtools:
rec≔a⁡n−9⁢a⁡n+1+26⁢a⁡n+2−34⁢a⁡n+3+21⁢a⁡n+4−5⁢a⁡n+5=0:
constcoeffsol⁡rec,a⁡n,∅
−−3125⁢a⁡4256−3125⁢a⁡0256+3125⁢a⁡164−9375⁢a⁡2128+3125⁢a⁡364⁢15n5+5⁢a⁡44+a⁡04−2⁢a⁡1+9⁢a⁡22−4⁢a⁡3⁢n+1⁢n+2⁢n+36−85⁢a⁡416+21⁢a⁡016−41⁢a⁡14+175⁢a⁡28−73⁢a⁡34⁢n+1⁢n+22+565⁢a⁡464+181⁢a⁡064−341⁢a⁡116+1343⁢a⁡232−517⁢a⁡316⁢n+1−1845⁢a⁡4256−821⁢a⁡0256+1461⁢a⁡164−5023⁢a⁡2128+1781⁢a⁡364
rec≔a⁡n+4=−a⁡n+3+3⁢a⁡n+2+5⁢a⁡n+1+2⁢a⁡n:
−2⁢−a⁡354−a⁡218−a⁡118−a⁡054⁢2n+−13⁢a⁡327−4⁢a⁡29+14⁢a⁡19+68⁢a⁡027⁢−1n+−a⁡33+a⁡1+2⁢a⁡03⁢−1n⁢n+1⁢n+22+7⁢a⁡39+a⁡23−8⁢a⁡13−20⁢a⁡09⁢−1n⁢n+1
rec≔a⁡n+2−2⁢a⁡n+1−a⁡n=0:
−−3⁢a⁡04+a⁡14⁢2−1+a⁡04−a⁡14⁢2−1−n2−1−−3⁢a⁡04+a⁡14⁢−1−2+a⁡04−a⁡14⁢−1−2−n−1−2
See Also
LREtools[REcreate]
RESol
rsolve
Download Help Document