← Quiz: Solving Recurrences: all 15 questions
Quiz: Solving Recurrences · Question 5 of 15
For aₙ = 2aₙ₋₁ + 2ⁿ, why does the guess P·2ⁿ fail?
For aₙ = 2aₙ₋₁ + 2ⁿ, why does the guess P·2ⁿ fail?
- A.Because 2ⁿ grows too fast
- B.Because the initial value is 1
- C.Because 2 is already a root of the homogeneous part, so the guess gives P = P + 1
- D.Because particular solutions must be polynomials
Answer & explanation
Correct answer: Because 2 is already a root of the homogeneous part, so the guess gives P = P + 1
This is resonance; multiply the guess by n to get P·n·2ⁿ, which gives P = 1.
Can you get the rest right without peeking?
Take the timed Quiz: Solving Recurrences quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →