Problem:
There are N permutations (a1β,a2β,β¦,a30β) of 1,2,β¦,30 such that for mβ {2,3,5},m divides an+mββanβ for all integers n with 1β€n<n+mβ€30. Find the remainder when N is divided by 1000.
Solution:
Consider the sets
βS1β={1,7,13,19,25},T1β={a1β,a7β,a13β,a19β,a25β},S2β={2,8,14,20,26},T2β={a2β,a8β,a14β,a20β,a26β},S3β={3,9,15,21,27},T3β={a3β,a9β,a15β,a21β,a27β},S4β={4,10,16,22,28},T4β={a4β,a10β,a16β,a22β,a28β},S5β={5,11,17,23,29},T5β={a5β,a11β,a17β,a23β,a29β},S6β={6,12,18,24,30},T6β={a6β,a12β,a18β,a24β,a30β}.β
Because an+2ββanβ is divisible by 2 and an+3ββanβ is divisible by 3,n+6ββ anβ=(an+6ββan+3β)+(an+3ββanβ)=(an+6βan+4β)+(an+4ββan+2β)+(an+2βββ¦anβ) is divisible by both 2 and 3; that is, an+6ββanβ is divisible by 6. Hence for every i with 1β€iβ€6,Tiβ=Sjβ for some j. Furthermore, because an+2ββanβ is divisible by 2, it follows that {T1β,T3β,T5β}={S1β,S3β,S5β} or {S2β,S4β,S6β}. Hence there are 2β
6=12 ordered triples (T1β,T3β,T5β) of sets. Assume that (T1β,T3β,T5β)=(Siβ,Sjβ,Skβ). There are 5!=120 ways to permute the numbers in Siβ; that is, there are 120 permutations for (a1β,a7β,a13β,a19β,a25β). Because an+5ββanβ is ivisible by 5, it is true that, modulo 5,
(a1β,a7β,a13β,a19β,a25β)β‘(a21β,a27β,a3β,a9β,a15β)β‘(a11β,a17β,a23β,a29β,a5β)
Because each of Sjβ and Skβ consists of a complete set of remainders modulo 5, for each permutation (a1β,a7β,a13β,a19β,a25β), there is exactly one way to arrange the numbers in T3β and T5β. Hence there are 12β
120=1440 ways to choose the subsequence a1β,a3β,β¦,a29β. Furthermore, because {a1β,a3β,β¦,a29β}=S1ββͺS3ββͺS5β or S2ββͺS4ββͺS6β,{a1β,a3β,β¦,a29β} form a complete set of remainders modulo 15. Hence {a2β,a4β,β¦,a30β} also form a complete set of remainders modulo 15. Since an+15ββanβ is divisible by 15, each (a1β,a3β,β¦,a29β) determines a unique (a2β,a4β,β¦,a30β). Thus N=1440 and the required remainder is 440β.
The problems on this page are the property of the MAA's American Mathematics Competitions