Problem:
What is the size of the largest subset, S, of {1,2,3,β¦,50} such that no pair of distinct elements of S has a sum divisible by 7?
Answer Choices:
A. 6
B. 7
C. 14
D. 22
E. 23
Solution:
Partition F={1,2,3,β¦,50} into seven subsets, F0β,F1β,β¦,F8β, so that all the elements of Fiβ leave a remainder of i when divided by 7:
βF0β={7,14,21,28,35,42,49},F1β={1,8,15,22,29,36,43,50},F2β={2,9,16,23,30,37,44},F3β={3,10,17,24,31,38,45},F4β={4,11,18,25,32,39,46},F5β={5,12,19,26,33,40,47},F6β={6,13,20,27,34,41,48}.β
Note that S can contain at most one member of F0β, but that if S contains some member of any of the other subsets, then it can contain all of the members of that subset. Also, S cannot contain members of both F1β and F6β, or both F2β and F5β, or both F3β and F4β. Since F1β contains 8 members and each of the other subsets contains 7 members, the largest subset, S, can be constructed by selecting one member of F0β, all the members of F1β, all the members of either F2β or F5β, and all of the members of either F3β or F4β. Thus the largest subset, S, contains 1+8+7+7=23 elements.