Let be the forward shift on sequences and the polynomial defining a constant-coefficient linear recurrence relation. For a nonzero base , , so is a particular solution when . At a simple root of the characteristic equation of a linear recurrence, the correct trial acquires a factor :
The identity follows by substituting into each shift term. A root of multiplicity analogously requires a degree- polynomial factor; the lower-degree homogeneous terms are supplied by the repeated characteristic root of a linear recurrence.
Substitution of gives the characteristic equation of a linear recurrence
The repeated characteristic root of a linear recurrence supplies the solutions and , while the simple root supplies . They are linearly independent: their values at three consecutive indices have nonzero determinant. A third-order linear recurrence relation is uniquely determined by three consecutive initial values, so these three solutions span its solution space. The general solution is
Substitution of into the linear recurrence relation gives . Since , division by proves the sequence is a solution exactly when .
For a nonzero triple root of a polynomial , the repeated characteristic root of a linear recurrence rule gives the three independent solutions . One way to see the polynomial factors is to write : the recurrence becomes the third forward difference operator applied to equal to zero, so is a quadratic polynomial. Thus
These three constants give arbitrary initial values , hence the full third-order solution. If , the recurrence instead reduces to : the first three values are arbitrary and every subsequent value is zero. The nonzero-root formula must not be used to discard those initial values.