返回题库

AIME 2011 II · 第 14 题

AIME 2011 II — Problem 14

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem 14

There are NN permutations (a1,a2,...,a30)(a_{1}, a_{2}, ... , a_{30}) of 1,2,,301, 2, \ldots, 30 such that for m{2,3,5}m \in \left\{{2, 3, 5}\right\}, mm divides an+mana_{n+m} - a_{n} for all integers nn with 1n<n+m301 \leq n < n+m \leq 30. Find the remainder when NN is divided by 10001000.

解析

Solutions

Solution 1

Be wary of "position" versus "number" in the solution!

Each POSITION in the 30-position permutation is uniquely defined by an ordered triple (i,j,k)(i, j, k). The nnth position is defined by this ordered triple where ii is nmod2n \mod 2, jj is nmod3n \mod 3, and kk is nmod5n \mod 5. There are 2 choices for ii, 3 for jj, and 5 for kk, yielding 235=302 \cdot 3 \cdot 5=30 possible triples. Because the least common multiple of 2, 3, and 5 is 30, none of these triples are repeated and all are used. By the conditions of the problem, if ii is the same in two different triples, then the two numbers in these positions must be equivalent mod 2. If jj is the same, then the two numbers must be equivalent mod3\mod 3, and if kk is the same, the two numbers must be equivalent mod 5. Take care to note that that doesn't mean that the number 1 has to have 1mod21 \mod 2! It's that the POSITION which NUMBER 1 occupies has 1mod21 \mod 2!

The ordered triple (or position) in which 1 can be placed has 2 options for i, 3 for j, and 5 for k, resulting in 30 different positions of placement.

The ordered triple where 2 can be placed in is somewhat constrained by the placement of 1. Because 1 is not equivalent to 2 in terms of mod 2, 3, or 5, the i, j, and k in their ordered triples must be different. Thus, for the number 2, there are (2-1) choices for i, (3-1) choices for j, and (5-1) choices for k. Thus, there are 1*2*4=8 possible placements for the number two once the number one is placed.

Because 3 is equivalent to 1 mod 2, it must have the same i as the ordered triple of 1. Because 3 is not equivalent to 1 or 2 in terms of mod 3 or 5, it must have different j and k values. Thus, there is 1 choice for i, (2-1) choices for j, and (4-1) choices for k, for a total of 113=31\cdot 1 \cdot 3=3 choices for the placement of 3.

As above, 4 is even, so it must have the same value of i as 2. It is also 1 mod 3, so it must have the same j value of 1. 4 is not equivalent to 1, 2, or 3 mod 5, so it must have a different k value than that of 1, 2, and 3. Thus, there is 1 choice for i, 1 choice for j, and (3-1) choices for k, yielding a total of 112=21 \cdot 1 \cdot 2=2 possible placements for 4.

5 is odd and is equivalent to 2 mod 3, so it must have the same i value as 1 and the same j value of 2. 5 is not equivalent to 1, 2, 3, or 4 mod 5, so it must have a different k value from 1, 2, 3, and 4. However, 4 different values of k are held by these four numbers, so 5 must hold the one remaining value. Thus, only one possible triple is found for the placement of 5.

All numbers from 6 to 30 are also fixed in this manner. All values of i, j, and k have been used, so every one of these numbers will have a unique triple for placement, as above with the number five. Thus, after 1, 2, 3, and 4 have been placed, the rest of the permutation is fixed.

Thus, N=30832=3048=1440N = 30 \cdot 8 \cdot 3 \cdot 2=30 \cdot 48=1440. Thus, the remainder when NN is divided by 10001000 is 440.\boxed{440}.

Solution 2

We observe that the condition on the permutations means that two numbers with indices congruent modm\mod m are themselves congruent modm\mod m for m{2,3,5}.m \in \{ 2,3,5\}. Furthermore, suppose that ankmodm.a_n \equiv k \mod m. Then, there are 30/m30/m indices congruent to nmodm,n \mod m, and 30/m30/m numbers congruent to kmodm,k \mod m, because 2, 3, and 5 are all factors of 30. Therefore, since every index congruent to nn must contain a number congruent to k,k, and no number can appear twice in the permutation, only the indices congruent to nn contain numbers congruent to k.k. In other words, aiajmodm    ijmodm.a_i \equiv a_j \mod m \iff i \equiv j \mod m. But it is not necessary that (aii)(ajj)modm\textcolor{red}{(a_i\equiv i)\cup (a_j\equiv j)\mod m}. In fact, if that were the case, there would only be one way to assign the indices, since 2,3,52,3,5 are relatively prime to each other and 30=lcm(2,3,5)30=\text{lcm}(2,3,5): {a1,a2,a30}{1,2,30} respectively\{a_1,a_2,\dots a_{30}\}\in\{1,2,\dots 30\}\text{ }respectively.

