A second-order linear recurrence relation normally uses two consecutive initial conditions, but two specified nonconsecutive values may also determine a unique solution of the linear recurrence relation. For two independent homogeneous solutions of the linear recurrence relation , the coefficients in are determined by exactly when . Otherwise the data can be inconsistent or can leave freedom. A nonconsecutive subscript is therefore not by itself evidence of an error.
For a repeated characteristic root of a linear recurrence , use , . The determinant is for distinct , so any such pair of prescribed values determines the two coefficients.
For , subtract the equilibrium to get . Hence . For , the solution is . The exceptional factor in a formula with is avoided by retaining the given initial value.
A linear recurrence matrix advances a vector of quantities by a fixed linear map: , hence . It can encode several simultaneous linear recurrences and need not satisfy the normalization required of a Markov chain transition matrix.
The Kitamasa algorithm evaluates a term of an order- linear recurrence by reducing powers of modulo its characteristic polynomial of a linear recurrence. If the recurrence relation is , reduce modulo by exponentiation by squaring; the resulting coefficients give as a linear combination of . Straightforward polynomial multiplication gives arithmetic operations.
For two solutions of the linear recurrence relation , their discrete Wronskian obeys . Substitute the recurrence into : the terms cancel and the remaining expression is . Iteration gives , including when some vanish. A nonzero discrete Wronskian proves linear independence of the two solutions.
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 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.
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.
A variable-coefficient affine recurrence is a linear recurrence relation with coefficients allowed to depend on the index. If every is nonzero, a discrete integrating factor reduces it to a telescoping series.
For , put and , with . Dividing by this accumulated homogeneous growth gives and . A telescoping series then provesThis is the discrete counterpart of the integrating factor for a first-order linear differential equation.
For a constant-coefficient linear recurrence relation, substituting a trial sequence produces a polynomial equation in called its characteristic equation. Repeated roots contribute factors polynomial in .
A nonzero root of multiplicity supplies independent solutions to a constant-coefficient linear recurrence relation. Substitution reduces its repeated factor to the th forward difference operator. A zero root needs separate initial-data treatment: for characteristic polynomial , the recurrence is , leaving the first values arbitrary.
For a linear recurrence relation with two distinct characteristic equation of a linear recurrence roots , the solution is . If , boundedness for forces , and fixes . This selects the decaying discrete mode in a finite difference method for a boundary problem on an unbounded interval. Roots on the unit circle require separate treatment; a repeated root there can contribute an unbounded factor .
For a sequence , the ordinary generating function isMultiplying a linear recurrence by and summing converts shifts of the sequence into polynomial multiples of .
Articles by others on the same topic
There are currently no matching articles.