RSolve¶
Solve recurrence equations.
The general solution of a first-order linear recurrence anchors its constant at
n = 1, so the root carries the exponent n - 1.
With an initial condition the constant is determined.
An initial condition at a non-zero index shifts the exponent accordingly.
A repeated characteristic root contributes an extra factor of n per
multiplicity.