🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Because 2ⁿ grows too fast
  2. B.Because the initial value is 1
  3. C.Because 2 is already a root of the homogeneous part, so the guess gives P = P + 1
  4. 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 →