Difference between revisions of "2024 AIME II Problems/Problem 7"
(→Solution 2) |
Callisto531 (talk | contribs) (→Solution 2) |
||
Line 43: | Line 43: | ||
For the largest 4 digit number, we test values for a starting with 9. When a is 9, b is 4, c is 3, and d is 7. However, when switching the digits with 1, we quickly notice this doesnt work. Once we get to a=5, we get b=6,c=9,and d=4. Adding 694 with 5, we get <math>\boxed{699}</math> -westwoodmonster | For the largest 4 digit number, we test values for a starting with 9. When a is 9, b is 4, c is 3, and d is 7. However, when switching the digits with 1, we quickly notice this doesnt work. Once we get to a=5, we get b=6,c=9,and d=4. Adding 694 with 5, we get <math>\boxed{699}</math> -westwoodmonster | ||
+ | |||
+ | ==Solution 3== | ||
+ | Let our four digit number be <math>abcd</math>. Replacing digits with 1, we get the following equations: | ||
+ | |||
+ | <math>1000+100b+10c+d \equiv 0 \pmod{7}</math> | ||
+ | |||
+ | <math>1000a+100+10c+d \equiv 0 \pmod{7}</math> | ||
+ | |||
+ | <math>1000a+100b+10+d \equiv 0 \pmod{7}</math> | ||
+ | |||
+ | <math>1000a+100b+10c+1 \equiv 0 \pmod{7}</math> | ||
+ | |||
+ | Add the equations together, we get: | ||
+ | |||
+ | <math>3000a+300b+30c+3d+1111 \equiv 0 \pmod{7}</math> | ||
+ | |||
+ | And since the remainder of 1111 divided by 7 is 5, we get: | ||
+ | |||
+ | <math>3abcd \equiv 2 \pmod{7}</math> | ||
+ | |||
+ | Which gives us: | ||
+ | |||
+ | <math>abcd \equiv 3 \pmod{7}</math> | ||
+ | |||
+ | And since we know that changing each digit into 1 will make abcd divisible by 7, we get that <math>d-1</math>, <math>10c-10</math>, <math>100b-100</math>, and <math>1000a-1000</math> all have a remainder of 3 when divided by 7. Thus, we get <math>a=5</math>, <math>b=6</math>, <math>c=9</math>, and <math>d=4</math>. Thus, we get 5694 as abcd, and the answer is <math>694+5=\boxed{699}</math>. | ||
+ | |||
+ | ~Callisto531 | ||
==See also== | ==See also== |
Revision as of 01:44, 9 February 2024
Problem
Let be the greatest four-digit positive integer with the property that whenever one of its digits is changed to , the resulting number is divisible by . Let and be the quotient and remainder, respectively, when is divided by . Find .
Solution 1
We note that by changing a digit to for the number , we are subtracting the number by either , , , or . Thus, . We can casework on backwards, finding the maximum value.
(Note that computing greatly simplifies computation).
Applying casework on , we can eventually obtain a working value of . ~akliu
Solution 2
Let our four digit number be . Replacing digits with 1, we get the following equations:
Reducing, we get
Subtracting , we get:
For the largest 4 digit number, we test values for a starting with 9. When a is 9, b is 4, c is 3, and d is 7. However, when switching the digits with 1, we quickly notice this doesnt work. Once we get to a=5, we get b=6,c=9,and d=4. Adding 694 with 5, we get -westwoodmonster
Solution 3
Let our four digit number be . Replacing digits with 1, we get the following equations:
Add the equations together, we get:
And since the remainder of 1111 divided by 7 is 5, we get:
Which gives us:
And since we know that changing each digit into 1 will make abcd divisible by 7, we get that , , , and all have a remainder of 3 when divided by 7. Thus, we get , , , and . Thus, we get 5694 as abcd, and the answer is .
~Callisto531
See also
2024 AIME II (Problems • Answer Key • Resources) | ||
Preceded by Problem 6 |
Followed by Problem 8 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 | ||
All AIME Problems and Solutions |
[[Category:]] The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.