GATE Computer ScienceHardGATE CSE · ISRO

What is the smallest k such that every k-element subset of {1, 2, …, 40} contains two distinct elements a and b with a dividing b?

  1. A. 19
  2. B. 20
  3. C. 40
  4. D. 21

Correct answer: D. 21

Grouping by odd part gives 20 divisibility chains, and {21,…,40} is a divisibility-free set of size 20, so the threshold is 21.

More Discrete Mathematics questions

Exams that ask this topic