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.
The golden-ratio recurrence has irrational characteristic roots, so its
solutions are expressed in the Fibonacci/LucasL basis.
The nonlinear logistic map a[n+1] == 4 a[n] (1 - a[n]) (the fully chaotic
case) has the closed form (1 - Cos[2^n*ArcCos[1 - 2 c]])/2 for the initial
condition a[0] == c.
$ wo 'RSolve[{x[n + 1] == 4 x[n] (1 - x[n]), x[0] == 1/10}, x, n]'
{{x -> Function[{n}, (1 - Cos[2^n*ArcCos[4/5]])/2]}}
Without an initial condition the phase stays an arbitrary constant.