GATE Computer ScienceVery hardGATE CS (PYQ pattern)

aₙ = 3aₙ₋₁ − 4aₙ₋₃ with a₀ = 1, a₁ = 2, a₂ = 5. What is a₁₂?

  1. A. 11833
  2. B. 4096
  3. C. 5120
  4. D. 13881

Correct answer: A. 11833

The characteristic polynomial x³ − 3x² + 4 = (x + 1)(x − 2)², so aₙ = A(−1)ⁿ + (B + Cn)2ⁿ; the closed form aₙ = A(−1)ⁿ + (B + Cn)2ⁿ is fixed by a₀, a₁, a₂, and iterating the recurrence from them gives a₁₂ = 11833.

More Discrete Mathematics questions

Exams that ask this topic