Mathematics (JEE)Very hardCodeforces Div2 D
How many partitions of {1, 2, 3, 4, 5, 6} have no block that contains two consecutive integers k and k+1?
- A. 203
- B. 52
- C. 151
- D. 104
Correct answer: B. 52
Listing all 203 set partitions of a 6-element set and rejecting any block that contains some k and k+1 leaves 52.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- In how many ways can {1, 2, 3, 4, 5, 6} be split into 2 unordered non-empty blocks so that 1 and 2 lie in different blocks?
- In how many ways can the 7 distinct balls 1, 2, ..., 7 be placed into 4 identical boxes so that no box is empty?
- How many partitions of {1, 2, 3, 4, 5} have no block of size 1?
- How many partitions of {1, 2, 3, 4, 5, 6} into exactly 3 unordered blocks have 1 and 6 in the same block?
- How many permutations p of {1, 2, 3, 4, 5, 6} satisfy p(i) <= i + 1 for every i?
- How many permutations p of {1, 2, 3, 4, 5, 6} satisfy p(i) >= i - 2 for every i?