GATE Computer ScienceVery hardGATE CS (PYQ pattern)
aₙ = 3aₙ₋₁ − 4aₙ₋₃ with a₀ = 1, a₁ = 2, a₂ = 5. What is a₁₂?
- A. 11833
- B. 4096
- C. 5120
- 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
- How many binary strings of length 14 contain neither 00 nor 111 as a substring?
- How many binary strings of length 14 contain neither 010 nor 101 as a substring?
- In how many ways can a 2 × 10 rectangle be tiled with 1 × 2 dominoes (placed either way) and 2 × 2 squares?
- Ten distinct lines are drawn in the plane so that exactly 4 of them are mutually parallel, no other two are parallel and no three lines…
- 100 people stand in a circle numbered 1 to 100. Starting with person 1, every second person still in the circle is eliminated (1 goes…
- 14 identical sweets are distributed among 4 children A, B, C, D so that each child gets at least 1 and at most 5. In how many…