Mathematics (JEE)HardCodeforces Div2 B
How many compositions of 12 exist using only parts 1 and 2? Sequences that differ in order count as different.
- A. 7
- B. 927
- C. 233
- D. 144
Correct answer: C. 233
Compositions satisfy f(n) = f(n-1) + f(n-2), a Fibonacci recurrence, so f(12) = F(13) = 233.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many partitions of 24 have every part between 2 and 6 inclusive, with repeated parts allowed?
- How many distinct arrangements of the letters of MISSISSIPPI begin with I and end with S?
- How many distinct arrangements of the letters of BALLOON have both L's next to each other and both O's next to each other?
- How many distinct arrangements of the letters of PEPPER have all three P's next to each other?
- How many distinct arrangements of the letters of TOMATOES have no two vowels next to each other? (The vowels are O, A, O, E.)
- In how many ways can 5 distinct books be split into groups placed on identical shelves, with at most 3 shelves used (each used shelf…