This tells us that in a valid permutation, the congruence classes modm\mod m are simply swapped around, and if the set SS is a congruence class modm\mod m for m=m = 2, 3, or 5, the set {aiiS}\{ a_i \vert i \in S \} is still a congruence class modm.\mod m. Clearly, each valid permutation of the numbers 1 through 30 corresponds to exactly one permutation of the congruence classes modulo 2, 3, and 5. Also, if we choose some permutations of the congruence classes modulo 2, 3, and 5, they correspond to exactly one valid permutation of the numbers 1 through 30. This can be shown as follows: First of all, the choice of permutations of the congruence classes gives us every number in the permutation modulo 2, 3, and 5, so by the Chinese Remainder Theorem, it gives us every number mod235=30.\mod 2\cdot 3\cdot 5 = 30. Because the numbers must be between 1 and 30 inclusive, it thus uniquely determines what number goes in each index. Furthermore, two different indices cannot contain the same number. We will prove this by contradiction, calling the indices aia_i and aja_j for ij.i \neq j. If ai=aj,a_i=a_j, then they must have the same residues modulo 2, 3, and 5, and so iji \equiv j modulo 2, 3, and 5. Again using the Chinese Remainder Theorem, we conclude that ijmod30,i \equiv j \mod 30, so because ii and jj are both between 1 and 30 inclusive, i=j,i = j, giving us a contradiction. Therefore, every choice of permutations of the congruence classes modulo 2, 3, and 5 corresponds to exactly one valid permutation of the numbers 1 through 30.

In other words, each set of assignment from ajjmod(2,3,5)a_j\rightarrow j\mod (2,3,5) determines a unique string of 3030 numbers. For example:

[(0,1)(1,0)][(0,1,2)(0,2,1)][(0,1,2,3,4)(4,2,3,0,1)]\left[(0,1)\rightarrow (1,0)\right]\cap\left[(0,1,2)\rightarrow (0,2,1)\right]\cap\left[(0,1,2,3,4)\rightarrow (4,2,3,0,1)\right]:

2101010101010101010101010101010302102102102102102102102102102154230142301423014230142301423013092130114278256292232012417281526191223102114718516\begin{array}{|c||c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|} \hline 2&1&0&1&0&1&0&1&0&1&0&1&0&1&0&1&0&1&0&1&0&1&0&1&0&1&0&1&0&1&0\\ \hline 3&0&2&1&0&2&1&0&2&1&0&2&1&0&2&1&0&2&1&0&2&1&0&2&1&0&2&1&0&2&1\\ \hline 5&4&2&3&0&1&4&2&3&0&1&4&2&3&0&1&4&2&3&0&1&4&2&3&0&1&4&2&3&0&1\\ \hline\hline 30&9&2&13&0&11&4&27&8&25&6&29&22&3&20&1&24&17&28&15&26&19&12&23&10&21&14&7&18&5&16\\ \hline \end{array} We have now established a bijection between valid permutations of the numbers 1 through 30 and permutations of the congruence classes modulo 2, 3, and 5, so NN is equal to the number of permutations of congruence classes. There are always mm congruence classes modm,\mod m, so N=2!3!5!=26120=1440440mod1000.N = 2! \cdot 3! \cdot 5! = 2 \cdot 6 \cdot 120 = 1440 \equiv \boxed{440} \mod 1000.

Solution 3 (2-sec solve)

Note that 30=23530=2\cdot 3\cdot 5. Since gcd(2,3,5)=1\gcd(2, 3, 5)=1, by CRT, for each value k=029k=0\ldots 29 modulo 3030 there exists a unique ordered triple of values (a,b,c)(a, b, c) such that ka(mod2)k\equiv a\pmod{2}, kb(mod3)k\equiv b\pmod{3}, and kc(mod5)k\equiv c\pmod{5}. Therefore, we can independently assign the residues modulo 2,3,52, 3, 5, so N=2!3!5!=1440N=2!\cdot 3!\cdot 5!=1440, and the answer is 440\boxed{440}.

-vockey

Solution 4( Better explanation of Solution 3)

First let's look at the situation when mm is equal to 2. It isn't too difficult to see the given conditions are satisfied iff the sequences S1=a1,a3,a5,a7...S_1 = a_1,a_3,a_5,a_7... and S2=a2,a4,a6...S_2 =a_2,a_4,a_6... each are assigned either 0(mod2)\equiv 0 \pmod 2 or 1(mod2)\equiv 1 \pmod 2. Another way to say this is each element in the sequence a1,a3,a5,a7...a_1,a_3,a_5,a_7... would be the same mod 2, and similarly for the other sequence. There are 2! = 2 ways to assign the mods to the sequences.

