Mathematics (JEE)HardGATE CS

How many ordered sequences (compositions) of positive integers with sum 15 use only the part sizes 2, 3 and 5? Sequences that differ in order count as different.

  1. A. 7
  2. B. 7949
  3. C. 77
  4. D. 51

Correct answer: C. 77

A composition is an ordered sequence, so f(n) = f(n-2)+f(n-3)+f(n-5) with f(0)=1 gives f(15) = 77.

More Permutations, Combinations and Probability questions

Exams that ask this topic