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?
- A. 19
- B. 20
- C. 40
- 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
- In the complete graph K₄ a walk may repeat vertices and edges. How many closed walks of length 6 exist in total, summing over all 4…
- How many onto (surjective) functions f from {1,…,8} to {a,b,c,d} satisfy f(1) ≠ f(2)?
- In how many ways can the set {1, 2, …, 8} be partitioned into non-empty blocks so that every block has at least 2 elements?
- How many integer solutions does x₁ + x₂ + x₃ + x₄ + x₅ = 30 have if 3 ≤ xᵢ ≤ 10 for every i?
- A path runs from (0,0) to (7,7) using unit steps right (+1,0) or up (0,+1). It must satisfy y ≤ x at every lattice point visited and must…
- What is the value of 7^(7^7) mod 100 (the last two digits of 7 raised to the power 7⁷)?