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?

  1. A. 203
  2. B. 52
  3. C. 151
  4. 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.

More Permutations, Combinations and Probability questions

Exams that ask this topic