Placement AptitudeHardCapgemini · TCS NQT

A sequence has f(1) = 1, f(2) = 3 and f(n) = f(n − 1) + f(n − 2) for n ≥ 3. What is f(8)?

  1. A. 29
  2. B. 76
  3. C. 47
  4. D. 34

Correct answer: C. 47

The terms are 1, 3, 4, 7, 11, 18, 29, 47, so f(8) = 47. 34 is the 9th Fibonacci number, from starting 1, 1 by mistake.

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic