Mathematics (JEE)HardCodeforces Div2 B

How many compositions of 12 exist using only parts 1 and 2? Sequences that differ in order count as different.

  1. A. 7
  2. B. 927
  3. C. 233
  4. D. 144

Correct answer: C. 233

Compositions satisfy f(n) = f(n-1) + f(n-2), a Fibonacci recurrence, so f(12) = F(13) = 233.

More Permutations, Combinations and Probability questions

Exams that ask this topic