Mathematics (JEE)Very hard

How many 3-element subsets of {1, 2, …, 9} contain no two numbers whose difference is exactly 2?

  1. A. 77
  2. B. 35
  3. C. 40
  4. D. 47

Correct answer: C. 40

Total C(9,3) = 84. Use complementary counting on the pairs with difference 2 (there are 7 such pairs), with inclusion–exclusion for triples containing two such pairs. The count of valid subsets is 40.

More Permutations, Combinations and Probability questions

Exams that ask this topic