Mathematics (JEE)HardGATE CS

How many compositions (ordered sequences of positive integers) of 10 use only the parts 1, 3 and 4?

  1. A. 8
  2. B. 401
  3. C. 64
  4. D. 40

Correct answer: C. 64

Order matters, so f(n) = f(n-1) + f(n-3) + f(n-4) with f(0)=1 gives f(10) = 64.

More Permutations, Combinations and Probability questions

Exams that ask this topic