2021 AIME II Problems/Problem 13
Contents
Problem
Find the least positive integer for which
is a multiple of
.
Solution 1
Recall that divides this expression if
and
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
modulo
(proof by plugging in
into modulo
), so the LHS of this expression goes
, while the RHS goes
. The cycle length of the LHS is
, RHS is
, so the cycle length of the solution is
. Indeed, the
that solve this congruence are exactly those such that
.
(2) . This is extremely computationally intensive if we try to calculate all
, so we take a divide-and-conquer approach instead. In order for this expression to be true,
is necessary; it shouldn't take too long for us to go through the
possible LHS-RHS combinations, considering that
must be odd. We only need to test
values of
and obtain
or
.
With this in mind we consider . By the Generalized Fermat's Little Theorem,
, but we already have
modulo
. Our calculation is greatly simplified. The LHS's cycle length is
and the RHS's cycle length is
, from which their least common multiple is
. In this step we need to test all the numbers between
to
that
or
. In the case that
, the RHS goes
, and we need
; clearly
. In the case that
, by a similar argument,
.
In the final step, we need to calculate and
modulo
:
Note that ; because
we get
.
Note that is
. We have
This time, LHS cycle is
, RHS cycle is
, so we need to figure out
modulo
. It should be
.
Put everything together. By the second subcondition, the only candidates less than are
. Apply the first subcondition,
is the desired answer.
~Ross Gao (Solution)
~MRENTHUSIASM (Minor Reformatting)
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 system of 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


Substituting this back into we get
As
is a multiple of
it has at least three factors of
Since
contributes one factor,
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
Solution 5 (STEP by step transform)
1. The desired has the form
where
are integers and
Really:
The first term is a multiple of
(Claim).
We denote step an increase in by 20. At each step, the divisibility by
is preserved, the number of tens is reduced by
.
We denote STEP an increase in
by
At each STEP, the first term is a multiple of
which means that at each STEP the divisibility by
is preserved, the number of hundreds decreases by
2. If the expression is a multiple of
the number
is odd (
is even,
is odd), which means that
ends in
Therefore, the number
ends in
3. The tens digit is even
it cannot be transformed into
in several steps, since at each step this digit changes by
so
is a multiple of
is a multiple of
The tens digit
is odd, subtracting
at each step in
steps of
will turn it into
So
We transform
into
in
STEPS, so
Note, that for
is an integer, the expression
is a multiple of
Claim
The numbers and
are a multiple of for any
, where
are an integer.
Proof
First, if then
So, if the number
is a multiple of
, then
is a multiple of
Really, denote then,
The first factor is a multiple of , the second factor is a multiple of
Their product is a multiple of
For odd using Newton's binomial for
, we get
is a multiple of
If
then
each term is a multiple of
.
Therefore, the number is a multiple of
and
is a multiple of
.
The difference is a multiple of
vladimir.shelomovskii@gmail.com, vvsss
Solution 6 (Art of Enumeration)
Problem require us to find minimum where
is a multiple of
.
Since we already know that multiplication does not affect mod,we can simply just focus on enumerating and hope to find some pattern.
The pattern of is pretty simple, it starts with 5,25, and then repeat the pattern 125,625, in other words,
when n is odd, and
when n is even if we ignore
and
.
The pattern of , however, is quite long. In fact, it happens when
, where
. More specifically, the pattern starts with
, which means for every 100 n,
will repeat in a loop:
Moreover, we might found that for every 20 consequtive integer, will repeat in a loop. Thus, by adding
to first twenty element, which is
to
, we can get a pattern of last two digit of
, which is
By subtracting n, we can also get following sequence:
Noticing that only when and
,
, so
and
are our possible candidates. However, since the length of our pattern is 20, we know that
is definetely not answer, which only left us
.
Now, we calculate the last three digit of at
, which is
.
Since the pattern will repeat for every 100 consequtive integer, the only thing that could possibly change last three digit is -n, noticing that only when ,
. So the answer only could be
, by subtracting 700, which means adding 700 to n, we can get our final answer
.
Also, by this method we can ensure that is an integer only if
, all the calculation can be done without a calculator (about 15 minutes or so), need some patience though.
If you are wondering, .
~henry_in_out
Note
If you are wondering, is equal to the following
-digit number:
Video Solution by Interstigation
Did not use any advanced method, easily understandable:
~Interstigation
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.