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 A⁡k⁢y⁡k+1+B⁡k⁢y⁡k=C⁡k 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.
with⁡LREtools:
prob≔REcreate⁡y⁡k+1−b⁢y⁡k=a,y⁡k,y⁡0=c−ab−1
prob≔RESol⁡y⁡k+1−b⁢y⁡k=a,y⁡k,y⁡0=−−c⁢b+a+cb−1,INFO
firstlin⁡prob
bk⁢−a⁢1bk+b⁢c−cb−1
firstlin⁡y⁡k+3−exp⁡2⁢k+4⁢y⁡k+2=0,y⁡k,∅
ⅇk⁢k−1⁢y⁡0
firstlin⁡u⁡n+1=2⁢u⁡n⁢n+1n,u⁡n,∅
u⁡0=0,u⁡n=n⁢2n−1⁢u⁡1
See Also
LREtools[REcreate]
RESol
rsolve
Download Help Document