2022 AMC 12B Problems/Problem 23: Difference between revisions
| Line 12: | Line 12: | ||
First, notice that <cmath>x_{2019} + 2x_{2020} + 4x_{2021} + 8x_{2022} = \frac{S_{2023} - S_{2019}}{2^{2019}}</cmath> | First, notice that <cmath>x_{2019} + 2x_{2020} + 4x_{2021} + 8x_{2022} = \frac{S_{2023} - S_{2019}}{2^{2019}}</cmath> | ||
Then since <math>S_n</math> is the modular inverse of 7 in <math> | Then since <math>S_n</math> is the modular inverse of 7 in <math>\mathbb{Z}_{n}</math>, we can perform the Euclidean algorithm to find it for <math>n = 2019,2023</math>. | ||
Starting with <math>2019</math>, <cmath>7S_{2019} \equiv 1 \pmod{2^{2019}}</cmath> | Starting with <math>2019</math>, <cmath>7S_{2019} \equiv 1 \pmod{2^{2019}}</cmath> | ||
<cmath>7S_{2019} = 2^{2019}k + 1</cmath> | <cmath>7S_{2019} = 2^{2019}k + 1</cmath> | ||
Now, take both sides <math>\mod | Now, take both sides <math>\text{mod } 7</math> | ||
<cmath>0 \equiv 2^{2019}k + 1 \pmod{7}</cmath> | <cmath>0 \equiv 2^{2019}k + 1 \pmod{7}</cmath> | ||
Using Fermat's Little Theorem, <cmath>2^{2019} = (2^{288})^7 \cdot 2^3 \equiv 2^3 \equiv 1 \pmod{7}</cmath> | Using Fermat's Little Theorem, <cmath>2^{2019} = (2^{288})^7 \cdot 2^3 \equiv 2^3 \equiv 1 \pmod{7}</cmath> | ||
Revision as of 16:00, 17 November 2022
Problem
Let
be a sequence of numbers, where each
is either
or
. For each positive integer
, define
Suppose
for all
. What is the value of the sum
Solution
First, notice that
Then since
is the modular inverse of 7 in
, we can perform the Euclidean algorithm to find it for
.
Starting with
,
Now, take both sides
Using Fermat's Little Theorem,
Thus,
Therefore,
We may repeat this same calculation with
to yield
Now, we notice that
is basically an integer expressed in binary form with
bits.
This gives rise to a simple inequality,
Since the maximum possible number that can be generated with
bits is
Looking at our calculations for
and
, we see that the only valid integers that satisfy that constraint are
~