The correct option is
C 17Given
S = { 1,2,3,....,40 }
Construct subsets S1, S2, S3, S3, S4, S5 of ′S′ such that
S1 = { 5n + 1 | 0 ≤ n ≤ 7 }
S2 = { 5n + 2 | 0 ≤ n ≤ 7 }
S3 = { 5n + 3 | 0 ≤ n ≤ 7 }
S4 = { 5n + 4 | 0 ≤ n ≤ 7 }
S5 = { 5n + 5 | 0 ≤ n ≤ 7 }
To construct a set A(subset of S) such that no two elements in A have their sum divisible by 5,
Initialize A = { }
Select the set S1,
As all the elements in S1 are of the form (5n + 1), we have to not select any element which is of the form (5n + 4), as that makes the sum divisible by 5.
So, A = A ∪ S1 = S1 and A cannot contain S4.
Now, add the elements of S2 to A, as sum of any two elements from S1 ∪ S2 is not divisible by 5,
A = A ∪ S2 = S1 ∪ S2
But, as all the elements in S2 are of the form (5n + 2), we have to not select any element which is of the form (5n + 3), as that makes the sum divisible by 5.
So,A cannot contain S3.
We cannot take all the elements of S5 to A as the sum of any two elements of S5 is divisible by 5,
But we can add one and only one element of S5 into A as sum of that element and any element chosen from S1 ∪ S2 is not divisible by 5. Let the element be k5.
Therefore, A = S1 ∪ S2 ∪ { k5 }
Number of elements in A = (Number of elements in S1) + (Number of elements in S2) + 1
= 8 + 8 + 1
= 17
Therefore, Maximum number of elements possible in A is ′17′.