The Characteristic Equation Method
For , solve . With distinct roots : , where come from the first two terms.
In plain terms. Guess , and the recurrence becomes a quadratic in . Every solution is a mix of the two root-powers; the starting values fix the mix.
Example. has roots ; with the mix is exactly.
Why it works. Try : the recurrence becomes , i.e. . So each root gives a solution, and because the recurrence is linear, any combination is a solution too. Two free constants match any two starting values, and a sequence is fixed by its first two terms, so these are all the solutions.
If the characteristic equation has a double root , the general solution gains a factor of : .
In plain terms. One root cannot carry two initial conditions alone — the extra in front supplies the second degree of freedom.
Example. has : with , .
Fibonacci is the recurrence with roots and : .
In plain terms. The golden ratio IS the characteristic root of Fibonacci. Since , is the nearest integer to — closed forms tame huge indices instantly.
Example. Sums telescope too: , so the first ten sum to .
Find the remainder when is divided by .
Spotting it. are the roots of , so satisfies and is an integer. The second term is tiny, which pins down the floor.
Step 1. , , then , , , , .
Step 2. (indeed ), so and its floor is .
Step 3. The remainder is .
, and . Find the remainder when is divided by .
Spotting it. is : a double root, so the solution has the form .
Step 1. and , so and .
Step 2. Check: ✓
Step 3. , and the remainder is .
Using when the roots coincide. For the only root is , and is really one constant: it cannot match , (it would need and ). The missing solution is , which is why a double root needs .
, and . Find .
Show the answerHide the answer
The characteristic equation has roots and , so with and : , . Then . Check by iterating: ✓
Solving Recurrences Two Ways
For , solve : distinct roots give , a repeated root gives .
Fibonacci has , roots , hence Binet's formula. The constants come from the initial terms, and forgetting that a repeated root needs the extra factor is the standard error — check any closed form against and before using it.
Set , multiply the recurrence by , sum, and solve for ; partial fractions recovers .
For with you can also just iterate: . Generating functions earn their keep when the recurrence has a non-constant forcing term or a convolution, where telescoping and characteristic equations both fail.
Solve with , .
Step 1 — characteristic equation , roots and .
Step 2 — .
Step 3 — and give , , so . Check: and ✓
and . Find the remainder when is divided by .
Spotting it. The forcing term is a polynomial of degree , so look for a particular solution of the same shape, , and add the homogeneous part .
Step 1. for all means and , so and .
Step 2. , and gives : . Check: and ✓
Step 3. , and the remainder is .
Trusting a closed form you have not tested. After solving for the constants, compute (or ) both from the recurrence and from the formula. In the worked example, a sign slip giving still matches but gives instead of ; the check catches it in seconds.
with . Find a closed form.
Show the answerHide the answer
Add to both sides: , so and .
Constant Terms, Substitutions and Periodicity
For with , subtract the fixed point : then , a geometric sequence. For recurrences like , the reciprocals are arithmetic. And any recurrence taken modulo is eventually periodic.
Why it works. The fixed point satisfies ; subtracting that from cancels and leaves a pure multiple. Taking reciprocals of gives . And modulo a recurrence of order has at most possible windows of consecutive terms, so some window repeats and from then on the sequence cycles.
and . Find the remainder when is divided by .
Spotting it. A constant term spoils the pure geometric pattern; the fixed point , i.e. , removes it.
Step 1. , so and .
Step 2. , so the remainder is . Check the start: , ✓
and . Then in lowest terms. Find .
Spotting it. A fraction whose denominator is : reciprocals turn it into an arithmetic sequence.
Step 1. .
Step 2. , so and .
Step 3. .
What is the last digit of the Fibonacci number (with )?
Spotting it. Last digits of Fibonacci numbers follow the same recurrence mod , so they are periodic. The period of the pair is : the pair first returns at .
Step 1. , so .
Step 2. , so the last digit is . (Without the exact value: , and the last digits of are , giving , last digit .)
Solving the homogeneous part and stopping. For , writing and fitting gives , which already fails at (). The constant term needs its own particular solution, the fixed point ; only then does the geometric part carry the initial condition.
and . Find the remainder when is divided by .
Show the answerHide the answer
The fixed point solves , so and . Then , and the remainder is .