LREtools
firstlin
find solutions of First Order Linear Recurrence Equations
Calling Sequence
Parameters
Description
Examples
firstlin(problem)
problem
-
problem statement or RESol
Solves first order, linear recurrence equations.
A first order linear recurrence equation in y(k) is Akyk+1+Bkyk=Ck where A(k), B(k), and C(k) are independent of y(k).
If A(k) is undefined for some k, then a set of equations may be returned, giving values of y(k) for specific k as well as the general formula.
See the help page for LREtools[REcreate] for the definition of the format of a problem.
withLREtools:
prob≔REcreateyk+1−byk=a,yk,y0=c−ab−1
prob≔RESolyk+1−byk=a,yk,y0=−−cb+a+cb−1,INFO
firstlinprob
bk−a1bk+bc−cb−1
firstlinyk+3−exp2k+4yk+2=0,yk,∅
ⅇkk−1y0
firstlinun+1=2unn+1n,un,∅
u0=0,un=n2n−1u1
See Also
LREtools[REcreate]
RESol
rsolve
Download Help Document