Difference between revisions of "2021 AIME II Problems/Problem 13"
MRENTHUSIASM (talk | contribs) (→Solution 3 (Similar to Solution 2)) |
MRENTHUSIASM (talk | contribs) m (→See also: also -> Also Case consistency) |
||
(23 intermediate revisions by 3 users not shown) | |||
Line 10: | Line 10: | ||
(2) <math>2^n \equiv n \pmod{125}</math>. This is extremely computationally intensive if you try to calculate all <math>2^1,2^2, ..., 2^{100} \pmod{125}</math>, so instead, we take a divide-and-conquer approach. In order for this expression to be true <math>2^n \equiv n \pmod{5}</math> is necessary; it shouldn't take too long for you to go through the 20 possible LHS-RHS combinations and convince yourself that <math>n \equiv 3 \pmod{20}</math> or <math>n \equiv 17 \pmod{20}</math>. | (2) <math>2^n \equiv n \pmod{125}</math>. This is extremely computationally intensive if you try to calculate all <math>2^1,2^2, ..., 2^{100} \pmod{125}</math>, so instead, we take a divide-and-conquer approach. In order for this expression to be true <math>2^n \equiv n \pmod{5}</math> is necessary; it shouldn't take too long for you to go through the 20 possible LHS-RHS combinations and convince yourself that <math>n \equiv 3 \pmod{20}</math> or <math>n \equiv 17 \pmod{20}</math>. | ||
− | With this in mind we consider <math>2^n \equiv n</math> modulo 25. By the generalized Fermat's little theorem, <math>2^{20} \equiv 1 \pmod{25}</math>, but we already have n modulo 20! Our calculation is greatly simplified. The LHS cycle length is 20, RHS cycle length is 25, the lcm is 100, in this step we need to test all the numbers between 1 to 100 that <math>n \equiv 3 \pmod{20}</math> or <math>n \equiv 17 \pmod{ | + | With this in mind we consider <math>2^n \equiv n</math> modulo 25. By the generalized Fermat's little theorem, <math>2^{20} \equiv 1 \pmod{25}</math>, but we already have n modulo 20! Our calculation is greatly simplified. The LHS cycle length is 20, RHS cycle length is 25, the lcm is 100, in this step we need to test all the numbers between 1 to 100 that <math>n \equiv 3 \pmod{20}</math> or <math>n \equiv 17 \pmod{20}</math>. In the case that <math>n \equiv 3 \pmod{20}</math>, <math>2^n \equiv 2^3 \equiv 8</math>, and RHS goes "3,23,43,63,83"; clearly <math>n \equiv 83 \pmod{100}</math>. In the case that <math>n \equiv 17 \pmod{20}</math>, by a similar argument, <math>n \equiv 97 \pmod{100}</math>. |
In the final step, we need to calculate <math>2^{97}, 2^{83}</math> modulo 125. The former is simply <math>2^{-3}</math>; because <math>8*47=376=1</math> modulo 125, <math>2^{97} \equiv 47</math>. <math>2^{83}</math> is <math>2^{-17}=2^{-16}*2^{-1}</math>. | In the final step, we need to calculate <math>2^{97}, 2^{83}</math> modulo 125. The former is simply <math>2^{-3}</math>; because <math>8*47=376=1</math> modulo 125, <math>2^{97} \equiv 47</math>. <math>2^{83}</math> is <math>2^{-17}=2^{-16}*2^{-1}</math>. | ||
Line 44: | Line 44: | ||
\end{align*}</cmath> | \end{align*}</cmath> | ||
It is clear that <math>n\geq3,</math> from which we simplify to | It is clear that <math>n\geq3,</math> from which we simplify to | ||
− | <cmath>\begin{align} | + | <cmath>\begin{align*} |
− | 5^n &\equiv n \pmod{8}, \\ | + | 5^n &\equiv n \pmod{8}, \hspace{15mm} &(1) \\ |
− | 2^n &\equiv n \pmod{125}. | + | 2^n &\equiv n \pmod{125}. &(2) |
− | \end{align}</cmath> | + | \end{align*}</cmath> |
+ | We solve each congruence separately: | ||
<ol style="margin-left: 1.5em;"> | <ol style="margin-left: 1.5em;"> | ||
− | <li>For <math>(1),</math> quick inspections produce that <math>5^1,5^2,5^3,5^4,\cdots</math> are congruent to <math>5,1,5,1,\cdots</math> modulo <math>8,</math> respectively. More generally, <math>5^n \equiv 5 \pmod{8}</math> if <math>n</math> is odd, and <math>5^n \equiv 1 \pmod{8}</math> if <math>n</math> is even. As <math>5^n</math> is always odd (so is <math>n</math>), we must have <math>n\equiv5\pmod{8}.</math> That is, <math>n=8r+5</math> for some integer <math>r.</math></li><p> | + | <li>For <math>(1),</math> quick inspections produce that <math>5^1,5^2,5^3,5^4,\cdots</math> are congruent to <math>5,1,5,1,\cdots</math> modulo <math>8,</math> respectively. More generally, <math>5^n \equiv 5 \pmod{8}</math> if <math>n</math> is odd, and <math>5^n \equiv 1 \pmod{8}</math> if <math>n</math> is even. As <math>5^n</math> is always odd (so is <math>n</math>), we must have <math>n\equiv5\pmod{8}.</math> <p> |
+ | <i><b>That is, <math>\boldsymbol{n=8r+5}</math> for some nonnegative integer <math>\boldsymbol{r.}</math></b></i></li><p> | ||
<li>For <math>(2),</math> we substitute the result from <math>(1)</math> and simplify:</li> | <li>For <math>(2),</math> we substitute the result from <math>(1)</math> and simplify:</li> | ||
<cmath>\begin{align*} | <cmath>\begin{align*} | ||
Line 60: | Line 62: | ||
<cmath>\begin{align*} | <cmath>\begin{align*} | ||
(5+1)^r\cdot32&\equiv8r+5\pmod{125} \\ | (5+1)^r\cdot32&\equiv8r+5\pmod{125} \\ | ||
− | \ | + | \Biggl[\binom{r}{0}5^0+\binom{r}{1}5^1+\binom{r}{2}5^2+\phantom{ }\underbrace{\binom{r}{3}5^3+\cdots+\binom{r}{r}5^r}_{0\pmod{125}}\phantom{ }\Biggr]\cdot32&\equiv8r+5\pmod{125} \\ |
\left[1+5r+\frac{25r(r-1)}{2}\right]\cdot32&\equiv8r+5\pmod{125} \\ | \left[1+5r+\frac{25r(r-1)}{2}\right]\cdot32&\equiv8r+5\pmod{125} \\ | ||
32+160r+400r(r-1)&\equiv8r+5\pmod{125} \\ | 32+160r+400r(r-1)&\equiv8r+5\pmod{125} \\ | ||
32+35r+25r(r-1)&\equiv8r+5\pmod{125} \\ | 32+35r+25r(r-1)&\equiv8r+5\pmod{125} \\ | ||
− | 25r^2+ | + | 25r^2+2r+27&\equiv0\phantom{r+5}\pmod{125}. \hspace{15mm} (*) |
− | |||
\end{align*}</cmath> | \end{align*}</cmath> | ||
Since <math>125\equiv0\pmod{5},</math> it follows that | Since <math>125\equiv0\pmod{5},</math> it follows that | ||
Line 73: | Line 74: | ||
r&\equiv4\pmod{5}. | r&\equiv4\pmod{5}. | ||
\end{align*}</cmath> | \end{align*}</cmath> | ||
− | That is, <math> | + | <i><b>That is, <math>\boldsymbol{r=5s+4}</math> for some nonnegative integer <math>\boldsymbol{s.}</math></b></i><p> |
+ | Substituting this back into <math>(*),</math> we get | ||
+ | <cmath>\begin{align*} | ||
+ | 25(5s+4)^2+2(5s+4)+27&\equiv0\pmod{125} \\ | ||
+ | 625s^2+1010s+435&\equiv0\pmod{125} \\ | ||
+ | 10s+60&\equiv0\pmod{125} \\ | ||
+ | 10(s+6)&\equiv0\pmod{125}. | ||
+ | \end{align*}</cmath> | ||
+ | As <math>10(s+6)</math> is a multiple of <math>125,</math> it has at least three factors of <math>5.</math> Since <math>10</math> contributes one factor, it follows that <math>s+6</math> contributes at least two factors, or <math>s+6</math> must be a multiple of <math>25.</math> Therefore, the least such nonnegative integer <math>s</math> is <math>19.</math> | ||
</ol> | </ol> | ||
+ | Finally, combining the two results from above (bolded) generates the least such positive integer <math>n</math> at <math>s=19:</math> | ||
+ | <cmath>\begin{align*} | ||
+ | n&=8r+5 \\ | ||
+ | &=8(5s+4)+5 \\ | ||
+ | &=40s+37 \\ | ||
+ | &=\boxed{797}. | ||
+ | \end{align*}</cmath> | ||
+ | ~MRENTHUSIASM (inspired by Math Jams's <b>2021 AIME II Discussion</b>) | ||
− | < | + | ==Solution 4 (Minimal Computation)== |
+ | <cmath>5^n \equiv n \pmod{8}</cmath> | ||
+ | Note that <math>5^n \equiv 5,1,5,1,...</math> and <math>n \equiv 0,..,7</math> so <math>n</math> is periodic every <math>[2,8]=8</math>. Easy to check that only <math>n\equiv 5 \pmod{8}</math> satisfy. Let <math>n=8a+5</math>. Note that by binomial theorem, | ||
+ | <cmath>2^{8a+5}=32\cdot 2^{8a} \equiv 7(1+15)^{2a} \equiv 7(1+30a)\pmod{25}</cmath> | ||
+ | So we have <math>7(1+30a) \equiv 8a+5\pmod{25} \implies 202a \equiv 23 \implies 2a \equiv 23+25 \implies a \equiv 24 \pmod{25}</math>. | ||
+ | Combining <math>a\equiv 24\pmod{25}</math> with <math>n \equiv 5 \pmod{8}</math> gives that <math>n</math> is in the form of <math>197+200k</math>, <math>n=197,397,597,797</math>. Note that since <math>\phi(125)=100</math> | ||
+ | <cmath>2^{197+200k} \equiv 2^{197} \equiv 2^{-3} \equiv \underbrace{47}_{\text{Extended Euclidean Algorithm}}\pmod{125}</cmath> | ||
+ | Easy to check that only <math>\boxed{797}\equiv 47\pmod{125}</math> | ||
− | ~ | + | ~Afo |
− | ==See | + | ==See Also== |
{{AIME box|year=2021|n=II|num-b=12|num-a=14}} | {{AIME box|year=2021|n=II|num-b=12|num-a=14}} | ||
{{MAA Notice}} | {{MAA Notice}} |
Latest revision as of 10:55, 20 June 2021
Contents
Problem
Find the least positive integer for which is a multiple of .
Solution 1
1000 divides this expression iff 8, 125 both divide it. It should be fairly obvious that ; so we may break up the initial condition into two sub-conditions.
(1) . Notice that the square of any odd integer is 1 modulo 8 (proof by plugging in , , , into modulo 8), so the LHS of this expression goes "5,1,5,1, ...", while the RHS goes "1,2,3,4,5,6,7,8,1, ...". The cycle length of the LHS is 2, RHS is 8, so the cycle length of the solution is . Indeed, the n that solve this equation are exactly those such that .
(2) . This is extremely computationally intensive if you try to calculate all , so instead, we take a divide-and-conquer approach. In order for this expression to be true is necessary; it shouldn't take too long for you to go through the 20 possible LHS-RHS combinations and convince yourself that or .
With this in mind we consider modulo 25. By the generalized Fermat's little theorem, , but we already have n modulo 20! Our calculation is greatly simplified. The LHS cycle length is 20, RHS cycle length is 25, the lcm is 100, in this step we need to test all the numbers between 1 to 100 that or . In the case that , , and RHS goes "3,23,43,63,83"; clearly . In the case that , by a similar argument, .
In the final step, we need to calculate modulo 125. The former is simply ; because modulo 125, . is . This time, LHS cycle is 100, RHS cycle is 125, so we need to figure out what is n modulo 500. It should be .
Put everything together. By the second subcondition, the only candidates < 100 are . Apply the first subcondition, n=797 is the desired answer.
-Ross Gao
Solution 2
We have that , or and by CRT. It is easy to check don't work, so we have that . Then, and , so we just have and . Let us consider both of these congruences separately.
First, we look at . By Euler's Totient Theorem (ETT), we have , so . On the RHS of the congruence, the possible values of are all nonnegative integers less than and on the RHS the only possible values are and . However, for to be we must have , a contradiction. So, the only possible values of are when .
Now we look at . Plugging in , we get . Note, for to be satisfied, we must have and . Since as , we have . Then, . Now, we get . Using the fact that , we get . The inverse of modulo is obviously , so , so . Plugging in , we get .
Now, we are finally ready to plug into the congruence modulo . Plugging in, we get . By ETT, we get , so . Then, . Plugging this in, we get , implying the smallest value of is simply . ~rocketsri
Solution 3 (Chinese Remainder Theorem and Binomial Theorem)
We wish to find the least positive integer for which Rearranging gives Applying the Chinese Remainder Theorem, we get the following systems of linear congruences: It is clear that from which we simplify to We solve each congruence separately:
- For quick inspections produce that are congruent to modulo respectively. More generally, if is odd, and if is even. As is always odd (so is ), we must have
That is, for some nonnegative integer
- For we substitute the result from and simplify:
Note that and so we apply the Binomial Theorem to the left side: Since it follows that
That is, for some nonnegative integerSubstituting this back into we get As is a multiple of it has at least three factors of Since contributes one factor, it follows that contributes at least two factors, or must be a multiple of Therefore, the least such nonnegative integer is
Finally, combining the two results from above (bolded) generates the least such positive integer at ~MRENTHUSIASM (inspired by Math Jams's 2021 AIME II Discussion)
Solution 4 (Minimal Computation)
Note that and so is periodic every . Easy to check that only satisfy. Let . Note that by binomial theorem, So we have . Combining with gives that is in the form of , . Note that since Easy to check that only
~Afo
See Also
2021 AIME II (Problems • Answer Key • Resources) | ||
Preceded by Problem 12 |
Followed by Problem 14 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 | ||
All AIME Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.