ProgrammingVery hard

The matrix [[1,1],[1,0]] raised to the 10th power, computed by fast exponentiation, has entry [0][1] equal to which Fibonacci number?

  1. A. 34
  2. B. 55
  3. C. 89
  4. D. 21

Correct answer: B. 55

The power M^n has F(n+1) in [0][0], F(n) in [0][1] and [1][0]. So [0][1] = F(10) = 55 with F(1) = F(2) = 1.

More C Programming questions

Exams that ask this topic