A sequence satisfies
with and .
Given that for constants and , find .
Write the characteristic equation. For a linear recurrence with constant coefficients, guessing turns the relation into an algebraic equation. Substituting into and dividing by :
Use the repeated-root form of the general solution. A double root gives only one geometric solution , so the second independent solution picks up a factor of :
This is the step students most often get wrong — writing collapses to a single constant and cannot match two independent initial values.
Fit the two initial conditions. From :
From :
So . A quick sanity check: , and directly . They agree.
Evaluate at and factor the coefficient.
Pulling out the common factor before multiplying is what makes the last step clean — expanding first gives , and you would then have to divide it back by .
Read off and and divide. Matching gives and , so
The factor cancels exactly, which is the whole point of how the problem was built: the answer is .
Need to solve a different problem like this? Open the solver →