Difference between revisions of "2023 AIME II Problems/Problem 15"
(→Solution 2) |
(→Solution 3 (Similar to solution 2 but more explanation)) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 71: | Line 71: | ||
Note that <math>a_n = a_{n+1}</math> if and only if <math>b_n</math> is even. This occurs when <math>n</math> is congruent to <math>0, 3, 4</math> or <math>6</math> mod <math>11</math>, giving four solutions for each period. | Note that <math>a_n = a_{n+1}</math> if and only if <math>b_n</math> is even. This occurs when <math>n</math> is congruent to <math>0, 3, 4</math> or <math>6</math> mod <math>11</math>, giving four solutions for each period. | ||
− | From <math>1</math> to <math>1001</math> (which is <math>91 \times 11</math>), there are <math>91 \times 4 = 364</math> values of <math>n</math>. We subtract <math>1</math> from the total since <math>1001</math> satisfies the criteria but is greater than <math>1000</math> to get a final answer of <math>\fbox{363}</math> . | + | From <math>1</math> to <math>1001</math> (which is <math>91 \times 11</math>), there are <math>91 \times 4 = 364</math> values of <math>n</math>. We subtract <math>1</math> from the total since <math>1001</math> satisfies the criteria but is greater than <math>1000</math> to get a final answer of <math>\fbox{363}</math> . |
− | |||
~[[User:Bxiao31415|Bxiao31415]] | ~[[User:Bxiao31415|Bxiao31415]] | ||
(small changes by bobjoebilly and [[User:Iraevid13|IraeVid13]]) | (small changes by bobjoebilly and [[User:Iraevid13|IraeVid13]]) | ||
− | == Solution 3 (Binary Interpretation, Computer Scientists' Playground) == | + | == Solution 3 (Similar to solution 2 but more explanation) == |
+ | Let <math>a_n = 23b_n</math>. Note that if | ||
+ | <cmath> 23 b_{n+1} \equiv 1 \pmod{2^{n+1}} </cmath> | ||
+ | Then | ||
+ | <cmath> 23 b_{n+1} \equiv 1 \pmod{2^{n}} </cmath> | ||
+ | Also | ||
+ | <cmath> 23 b_n \equiv 1 \pmod{2^n} </cmath> | ||
+ | Therefore | ||
+ | <cmath> b_n \equiv b_{n+1} \equiv 23^{-1} \pmod{2^n} </cmath> | ||
+ | Then | ||
+ | <cmath> b_{n+1} \equiv b_n, b_n + 2^n \pmod{2^{n+1}} </cmath> | ||
+ | So | ||
+ | <cmath> b_{n+1} = b_n, b_n + 2^n </cmath> | ||
+ | Since <math>0 \le b_n < 2^n</math> and <math>0 \le b_{n+1} < 2^{n+1}</math> as <math>a_n</math> is the ''least'' positive integer multiple of 23. | ||
+ | |||
+ | Now suppose <math>b_{n+1} = b_n</math>. Define <math>q_n</math> to be the quotient of <math>23b_n</math> divided by <math>2^n</math>. Then | ||
+ | <cmath> 23b_n = 2^n q_n + 1 \text{ and } 23b_{n+1} = 23b_n = 2^{n+1} q_{n+1} + 1 = 2^n q_n + 1 \implies q_{n+1} = \frac{q_n}{2}</cmath> | ||
+ | Furthermore if quotient <math>q_n</math> is even then | ||
+ | <cmath> 23b_n = 2^n q_n +1 = 2^{n+1} \frac{q_n}{2} +1 </cmath> | ||
+ | Therefore <math>b_{n+1} = b_n</math> if and only if <math>q_n</math> is even. And, if this is true, then <math>q_{n+1} = \frac{q_n}{2}</math>. Next, if <math>q_n</math> is odd, we must have <math>b_{n+1} = b_n + 2^n</math>. Solving for <math>q_{n+1}</math>, we have | ||
+ | <cmath> 23b_{n+1} = 2^{n+1} q_{n+1} + 1 \implies 23b_n + 23 \cdot 2^n = 2^{n+1} q_{n+1} + 1 \implies 2^n q_n + 1 + 23 = 2^{n+1} q_{n+1} + 1 \implies q_{n+1} = \frac{q_n + 1}{2} + 11 </cmath> | ||
+ | Therefore, if <math>q_n</math> is odd, <math>q_{n+1} = \frac{q_n + 1}{2} + 11</math>. In sum, our recursion is | ||
+ | <cmath> q_n = \begin{cases} \frac{q_{n-1}}{2} & \text{if } 2 \text{ } \vert \text{ } q_{n-1} \\ \frac{q_{n-1}+1}{2} + 11 &\text{if } 2 \not\vert \text{ } q_{n-1} \end{cases} </cmath> | ||
+ | Finally, let us list out <math>q_n</math> to find a pattern. Because <math>a_1 = 23</math>, <math>q_1 = 11</math>. Through our recursion, we continue like so: | ||
+ | <cmath> q_1 = 11, q_2 = 17, q_2 = 20, q_3 = 10, q_4 = 5, q_6 = 14, q_7 = 7, q_8 = 15, q_9 = 19, q_{10} = 21, q_{11} = 22, q_{12} = 11, \dots </cmath> | ||
+ | Therefore <math>q_n</math> repeats with cycle length <math>11</math>. Since <math>a_{n+1} = a_n</math> if and only if <math>q_n</math> is even, in each cycle, we have 4 satisfactory values of <math>n</math>. There are <math>\frac{1000 - 10}{11} = 90</math> complete cycles. There are 3 extra values in the last incomplete cycle. Therefore we obtain <math>90 \cdot 4 + 3 = \fbox{363}</math>. | ||
+ | |||
+ | ~[https://artofproblemsolving.com/wiki/index.php/User:Crazyvideogamez CrazyVideoGamez] | ||
+ | |||
+ | == Solution 4 (Binary Interpretation, Computer Scientists' Playground) == | ||
We first check that <math>\gcd(23, 2^n) = 1</math> hence we are always seeking a unique modular inverse of <math>23</math>, <math>b_n</math>, such that <math>a_n \equiv 23b_n \equiv 1 \mod{2^n}</math>. | We first check that <math>\gcd(23, 2^n) = 1</math> hence we are always seeking a unique modular inverse of <math>23</math>, <math>b_n</math>, such that <math>a_n \equiv 23b_n \equiv 1 \mod{2^n}</math>. | ||
Line 115: | Line 143: | ||
~ cocoa @ https://www.corgillogical.com | ~ cocoa @ https://www.corgillogical.com | ||
− | |||
== Video Solution == | == Video Solution == |
Latest revision as of 22:34, 29 December 2024
Contents
Problem
For each positive integer let
be the least positive integer multiple of
such that
Find the number of positive integers
less than or equal to
that satisfy
Solution 1
Denote .
Thus, for each
, we need to find smallest positive integer
, such that
Thus, we need to find smallest , such that
Now, we find the smallest , such that
.
By Fermat's Theorem, we must have
. That is,
.
We find
.
Therefore, for each , we need to find smallest
, such that
We have the following results:
If \({\rm Rem} \left( n , 11 \right) = 0\), then \(k_n = 22\) and \(b_n = 1\).
If \({\rm Rem} \left( n , 11 \right) = 1\), then \(k_n = 11\) and \(b_n = 1\).
If \({\rm Rem} \left( n , 11 \right) = 2\), then \(k_n = 17\) and \(b_n = 3\).
If \({\rm Rem} \left( n , 11 \right) = 3\), then \(k_n = 20\) and \(b_n = 7\).
If \({\rm Rem} \left( n , 11 \right) = 4\), then \(k_n = 10\) and \(b_n = 7\).
If \({\rm Rem} \left( n , 11 \right) = 5\), then \(k_n = 5\) and \(b_n = 7\).
If \({\rm Rem} \left( n , 11 \right) = 6\), then \(k_n = 14\) and \(b_n = 39\).
If \({\rm Rem} \left( n , 11 \right) = 7\), then \(k_n = 7\) and \(b_n = 39\).
If \({\rm Rem} \left( n , 11 \right) = 8\), then \(k_n = 15\) and \(b_n = 167\).
If \({\rm Rem} \left( n , 11 \right) = 9\), then \(k_n = 19\) and \(b_n = 423\).
If \({\rm Rem} \left( n , 11 \right) = 10\), then \(k_n = 21\) and \(b_n = 935\).
Therefore, in each cycle, , we have
,
,
,
, such that
. That is,
.
At the boundary of two consecutive cycles,
.
We have .
Therefore, the number of feasible
is
.
~Steven Chen (Professor Chen Education Palace, www.professorchenedu.com)
Solution 2
Observe that if is divisible by
,
. If not,
.
This encourages us to let . Rewriting the above equations, we have
The first few values of
are
and
. We notice that
, and thus the sequence is periodic with period
.
Note that if and only if
is even. This occurs when
is congruent to
or
mod
, giving four solutions for each period.
From to
(which is
), there are
values of
. We subtract
from the total since
satisfies the criteria but is greater than
to get a final answer of
.
~Bxiao31415
(small changes by bobjoebilly and IraeVid13)
Solution 3 (Similar to solution 2 but more explanation)
Let . Note that if
Then
Also
Therefore
Then
So
Since
and
as
is the least positive integer multiple of 23.
Now suppose . Define
to be the quotient of
divided by
. Then
Furthermore if quotient
is even then
Therefore
if and only if
is even. And, if this is true, then
. Next, if
is odd, we must have
. Solving for
, we have
Therefore, if
is odd,
. In sum, our recursion is
Finally, let us list out
to find a pattern. Because
,
. Through our recursion, we continue like so:
Therefore
repeats with cycle length
. Since
if and only if
is even, in each cycle, we have 4 satisfactory values of
. There are
complete cycles. There are 3 extra values in the last incomplete cycle. Therefore we obtain
.
Solution 4 (Binary Interpretation, Computer Scientists' Playground)
We first check that hence we are always seeking a unique modular inverse of
,
, such that
.
Now that we know that is unique, we proceed to recast this problem in binary. This is convenient because
is simply the last
-bits of
in binary, and if
, it means that of the last
bits of
, only the rightmost bit (henceforth
th bit) is
.
Also, multiplication in binary can be thought of as adding shifted copies of the multiplicand. For example:
Now note , and recall that our objective is to progressively zero out the
leftmost bits of
except for the
th bit.
Write , we note that
uniquely defines the
th bit of
, and once we determine
,
uniquely determines the
st bit of
, so on and so forth.
For example, satisfies
Next, we note that the second bit of
is
, so we must also have
in order to zero it out, giving
happens precisely when
. In fact we can see this in action by working out
. Note that
has 1 on the
nd bit, so we must choose
. This gives
Note that since the rd and
th bit are
,
, and this gives
.
It may seem that this process will take forever, but note that has
bits behind the leading digit, and in the worst case, the leading digits of
will have a cycle length of at most
. In fact, we find that the cycle length is
, and in the process found that
,
, and
.
Since we have complete cycles of length
, and the last partial cycle yields
and
, we have a total of
values of
such that
~ cocoa @ https://www.corgillogical.com
Video Solution
~MathProblemSolvingSkills.com
See also
2023 AIME II (Problems • Answer Key • Resources) | ||
Preceded by Problem 14 |
Followed by Last Problem | |
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.