Now when mm is equal to 3, the sequences are T1=a1,a4,a7..T_1 = a_1, a_4,a_7.., T2=a2,a5,a8,a11...T_2 = a_2,a_5,a_8,a_11..., and T3=a3,a6,a9...T_3 = a_3,a_6,a_9.... Again, for each sequence, all of its elements are congruent either 00,11, or 22 mod 33. There are 3!=63! = 6 ways to assign the mods to the sequences.

Finally do the same thing for m=5m = 5. There are 5!5! ways. In total there are 26120=14402 * 6*120 = 1440 and the answer is 440\boxed{440}.

Why does this method work? Its due to CRT.

-MathLegend27

Note: the explanation is not complete without mentioning that 2*3*5 = 30, therefore CRT guarantees there is only 1 permutation for every combination of mod selections. If the problem asked for permutations of 1,2,...,60{1,2,...,60}, the answer would have been 2!3!5!2!2!2!2!3!5!2!2!2!.

(I think for 60 u mulitply by 2302^{30} not (2!)3(2!)^3)

-Mathdummy

Solution 5(slightly more rigor than needed)

Note, for the purposes of this problem, it is easier to have our residue classes mod mm to be {1,2,,m}\{1, 2, \dots, m\} instead of {0,1,2,,m1}\{0, 1, 2, \dots, m-1\}.

We will start by finding a general insight for mm given that m30m \mid 30.

m(ai+mai)    ai+mai(modm)m \mid (a_{i + m} - a_i) \implies a_{i + m} \equiv a_i \pmod{m} Notice that for every pp between 11 and mm inclusive, we have

apap+map+2map+3m...(modm).a_p \equiv a_{p+m} \equiv a_{p+2m} \equiv a_{p+3m} ... \pmod{m}. Notice that {p,p+m,p+2m,,p+km}\{p, p+m, p+2m, \dots, p+km\} all fall under the residue class p(modm)p \pmod{m}. Let this list of numbers with indices that are p(modm)p \pmod{m} all be congruent to σm(p)(modm)\sigma_m(p) \pmod{m}. Notice that σm\sigma_m maps numbers from {1,2,,m}\{1, 2, \dots, m\} to {1,2,,m}\{1, 2, \dots, m\}.

Claim: AOPSPROTECTED113TOKEN is bijective.\textbf{Claim: AOPSPROTECTED113TOKEN is bijective.} Since σm\sigma_m is a valid function mapping two sets of the same size, we simply prove injectivity.

Assume for the sake of contradiction, for pqp \neq q, let σm(p)σm(q)(modm)\sigma_m(p) \equiv \sigma_m(q) \pmod{m}, and let them be congruent to some constant x(modm)x \pmod{m}. Since 1p,qm1 \leq p, q \leq m and pqp \neq q, this implies pp and qq are not congruent mod mm.

{p,p+m,p+2m,}{q,q+m,q+2m,}=,\{p, p+m, p+2m, \dots \} \cap \{q, q+m, q+2m, \dots\} = \emptyset, since these sets are distinct mod mm.

Therefore, σm\sigma_m maps 230m\frac{2 \cdot 30}{m} distinct values to some x(mod30)x \pmod{30}. However, this implies that there are 230m\frac{2 \cdot 30}{m} distinct values between 11 and 3030 falling under the same residue class, which is obviously false. Thus, we have proven the claim.

Since σm\sigma_m is injective and maps between two sets of identical size, it is bijective. Therefore, there are m!m! ways to create such a mapping called σm\sigma_m.

For this problem, there are 2!3!5!2! \cdot 3! \cdot 5! ways to find σ2\sigma_2, σ3\sigma_3, and σ5\sigma_5. (Notice σk\sigma_k lies in the symmetric group SkS_k.)

Claim: Finding AOPSPROTECTED140TOKEN, AOPSPROTECTED141TOKEN, and AOPSPROTECTED142TOKEN completely determines AOPSPROTECTED143TOKEN.\textbf{Claim: Finding AOPSPROTECTED140TOKEN, AOPSPROTECTED141TOKEN, and AOPSPROTECTED142TOKEN completely determines AOPSPROTECTED143TOKEN.} If we know σ2(i)\sigma_2(i), σ3(i)\sigma_3(i), and σ5(i)\sigma_5(i), we know i(mod2)i \pmod{2}, i(mod3)i \pmod{3}, and i(mod5)i \pmod{5}. By the Chinese Remainder Theorem (CRT), we know i(mod30)i \pmod{30}, and since 1i301 \leq i \leq 30, this completely determines ii.

Therefore, 2!3!5!=26120=14402! \cdot 3! \cdot 5! = 2 \cdot 6 \cdot 120 = 1440.

Therefore, the answer is 440\boxed{440}

~~Mathcounts Griiinder

Video Solution

2011 AIME II #14

MathProblemSolvingSkills.com