The unit-response sequence , is six-periodic. In the displayed convolution, all older terms cancel under by this recurrence; the two new boundary terms reduce to . Thus it gives a particular solution of the inhomogeneous linear recurrence with forcing . Add the two-dimensional homogeneous span of and for the general solution. This is a discrete Green function construction.
An inhomogeneous linear recurrence has a prescribed forcing sequence rather than zero on the right. The difference of two solutions satisfies the associated homogeneous linear recurrence relation, so every solution is a particular solution plus a homogeneous solution.
The forcing base is a root of the characteristic equation of a linear recurrence, so a constant multiple of cannot be a particular solution. For , direct substitution gives
For the resonant case of exponential forcing in a linear recurrence, at , and . Hence is a particular solution of the inhomogeneous linear recurrence. The general solution is
Let . For the exponential trial sequence ,
Thus gives a particular solution. The difference of any two solutions of the inhomogeneous linear recurrence satisfies the homogeneous linear recurrence relation in part (i). Therefore
Eliminate the free constant by comparing consecutive values:
Therefore an appropriate inhomogeneous linear recurrence is
Its homogeneous part has solution , and is a particular solution. A first-order linear recurrence relation has one arbitrary initial value, so this gives exactly the desired general solution.