Mathematics (JEE)HardGATE CS
How many compositions (ordered sequences of positive integers) of 10 use only the parts 1, 3 and 4?
- A. 8
- B. 401
- C. 64
- 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.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many distinct arrangements of the letters of COMMITTEE have no two E's next to each other?
- How many distinct arrangements of the letters of SUCCESS have no two S's next to each other?
- How many distinct arrangements of the letters of PARALLEL have all three L's next to each other?
- How many distinct arrangements of the letters of AABBCC have no two identical letters next to each other?
- In how many ways can 8 identical balls be placed into 3 distinct boxes so that each box gets between 1 and 4 balls inclusive?
- In how many ways can 7 distinct people be assigned to 3 distinct rooms so that every room gets at least 2 people?