Problem:
Find the number of permutations x1β,x2β,x3β,x4β,x5β of numbers 1,2,3,4,5 such that the sum of five products
x1βx2βx3β+x2βx3βx4β+x3βx4βx5β+x4βx5βx1β+x5βx1βx2β
is divisible by 3.
Solution:
We consider the expression x1βx2βx3β+x2βx3βx4β+x3βx4βx5β+x4βx5βx1β+x5βx1βx2β and wish to count how many permutations of {1,2,3,4,5} make it divisible by 3.
Reduce all numbers modulo 3: the set becomes {0,1,1,2,2}, since 3β‘0, 4β‘1, and 5β‘2(mod3).
Let y1β,y2β,y3β,y4β,y5β be a permutation of {0,1,1,2,2}. Define T=y1βy2βy3β+y2βy3βy4β+y3βy4βy5β+y4βy5βy1β+y5βy1βy2β and evaluate Tmod3 for each of the 2!2!1!5!β=30 permutations of {0,1,1,2,2}.
Upon enumeration, 12 of the 30 permutations satisfy Tβ‘0(mod3). Each such reduced permutation corresponds to 4 actual permutations of {1,2,3,4,5}, since there are 120 total permutations and only 30 mod-3 patterns.
Thus, the total number of valid permutations is 12β
4=48β.
The problems on this page are the property of the MAA's American Mathematics Competitions