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.
- A. 7
- B. 7949
- C. 77
- 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.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many partitions of 100 into distinct parts, each part at most 15? (Order of parts is ignored.)
- How many non-negative integer solutions (a, b, c, d) satisfy a + 2b + 3c + 4d = 40?
- How many distinct arrangements of the letters of STATISTICS have no two identical letters next to each other?
- How many distinct arrangements of the letters of ABRACADABRA have no two A's next to each other?
- How many distinct arrangements of the letters of ENGINEERING begin and end with the same letter?
- In how many ways can 9 distinct balls be placed into 4 distinct boxes so that no box is empty?