Problem:
Annie, Bobby, and Casey each receive an integer, not necessarily distinct, from 1 through 10. In how many ways can the numbers be given so that their sum is divisible by 7?
Answer Choices:
A. 139
B. 140
C. 142
D. 143
E. 145
Solution:
Look at the numbers 1 through 10 modulo 7:
residues 1,2,3residues 4,5,6,0β:two numbers each (1,8;2,9;3,10),:one number each (4;5;6;7).β
Choose Annie's and Bobby's numbers freely: 10β
10=100 ways. Casey's number must then be congruent to β(Annie+Bobby) modulo 7. There are 2 choices if that residue is 1, 2 or 3, and 1 choice otherwise. So
total=100+#{pairs whose sum is β‘4,5,6(mod7)}.
Let crβ be the number of integers from 1 to 10 with residue r, so (c0β,c1β,β¦,c6β)=(1,2,2,2,1,1,1). The number of pairs with sum β‘k is βrβcrβckβrβ:
k=4:k=5:k=6:βc0βc4β+c1βc3β+c2βc2β+c3βc1β+c4βc0β+c5βc6β+c6βc5β=1+4+4+4+1+1+1=16,c0βc5β+c1βc4β+c2βc3β+c3βc2β+c4βc1β+c5βc0β+c6βc6β=1+2+4+4+2+1+1=15,c0βc6β+c1βc5β+c2βc4β+c3βc3β+c4βc2β+c5βc1β+c6βc0β=1+2+2+4+2+2+1=14.β
Therefore the total is
100+16+15+14=(E) 145.
The problems and solutions on this page are the property of the MAA's American Mathematics Competitions