Mathematics (JEE)HardCAT · MBA placement

In how many ways can 12 be written as an ordered sum of parts, each part equal to 2 or 3?

  1. A. 9
  2. B. 12
  3. C. 14
  4. D. 16

Correct answer: B. 12

The last part is 2 or 3, so c(n) = c(n−2) + c(n−3) with c(0) = 1, c(1) = 0, c(2) = 1, and the recurrence gives c(12) = 12. Option 9 is c(11), an off-by-one error.

More Permutations, Combinations and Probability questions

Exams that ask this topic