🎙 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 4 of 15

For aₙ = 3aₙ₋₁ + 2ⁿ, what should you try as the particular solution?

For aₙ = 3aₙ₋₁ + 2ⁿ, what should you try as the particular solution?

  1. A.P·2ⁿ
  2. B.P·n·2ⁿ
  3. C.P·3ⁿ
  4. D.A constant P
Answer & explanation

Correct answer: P·2ⁿ

2 is not a root of r = 3, so a plain P·2ⁿ works (P turns out to be −2).

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 →