Mathematics (JEE)Hard

In how many ordered ways can 6 be written as a sum of 1s and 2s (order of the summands matters)?

  1. A. 8
  2. B. 21
  3. C. 34
  4. D. 13

Correct answer: D. 13

The count satisfies a_n = a_{n−1} + a_{n−2} with a_1 = 1 and a_2 = 2, giving a_6 = 13. The value 8 = a_4 is an earlier term, and 21 = a_8.

More Permutations, Combinations and Probability questions

Exams that ask this topic