Difference between revisions of "2020 AIME I Problems/Problem 12"
(83 intermediate revisions by 12 users not shown) | |||
Line 2: | Line 2: | ||
Let <math>n</math> be the least positive integer for which <math>149^n-2^n</math> is divisible by <math>3^3\cdot5^5\cdot7^7.</math> Find the number of positive integer divisors of <math>n.</math> | Let <math>n</math> be the least positive integer for which <math>149^n-2^n</math> is divisible by <math>3^3\cdot5^5\cdot7^7.</math> Find the number of positive integer divisors of <math>n.</math> | ||
− | == Solution 1== | + | ==Solution 1.1== |
− | Lifting the Exponent shows that <cmath>v_3(149^n-2^n) = v_3(n) + v_3(147) = v_3(n)+1</cmath> so thus, <math>3^2</math> divides <math>n</math>. It also shows that <cmath>v_7(149^n-2^n) = v_7(n) + v_7(147) = v_7(n)+2</cmath> so thus, <math>7^5</math> divides <math>n</math>. | + | As usual, denote <math>v_p(n)</math> the highest power of prime <math>p</math> that divides <math>n</math>. |
+ | [[Lifting the Exponent]] shows that <cmath>3=v_3(149^n-2^n) = v_3(n) + v_3(147) = v_3(n)+1</cmath> so thus, <math>3^2</math> divides <math>n</math>. It also shows that <cmath>7=v_7(149^n-2^n) = v_7(n) + v_7(147) = v_7(n)+2</cmath> so thus, <math>7^5</math> divides <math>n</math>. | ||
− | Now, | + | Now, setting <math>n = 4c</math> (necessitated by <math>149^n \equiv 2^n \pmod 5</math> in order to set up LTE), we see <cmath>v_5(149^{4c}-2^{4c}) = v_5(149^{4c}-16^{c})</cmath> and since <math>149^{4} \equiv 1 \pmod{25}</math> and <math>16^1 \equiv 16 \pmod{25}</math> then <math>v_5(149^{4c}-2^{4c})=v_5(149^4-16)+v_5(c)=1+v_5(c)</math> meaning that we have that by LTE, <math>5^4 | c</math> and <math>4 \cdot 5^4</math> divides <math>n</math>. |
Since <math>3^2</math>, <math>7^5</math> and <math>4\cdot 5^4</math> all divide <math>n</math>, the smallest value of <math>n</math> working is their LCM, also <math>3^2 \cdot 7^5 \cdot 4 \cdot 5^4 = 2^2 \cdot 3^2 \cdot 5^4 \cdot 7^5</math>. Thus the number of divisors is <math>(2+1)(2+1)(4+1)(5+1) = \boxed{270}</math>. | Since <math>3^2</math>, <math>7^5</math> and <math>4\cdot 5^4</math> all divide <math>n</math>, the smallest value of <math>n</math> working is their LCM, also <math>3^2 \cdot 7^5 \cdot 4 \cdot 5^4 = 2^2 \cdot 3^2 \cdot 5^4 \cdot 7^5</math>. Thus the number of divisors is <math>(2+1)(2+1)(4+1)(5+1) = \boxed{270}</math>. | ||
Line 12: | Line 13: | ||
~kevinmathz | ~kevinmathz | ||
+ | clarified by another user | ||
− | + | notation note from another user | |
− | ~ | + | ===Note=== |
+ | We were able to use LTE with 3 and 7 but not 5 because in order to use LTE, we need \( p \mid x-y \). | ||
+ | |||
+ | Obviously, \( 149^n \equiv 2^n \pmod{3} \) implies \( 149^n - 2^n \equiv 0 \pmod{3} \), so LTE works here. | ||
+ | |||
+ | Furthermore, \( 149^n \equiv 2^n \pmod{7} \) implies \( 149^n - 2^n \equiv 0 \pmod{7} \), so LTE works here. | ||
+ | |||
+ | However, when we get to the case of 5, we see that \( 149^n \equiv 2^n \pmod{5} \) doesn't always hold; specifically, this is only valid when \( n \) is a multiple of \( 4 \), which is why we let \( n = 4c \) in the solution. | ||
+ | |||
+ | '''mathboy282''' | ||
+ | |||
+ | == Solution 1.2 (LTE + Binomial) == | ||
+ | Follow solution 1 to get that <math>3^2 \cdot 7^5</math> is a divisor of <math>n</math>. We now take care of the <math>5^5</math> part. | ||
+ | Rewrite <math>149^n-2^n</math> as <math>(150-1)^n-2^n</math> and assume <math>n</math> is even. Since this expression is divisible by <math>5^5</math>, we expand and get | ||
+ | <cmath>\binom n0(1^n)-\binom n1(1^{n-1}150^1)+\binom n2(1^{n-2}150^2)\cdot\cdot\cdot+\binom nn(150^n)-2^n \equiv 0 \pmod {5^5}.</cmath> | ||
+ | Everything except the first three terms and the <math>2^n</math> term is divisible by <math>5^5</math>, so we can rewrite this as | ||
+ | <cmath>1-150n+\frac{n(n-1)}{2}150^2-2^n \equiv 0 \pmod {5^5},</cmath> | ||
+ | And the following must be true: | ||
+ | <cmath>1-150n+\frac{n(n-1)}{2}150^2-2^n \equiv 0 \pmod {5^2}.</cmath> | ||
+ | Since <math>150n+\frac{n(n-1)}{2}150^2</math> divides <math>5^2</math>, we can now see that | ||
+ | <cmath>1-2^n \equiv 0 \pmod {5^2}.</cmath> | ||
+ | Solving for <math>n</math>, <math>n \equiv 0 \pmod {2^2 \cdot 5}</math>. | ||
+ | We also know this is true: | ||
+ | <cmath>1-150n+\frac{n(n-1)}{2}150^2-2^n \equiv 0 \pmod {5^3}.</cmath> | ||
+ | We know <math>n</math> is divisible by <math>5</math>, so <math>150n+\frac{n(n-1)}{2}150^2</math> divides <math>5^3</math>. | ||
+ | And now, | ||
+ | <cmath>1-2^n \equiv 0 \pmod {5^3}</cmath> | ||
+ | gives <cmath>n \equiv 0 \pmod {2^2 \cdot 5^2}.</cmath> | ||
+ | This process can be repeated until we obtain <math>n \equiv 0 \pmod {2^2 \cdot 5^4}</math>. The desired solution is then simply <math>\text{lcm} (3^2 \cdot 7^5, 2^2 \cdot 5^4)</math> which yields an answer of <math>(2+1)(5+1)(2+1)(4+1)=\boxed{270}</math>. | ||
+ | |||
+ | ~Marchk26 | ||
== Solution 2 (Simpler, just basic mods and Fermat's theorem)== | == Solution 2 (Simpler, just basic mods and Fermat's theorem)== | ||
Note that for all <math>n</math>, <math>149^n - 2^n</math> is divisible by <math>149-2 = 147</math> by difference of <math>n</math>th powers. That is <math>3\cdot7^2</math>, so now we can clearly see that the smallest <math>n</math> to make the expression divisible by <math>3^3</math> is just <math>3^2</math>. Similarly, we can reason that the smallest <math>n</math> to make the expression divisible by <math>7^7</math> is just <math>7^5</math>. | Note that for all <math>n</math>, <math>149^n - 2^n</math> is divisible by <math>149-2 = 147</math> by difference of <math>n</math>th powers. That is <math>3\cdot7^2</math>, so now we can clearly see that the smallest <math>n</math> to make the expression divisible by <math>3^3</math> is just <math>3^2</math>. Similarly, we can reason that the smallest <math>n</math> to make the expression divisible by <math>7^7</math> is just <math>7^5</math>. | ||
− | Finally, for <math>5^5</math>, take <math>\pmod {5}</math> and <math>\pmod {25}</math> of each quantity (They happen to both be <math>-1</math> and <math>2</math> respectively, so you only need to compute once). One knows from Fermat's theorem that the maximum possible minimum <math>n</math> for divisibility by <math>5</math> is <math>4</math>, and other values are factors of <math>4</math>. Testing all of them(just <math>1</math>,<math>2</math>,<math>4</math> using mods-not too bad), <math>4</math> is indeed the smallest value to make the expression divisible by <math>5</math>, and this clearly is NOT divisible by <math>25</math>. | + | Finally, for <math>5^5</math>, take <math>\pmod {5}</math> and <math>\pmod {25}</math> of each quantity (They happen to both be <math>-1</math> and <math>2</math> respectively, so you only need to compute once). One knows from [[Fermat's theorem]] that the maximum possible minimum <math>n</math> for divisibility by <math>5</math> is <math>4</math>, and other values are factors of <math>4</math>. Testing all of them(just <math>1</math>,<math>2</math>,<math>4</math> using mods-not too bad), <math>4</math> is indeed the smallest value to make the expression divisible by <math>5</math>, and this clearly is NOT divisible by <math>25</math>. |
Therefore, the smallest <math>n</math> to make this expression divisible by <math>5^5</math> is <math>2^2 \cdot 5^4</math>. | Therefore, the smallest <math>n</math> to make this expression divisible by <math>5^5</math> is <math>2^2 \cdot 5^4</math>. | ||
Line 28: | Line 60: | ||
~Solution by thanosaops | ~Solution by thanosaops | ||
− | ~formatted by MY-2 | + | ~formatted by MY-2 and pandyhu2001 |
+ | |||
+ | ==Solution 3 (Using Totient Theorem for upper bound)== | ||
+ | |||
+ | For the <math>5^5</math> case, we can see that the problem implies <math>149^n \equiv 2^n \pmod{5^5}.</math> | ||
+ | |||
+ | The modular inverse of <math>2 \pmod{3125}</math> is the least positive integer <math>x</math> such that <math>2x \equiv 1 \pmod{3125}.</math> | ||
+ | <cmath>x = \frac{3125 + 1}{2} = 1563 \implies (149\cdot1563)^n \equiv 1 \pmod{5^5}.</cmath> | ||
+ | |||
+ | Now we can use Euler's Totient Theorem to get an upper bound for n, which states that if <math>\gcd(a,b) = 1,</math> then <math>a^{\phi(b)} \equiv 1 \pmod{b}.</math> <math>\phi(5^5) = 3125 \cdot (1 - \frac{1}{5}) = 2500,</math> so <math>(149\cdot1563)^{2500} \equiv (1137)^{2500} \equiv 1 \pmod{5^5}.</math> | ||
+ | |||
+ | For the number to end with <math>1,</math> <math>n</math> also needs to be a multiple of <math>4.</math> So it's a factor of <math>2500</math> that's also divisible by 4. We bash out the factors of <math>625.</math> Through repeated squaring we see none of the factors work, so <math>2500</math> must be the minimum. Therefore, n must be a multiple of <math>2500.</math> | ||
+ | |||
+ | Next, we consider modulo <math>27</math>: | ||
+ | <cmath>149^n - 2^n \equiv 14^n - 2^n \pmod{27} \equiv 0 \pmod{27}.</cmath> | ||
+ | <cmath>14^n \equiv 2^n \pmod{27}</cmath> | ||
+ | <cmath>7^n \equiv 1 \pmod{27}</cmath> | ||
+ | Apply Euler's Totient Theorem again to get <math>7^{18} \equiv 1 \pmod{27}.</math> | ||
+ | |||
+ | Bashing the factors of 18, we find <math>18</math> is the smallest value that works, so <math>n</math> needs to be a multiple of <math>18.</math> | ||
+ | |||
+ | For the <math>7^7</math> case we can set up another congruence: | ||
+ | <cmath>149^n - 2^n \equiv 0 \pmod{7^7} \implies (2 + 7 \cdot 21)^n - 2^n \equiv 0 \pmod{7^7}</cmath> | ||
+ | |||
+ | To continue evaluating we use the Binomial Theorem: | ||
+ | <cmath>\sum_{k=0}^{n} \binom{n}{k} 2^{n-k} (7 \cdot 21)^k - 2^n \equiv 0 \pmod{7^7}</cmath> | ||
+ | <cmath>\cancel{2^n} + \binom{n}{1} 2^{n-1} (7 \cdot 21) + \binom{n}{2} 2^{n-2} (7 \cdot 21)^2 + \dots \cancel{- 2^n} \equiv 0 \pmod{7^7}</cmath> | ||
+ | <cmath>\binom{n}{1} \cdot 2^{n-1} \cdot 147 + \binom{n}{2} 2^{n-2} \cdot 147^2 + \binom{n}{3} 2^{n-3} \cdot 147^3 + \binom{n}{4} 2^{n-4} \cdot 147^4 \dots \equiv 0 \pmod{7^7}.</cmath> | ||
+ | |||
+ | Since <math>147 = 3 \cdot 7^2,</math> the first term is a multiple of <math>7^2,</math> the second is a multiple of <math>7^4,</math> and the third is a multiple of <math>7^6.</math> Everything after is a multiple of <math>7^7.</math> | ||
− | + | So <math>n</math> must be a multiple of <math>7^5</math> at the minimum for these three terms to also be multiples of <math>7^7.</math> | |
− | == Solution | + | Putting everything together we find the smallest value of <math>n</math> to be <math>n = 2^2 \cdot 3^2 \cdot 5^4 \cdot 7^5,</math> so the answer is <math>(2+1)(2+1)(4+1)(5+1) = \boxed{270}.</math> |
+ | |||
+ | ~[[User:grogg007|grogg007]] | ||
+ | |||
+ | == Solution 4 (Elementary and Thorough) == | ||
As usual, denote <math>v_p(n)</math> the highest power of prime <math>p</math> that divides <math>n</math>. For divisibility by <math>3^3</math>, notice that <math>v_3(149^3 - 2^3) = 2</math> as <math>149^3 - 2^3 =</math> <math>(147)(149^2 + 2\cdot149 + 2^2)</math>, and upon checking mods, <math>149^2 + 2\cdot149 + 2^2</math> is divisible by <math>3</math> but not <math>9</math>. In addition, <math>149^9 - 2^9</math> is divisible by <math>3^3</math> because <math>149^9 - 2^9 = (149^3 - 2^3)(149^6 + 149^3\cdot2^3 + 2^6)</math>, and the rightmost factor equates to <math>1 + 1 + 1 \pmod{3} \equiv 0 \pmod{3}</math>. In fact, <math>n = 9 = 3^2</math> is the least possible choice to ensure divisibility by <math>3^3</math> because if <math>n = a \cdot 3^b</math>, with <math>3 \nmid a</math> and <math>b < 2</math>, we write <cmath>149^{a \cdot 3^b} - 2^{a \cdot 3^b} = (149^{3^b} - 2^{3^b})(149^{3^b(a - 1)} + 149^{3^b(a - 2)}\cdot2^{3^b}+\cdots2^{3^b(a - 1)}).</cmath> Then, the rightmost factor is equivalent to <math>\pm a \pmod{3} \not\equiv 0 \pmod{3}</math>, and <math>v_3(149^{3^b} - 2^{3^b}) = b + 1 < 3</math>. | As usual, denote <math>v_p(n)</math> the highest power of prime <math>p</math> that divides <math>n</math>. For divisibility by <math>3^3</math>, notice that <math>v_3(149^3 - 2^3) = 2</math> as <math>149^3 - 2^3 =</math> <math>(147)(149^2 + 2\cdot149 + 2^2)</math>, and upon checking mods, <math>149^2 + 2\cdot149 + 2^2</math> is divisible by <math>3</math> but not <math>9</math>. In addition, <math>149^9 - 2^9</math> is divisible by <math>3^3</math> because <math>149^9 - 2^9 = (149^3 - 2^3)(149^6 + 149^3\cdot2^3 + 2^6)</math>, and the rightmost factor equates to <math>1 + 1 + 1 \pmod{3} \equiv 0 \pmod{3}</math>. In fact, <math>n = 9 = 3^2</math> is the least possible choice to ensure divisibility by <math>3^3</math> because if <math>n = a \cdot 3^b</math>, with <math>3 \nmid a</math> and <math>b < 2</math>, we write <cmath>149^{a \cdot 3^b} - 2^{a \cdot 3^b} = (149^{3^b} - 2^{3^b})(149^{3^b(a - 1)} + 149^{3^b(a - 2)}\cdot2^{3^b}+\cdots2^{3^b(a - 1)}).</cmath> Then, the rightmost factor is equivalent to <math>\pm a \pmod{3} \not\equiv 0 \pmod{3}</math>, and <math>v_3(149^{3^b} - 2^{3^b}) = b + 1 < 3</math>. | ||
Line 43: | Line 108: | ||
~hnkevin42 | ~hnkevin42 | ||
− | ==Solution | + | ==Solution 5 (Official MAA)== |
Analyze each prime power separately. | Analyze each prime power separately. | ||
Start with the case of <math>3^3</math>. By the Binomial Theorem, | Start with the case of <math>3^3</math>. By the Binomial Theorem, | ||
− | \begin{align*} | + | <cmath>\begin{align*} |
149^n - 2^n &= (147+2)^n - 2^n \\ | 149^n - 2^n &= (147+2)^n - 2^n \\ | ||
&= \binom n1 \cdot 147 \cdot 2^{n-1} | &= \binom n1 \cdot 147 \cdot 2^{n-1} | ||
Line 52: | Line 117: | ||
&\qquad+ \binom n3 \cdot 147^3 \cdot 2^{n-3} | &\qquad+ \binom n3 \cdot 147^3 \cdot 2^{n-3} | ||
+ \cdots. | + \cdots. | ||
− | \end{align*}Because <math>147</math> is divisible by <math>3</math>, all terms after the first two are divisible by <math>3^3</math>, and the exponent of <math>3</math> in the first term is less than that in the second term. Hence it is necessary and sufficient that <math>3^3 \mid 147n</math>, that is, <math>3^2 \mid n</math>. | + | \end{align*}</cmath>Because <math>147</math> is divisible by <math>3</math>, all terms after the first two are divisible by <math>3^3</math>, and the exponent of <math>3</math> in the first term is less than that in the second term. Hence it is necessary and sufficient that <math>3^3 \mid 147n</math>, that is, <math>3^2 \mid n</math>. |
For the <math>7^7</math> case, consider the same expansion as in the previous case. Because <math>147</math> is divisible by <math>49 = 7^2</math>, all terms after the first three are divisible by <math>7^7</math>, and the exponent of <math>7</math> in the first term is less than that in the second and third term. Hence it is necessary and sufficient that <math>7^7 \mid 147n</math>, that is, <math>7^5 \mid n</math>. | For the <math>7^7</math> case, consider the same expansion as in the previous case. Because <math>147</math> is divisible by <math>49 = 7^2</math>, all terms after the first three are divisible by <math>7^7</math>, and the exponent of <math>7</math> in the first term is less than that in the second and third term. Hence it is necessary and sufficient that <math>7^7 \mid 147n</math>, that is, <math>7^5 \mid n</math>. | ||
For the <math>5^5</math> case, working modulo <math>5</math> gives <math>149^n - 2^n \equiv 4^n - 2^n = 2^n(2^n-1) \pmod 5</math>, so it must be that <math>4 \mid n</math>. Let <math>n = 4m</math>, and let <math>c = 149^4 - 2^4 = (149^2-2^2)(149^2+2^2) = 147 \cdot 151 \cdot 22205</math>. Note that <math>\frac c5</math> is an integer not divisible by <math>5</math>. Expand by the Binomial Theorem again to get | For the <math>5^5</math> case, working modulo <math>5</math> gives <math>149^n - 2^n \equiv 4^n - 2^n = 2^n(2^n-1) \pmod 5</math>, so it must be that <math>4 \mid n</math>. Let <math>n = 4m</math>, and let <math>c = 149^4 - 2^4 = (149^2-2^2)(149^2+2^2) = 147 \cdot 151 \cdot 22205</math>. Note that <math>\frac c5</math> is an integer not divisible by <math>5</math>. Expand by the Binomial Theorem again to get | ||
− | \begin{align*} | + | <cmath>\begin{align*} |
(149^4)^m - (2^4)^m &= (c+16)^m - (16)^m \\ | (149^4)^m - (2^4)^m &= (c+16)^m - (16)^m \\ | ||
&= \binom m1 \cdot c \cdot 16^{m-1} | &= \binom m1 \cdot c \cdot 16^{m-1} | ||
Line 62: | Line 127: | ||
+ \binom m4 \cdot c^4 \cdot 16^{m-4} | + \binom m4 \cdot c^4 \cdot 16^{m-4} | ||
+ \cdots. | + \cdots. | ||
− | \end{align*}All terms after the first four are divisible by <math>5^5</math>, and the exponent of <math>5</math> in the first term is less than that in the second, third, or fourth term. Hence it is necessary and sufficient that <math>5^5 \mid cm</math>. Thus <math>5^4 \mid m</math>, and it follows that <math>4 \cdot 5^4 \mid n</math>. | + | \end{align*}</cmath>All terms after the first four are divisible by <math>5^5</math>, and the exponent of <math>5</math> in the first term is less than that in the second, third, or fourth term. Hence it is necessary and sufficient that <math>5^5 \mid cm</math>. Thus <math>5^4 \mid m</math>, and it follows that <math>4 \cdot 5^4 \mid n</math>. |
Therefore the least <math>n</math> is <math>3^2 \cdot (2^2 \cdot 5^4) \cdot 7^5</math>. The requested number of divisors is <math>(1+2)(1+2)(1+4)(1+5) = 270</math>. | Therefore the least <math>n</math> is <math>3^2 \cdot (2^2 \cdot 5^4) \cdot 7^5</math>. The requested number of divisors is <math>(1+2)(1+2)(1+4)(1+5) = 270</math>. | ||
Line 68: | Line 133: | ||
Lifting the Exponent Lemma: Let <math>p</math> be an odd prime, and let <math>a</math> and <math>b</math> be integers relatively prime to <math>p</math> such that <math>p \mid (a-b)</math>. Let <math>n</math> be a positive integer. Then the number of factors of <math>p</math> that divide <math>a^n - b^n</math> is equal to the number of factors of <math>p</math> that divide <math>a-b</math> plus the number of factors of <math>p</math> that divide <math>n</math>. | Lifting the Exponent Lemma: Let <math>p</math> be an odd prime, and let <math>a</math> and <math>b</math> be integers relatively prime to <math>p</math> such that <math>p \mid (a-b)</math>. Let <math>n</math> be a positive integer. Then the number of factors of <math>p</math> that divide <math>a^n - b^n</math> is equal to the number of factors of <math>p</math> that divide <math>a-b</math> plus the number of factors of <math>p</math> that divide <math>n</math>. | ||
+ | |||
+ | == Video Solution == | ||
+ | https://www.youtube.com/watch?v=O0BprEOVkjo | ||
+ | ~ Math Gold Medalist | ||
==See Also== | ==See Also== | ||
Line 73: | Line 142: | ||
{{AIME box|year=2020|n=I|num-b=11|num-a=13}} | {{AIME box|year=2020|n=I|num-b=11|num-a=13}} | ||
{{MAA Notice}} | {{MAA Notice}} | ||
+ | |||
+ | [[Category: Intermediate Number Theory Problems]] |
Latest revision as of 01:49, 26 September 2025
Contents
Problem
Let be the least positive integer for which
is divisible by
Find the number of positive integer divisors of
Solution 1.1
As usual, denote the highest power of prime
that divides
.
Lifting the Exponent shows that
so thus,
divides
. It also shows that
so thus,
divides
.
Now, setting (necessitated by
in order to set up LTE), we see
and since
and
then
meaning that we have that by LTE,
and
divides
.
Since ,
and
all divide
, the smallest value of
working is their LCM, also
. Thus the number of divisors is
.
~kevinmathz
clarified by another user
notation note from another user
Note
We were able to use LTE with 3 and 7 but not 5 because in order to use LTE, we need \( p \mid x-y \).
Obviously, \( 149^n \equiv 2^n \pmod{3} \) implies \( 149^n - 2^n \equiv 0 \pmod{3} \), so LTE works here.
Furthermore, \( 149^n \equiv 2^n \pmod{7} \) implies \( 149^n - 2^n \equiv 0 \pmod{7} \), so LTE works here.
However, when we get to the case of 5, we see that \( 149^n \equiv 2^n \pmod{5} \) doesn't always hold; specifically, this is only valid when \( n \) is a multiple of \( 4 \), which is why we let \( n = 4c \) in the solution.
mathboy282
Solution 1.2 (LTE + Binomial)
Follow solution 1 to get that is a divisor of
. We now take care of the
part.
Rewrite
as
and assume
is even. Since this expression is divisible by
, we expand and get
Everything except the first three terms and the
term is divisible by
, so we can rewrite this as
And the following must be true:
Since
divides
, we can now see that
Solving for
,
.
We also know this is true:
We know
is divisible by
, so
divides
.
And now,
gives
This process can be repeated until we obtain
. The desired solution is then simply
which yields an answer of
.
~Marchk26
Solution 2 (Simpler, just basic mods and Fermat's theorem)
Note that for all ,
is divisible by
by difference of
th powers. That is
, so now we can clearly see that the smallest
to make the expression divisible by
is just
. Similarly, we can reason that the smallest
to make the expression divisible by
is just
.
Finally, for , take
and
of each quantity (They happen to both be
and
respectively, so you only need to compute once). One knows from Fermat's theorem that the maximum possible minimum
for divisibility by
is
, and other values are factors of
. Testing all of them(just
,
,
using mods-not too bad),
is indeed the smallest value to make the expression divisible by
, and this clearly is NOT divisible by
.
Therefore, the smallest
to make this expression divisible by
is
.
Calculating the LCM of all these, one gets . Using the factor counting formula,
the answer is
=
.
~Solution by thanosaops
~formatted by MY-2 and pandyhu2001
Solution 3 (Using Totient Theorem for upper bound)
For the case, we can see that the problem implies
The modular inverse of is the least positive integer
such that
Now we can use Euler's Totient Theorem to get an upper bound for n, which states that if then
so
For the number to end with
also needs to be a multiple of
So it's a factor of
that's also divisible by 4. We bash out the factors of
Through repeated squaring we see none of the factors work, so
must be the minimum. Therefore, n must be a multiple of
Next, we consider modulo :
Apply Euler's Totient Theorem again to get
Bashing the factors of 18, we find is the smallest value that works, so
needs to be a multiple of
For the case we can set up another congruence:
To continue evaluating we use the Binomial Theorem:
Since the first term is a multiple of
the second is a multiple of
and the third is a multiple of
Everything after is a multiple of
So must be a multiple of
at the minimum for these three terms to also be multiples of
Putting everything together we find the smallest value of to be
so the answer is
Solution 4 (Elementary and Thorough)
As usual, denote the highest power of prime
that divides
. For divisibility by
, notice that
as
, and upon checking mods,
is divisible by
but not
. In addition,
is divisible by
because
, and the rightmost factor equates to
. In fact,
is the least possible choice to ensure divisibility by
because if
, with
and
, we write
Then, the rightmost factor is equivalent to
, and
.
For divisibility by , we'll induct, claiming that
for whole numbers
. The base case is clear. Then,
By the induction hypothesis,
. Then, notice that
This tells us that
is divisible by
, but not
so that
, completing our induction. We can verify that
is the least choice of
to ensure divisibility by
by arguing similarly to the
case.
Finally, for , we take the powers of
and
in mod
and mod
. Writing out these mods, we have that
if and only if
, in which
. So here we claim that
and perform yet another induction. The base case is true:
, but
. Now then, assuming the induction statement to hold for some
,
Note that
equates to
in both mod
and mod
. We notice that
. Writing out the powers of
mod
, we have
. Also
when
is a multiple of
. Hence for
,
. Thus,
, completing our induction. Applying the same argument from the previous two cases,
is the least choice to ensure divisibility by
.
Our answer is the number of divisors of . It is
.
~hnkevin42
Solution 5 (Official MAA)
Analyze each prime power separately.
Start with the case of . By the Binomial Theorem,
Because
is divisible by
, all terms after the first two are divisible by
, and the exponent of
in the first term is less than that in the second term. Hence it is necessary and sufficient that
, that is,
.
For the
case, consider the same expansion as in the previous case. Because
is divisible by
, all terms after the first three are divisible by
, and the exponent of
in the first term is less than that in the second and third term. Hence it is necessary and sufficient that
, that is,
.
For the
case, working modulo
gives
, so it must be that
. Let
, and let
. Note that
is an integer not divisible by
. Expand by the Binomial Theorem again to get
All terms after the first four are divisible by
, and the exponent of
in the first term is less than that in the second, third, or fourth term. Hence it is necessary and sufficient that
. Thus
, and it follows that
.
Therefore the least
is
. The requested number of divisors is
.
The results of the above cases can be generalized using the following lemma.
Lifting the Exponent Lemma: Let be an odd prime, and let
and
be integers relatively prime to
such that
. Let
be a positive integer. Then the number of factors of
that divide
is equal to the number of factors of
that divide
plus the number of factors of
that divide
.
Video Solution
https://www.youtube.com/watch?v=O0BprEOVkjo ~ Math Gold Medalist
See Also
2020 AIME I (Problems • Answer Key • Resources) | ||
Preceded by Problem 11 |
Followed by Problem 13 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 | ||
All AIME Problems and Solutions |
These problems are copyrighted © by the Mathematical Association of America, as part of the American Mathematics Competitions.