GATE Computer ScienceVery hardGATE CS (PYQ pattern)
What is the largest size of a subset S of {1, 2, …, 40} such that 7 ∈ S and no element of S divides another element of S?
- A. 20
- B. 18
- C. 17
- D. 19
Correct answer: B. 18
Split {1,…,40} into 20 chains m, 2m, 4m, … by odd part m. Since 7 ∈ S, 7's chain {7, 14, 28} is used by 7, and the chains {21} and {35} are useless (7 divides 21 and 35). So |S| ≤ 20 − 2 = 18, and S = {7} ∪ ({21,…,40} ∖ {21, 28, 35}) attains 18.
More Discrete Mathematics questions
- How many integers from 1 to 1000 are divisible by exactly two of the three numbers 4, 6 and 10?
- A family F of subsets of {1, 2, 3} is union-closed if A ∪ B ∈ F whenever A, B ∈ F. How many union-closed families (including the empty…
- How many ordered pairs (f, g) of functions from {1, 2, 3} to itself satisfy f∘g = g∘f?
- In how many ways can 8 distinct people be split into 3 non-empty groups (groups unlabelled) such that no group has exactly one person?
- The relation R = {(1,2), (2,3), (3,1), (3,4), (5,6), (6,5), (4,5)} is defined on {1, …, 6}. How many ordered pairs does its transitive…
- Let I be the identity relation on {1, 2, 3, 4}. How many relations R on this set satisfy R∘R = I (composition of R with itself equals I)?