Difference between revisions of "2020 AIME I Problems/Problem 12"
m (→Solution 4 (Official MAA)) |
|||
(63 intermediate revisions by the same user not shown) | |||
Line 62: | Line 62: | ||
~formatted by MY-2 and pandyhu2001 | ~formatted by MY-2 and pandyhu2001 | ||
− | == Solution 3 ( | + | ==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> | |
− | Putting everything together we | + | 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]] | ~[[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>. | ||
+ | |||
+ | For divisibility by <math>7^7</math>, we'll induct, claiming that <math>v_7(149^{7^k} - 2^{7^k}) = k + 2</math> for whole numbers <math>k</math>. The base case is clear. Then, <cmath>v_7(149^{7^{k+1}} - 2^{7^{k+1}}) = v_7(149^{7^k} - 2^{7^k}) + v_7(149^{6\cdot7^k} + 2^{7^k}\cdot149^{5\cdot7^k} + \cdots + 2^{5\cdot7^k}\cdot149^{7^k} + 2^{6\cdot7^k}).</cmath> By the induction hypothesis, <math>v_7(149^{7^k} - 2^{7^k}) = k + 2</math>. Then, notice that <cmath>S(k) = 149^{6\cdot7^k} + 2^{7^k}\cdot149^{5\cdot7^k} + \cdots + 2^{5\cdot7^k}\cdot149^{7^k} + 2^{6\cdot7^k} \equiv 7 \cdot 2^{6\cdot7^k}\pmod{7} \equiv 7 \cdot 2^{6\cdot7^k}\pmod{49}.</cmath> This tells us that <math>S(k)</math> is divisible by <math>7</math>, but not <math>49</math> so that <math>v_7\left(S(k)\right) = 1</math>, completing our induction. We can verify that <math>7^5</math> is the least choice of <math>n</math> to ensure divisibility by <math>7^7</math> by arguing similarly to the <math>3^3</math> case. | ||
+ | |||
+ | Finally, for <math>5^5</math>, we take the powers of <math>149</math> and <math>2</math> in mod <math>5</math> and mod <math>25</math>. Writing out these mods, we have that <math>149^n \equiv 2^n \pmod{5}</math> if and only if <math>4 | n</math>, in which <math>149^n \equiv 2^n \equiv 1 \pmod{5}</math>. So here we claim that <math>v_5(149^{4\cdot5^k} - 2^{4\cdot5^k}) = k + 1</math> and perform yet another induction. The base case is true: <math>5 | 149^4 - 2^4</math>, but <math>149^4 - 2^4 \equiv 1 - 16 \pmod{25}</math>. Now then, assuming the induction statement to hold for some <math>k</math>, <cmath>v_5(149^{4\cdot5^{k+1}} - 2^{4\cdot5^{k+1}}) = (k+1) + v_5(149^{4\cdot4\cdot5^k}+2^{4\cdot5^k}\cdot149^{3\cdot4\cdot5^k}+\cdots+2^{3\cdot4\cdot5^k}\cdot149^{4\cdot5^k}+2^{4\cdot4\cdot5^k}).</cmath> Note that <math>S'(k) = 149^{4\cdot4\cdot5^k}+2^{4\cdot5^k}\cdot149^{3\cdot4\cdot5^k}+\cdots+2^{3\cdot4\cdot5^k}\cdot149^{4\cdot5^k}+2^{4\cdot4\cdot5^k}</math> equates to <math>S''(k) = 1 + 2^{4\cdot5^k} + \cdots + 2^{16\cdot5^k}</math> in both mod <math>5</math> and mod <math>25</math>. We notice that <math>S''(k) \equiv 0 \pmod{5}</math>. Writing out the powers of <math>2</math> mod <math>25</math>, we have <math>S''(0) \equiv 5 \pmod{25}</math>. Also <math>2^n \equiv 1 \pmod{25}</math> when <math>n</math> is a multiple of <math>20</math>. Hence for <math>k > 0</math>, <math>S''(k) \equiv 5 \mod{25}</math>. Thus, <math>v_5\left(S'(k)\right) = 1</math>, completing our induction. Applying the same argument from the previous two cases, <math>4\cdot5^4</math> is the least choice to ensure divisibility by <math>5^5</math>. | ||
+ | |||
+ | Our answer is the number of divisors of <math>\text{lcm}(3^2, 7^5, 2^2\cdot5^4) = 2^2 \cdot 3^2 \cdot 5^4 \cdot 7^5</math>. It is <math>(2 + 1)(2 + 1)(4 + 1)(5 + 1) = \boxed{270}</math>. | ||
+ | |||
+ | ~hnkevin42 | ||
==Solution 5 (Official MAA)== | ==Solution 5 (Official MAA)== |
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.