Difference between revisions of "2019 AIME II Problems/Problem 14"
m (fixed mistake in text) |
Blueprimes (talk | contribs) (→Solution 3) |
||
(10 intermediate revisions by 6 users not shown) | |||
Line 12: | Line 12: | ||
Recalling that <math>n \geq 24</math>, we can easily figure out the working <math>(n,n+1)</math> pairs that can used to obtain <math>96</math>, as we can use at most <math>\frac{96}{24}=4</math> stamps without going over. The potential sets are <math>(24, 25), (31, 32), (32, 33), (47, 48), (48, 49), (95, 96)</math>, and <math>(96, 97)</math>. | Recalling that <math>n \geq 24</math>, we can easily figure out the working <math>(n,n+1)</math> pairs that can used to obtain <math>96</math>, as we can use at most <math>\frac{96}{24}=4</math> stamps without going over. The potential sets are <math>(24, 25), (31, 32), (32, 33), (47, 48), (48, 49), (95, 96)</math>, and <math>(96, 97)</math>. | ||
− | The last two obviously do not work, since they are too large to form the values <math>92</math> through <math> | + | The last two obviously do not work, since they are too large to form the values <math>92</math> through <math>95</math>. By a little testing, only <math>(24, 25)</math> and <math>(47, 48)</math> can form the necessary values, so <math>n \in \{24, 47\}</math>. <math>24 + 47 = \boxed{071}</math>. |
− | ~Revision by [[User:emerald_block|emerald_block]] | + | ~Revision by [[User:emerald_block|emerald_block]] ~Minor Revision by [[Mathkiddie|Mathkiddie]] |
===Note on finding and testing potential pairs=== | ===Note on finding and testing potential pairs=== | ||
Line 33: | Line 33: | ||
</math> | </math> | ||
− | To test whether a pair works, we simply check that, using the number <math>5</math> and the two numbers in the pair, it is impossible to form a sum of <math>91</math>, and | + | To test whether a pair works, we simply check that, using the number <math>5</math> and the two numbers in the pair, it is impossible to form a sum of <math>91</math>, and it is possible to form sums of <math>92</math>, <math>93</math>, and <math>94</math>. (<math>95</math> can always be formed using only <math>5</math>s, and the pair is already able to form <math>96</math> because that was how it was found.) We simply need to reach the residues <math>2</math>, <math>3</math>, and <math>4</math><math>\pmod{5}</math> using only <math>n</math> and <math>n+1</math> without going over the number we are trying to form, while being unable to do so with the residue <math>1</math>. As stated in the above solution, the last two pairs are clearly too large to work. |
<math> | <math> | ||
Line 62: | Line 62: | ||
Obviously <math>n\le 90</math>. We see that the problem's condition is equivalent to: 96 is the smallest number that can be formed which is 1 mod 5, and 92, 93, 94 can be formed (95 can always be formed). Now divide this up into cases. If <math>n\equiv 0\pmod{5}</math>, then 91 can be formed by using <math>n+1</math> and some 5's, so there are no solutions for this case. If <math>n\equiv 1\pmod{5}</math>, then 91 can be formed by using <math>n</math> and some 5's, so there are no solutions for this case either. | Obviously <math>n\le 90</math>. We see that the problem's condition is equivalent to: 96 is the smallest number that can be formed which is 1 mod 5, and 92, 93, 94 can be formed (95 can always be formed). Now divide this up into cases. If <math>n\equiv 0\pmod{5}</math>, then 91 can be formed by using <math>n+1</math> and some 5's, so there are no solutions for this case. If <math>n\equiv 1\pmod{5}</math>, then 91 can be formed by using <math>n</math> and some 5's, so there are no solutions for this case either. | ||
− | For <math>n\equiv 2\pmod{5}</math>, <math>2n+2</math> is the smallest value that can be formed which is 1 mod 5, so <math>2n+2=96</math> and <math>n=47</math>. We see that <math>92=45+47</math>, <math>93=48+45</math>, and <math>94=47+47</math>, so <math>n=47</math> does work. If <math>n\equiv 3\pmod{5}</math>, then the smallest value that can be formed which is 1 mod 5 is <math>2n</math>, so <math>2n=96</math> and <math>n=48</math>. We see that <math>94=49+45</math> and <math>93=48+45</math>, but 92 cannot be formed, so there are no solutions for this case. If <math>n\equiv 4\pmod{5}</math>, then we can just ignore <math>n+1</math> since it is a multiple of 5, meaning that the Chicken | + | For <math>n\equiv 2\pmod{5}</math>, <math>2n+2</math> is the smallest value that can be formed which is 1 mod 5, so <math>2n+2=96</math> and <math>n=47</math>. We see that <math>92=45+47</math>, <math>93=48+45</math>, and <math>94=47+47</math>, so <math>n=47</math> does work. If <math>n\equiv 3\pmod{5}</math>, then the smallest value that can be formed which is 1 mod 5 is <math>2n</math>, so <math>2n=96</math> and <math>n=48</math>. We see that <math>94=49+45</math> and <math>93=48+45</math>, but 92 cannot be formed, so there are no solutions for this case. If <math>n\equiv 4\pmod{5}</math>, then we can just ignore <math>n+1</math> since it is a multiple of 5, meaning that the Chicken McNugget theorem is a both necessary and sufficient condition, and it states that <math>5n-n-5=91</math> meaning <math>4n=96</math> and <math>n=24</math>. |
Hence, the only two <math>n</math> that work are <math>n=24</math> and <math>n=47</math>, so our answer is <math>24+47=\boxed{071}</math>. | Hence, the only two <math>n</math> that work are <math>n=24</math> and <math>n=47</math>, so our answer is <math>24+47=\boxed{071}</math>. | ||
-Stormersyle | -Stormersyle | ||
+ | |||
+ | ==Solution 4 (straightforward)== | ||
+ | |||
+ | Consider a postage that gives <math>96</math>. We cannot use a <math>5</math>-stamp as otherwise simply removing it yields a postage that gives <math>91</math>. Additionally, there cannot be at least <math>5</math> of <math>n</math>-stamps or <math>n + 1</math>-stamps, as else we can convert <math>5</math> of the same valued stamp into a positive number of <math>5</math>-stamps, then remove one to get a postage of <math>91</math>. | ||
+ | |||
+ | |||
+ | From here consider integers <math>0 \le a, b, \le 4</math> where <math>an + b(n + 1) = 96 \implies n = \dfrac{96 - b}{a + b}</math>. The only pairs <math>(a, b)</math> that yield an integer value are <math>(a, b) = (0, 2), (0, 3), (0, 4), (1, 0), (2, 0), (3, 0), (4, 0), (4, 1)</math> which generate the values <math>n = 47, 31, 23, 96, 48, 32, 24, 19</math> respectively. It is easy to find counterexamples of postages that evaluate to <math>91</math> besides <math>n = 24, 47</math>. | ||
+ | |||
+ | |||
+ | Now for <math>n = 24</math> clearly <math>91</math> is unobtainable since we need a <math>4 \pmod {5}</math> amount of <math>24</math>-stamps which exceeds a value of <math>96</math>. A similar result holds for <math>n = 47</math> as any evaluation <math>\le 2 \cdot 47</math> can only be <math>0, 2, 3 \pmod{5}</math>. In both cases it is easy to construct a postage for <math>92, 93, 94, 95, 96</math>, to which repeatedly adding <math>5</math>-stamps makes all postages worth <math>>91</math> possible. The requesteed sum is <math>24 + 47 = \boxed{71}</math>. | ||
+ | |||
+ | - blueprimes | ||
+ | |||
+ | ==Video Solution== | ||
+ | Video solution by Dr. Osman Nal: https://www.youtube.com/watch?v=fTZP2e-_rjA | ||
+ | |||
+ | ~Mathkiddie | ||
==See Also== | ==See Also== | ||
{{AIME box|year=2019|n=II|num-b=13|num-a=15}} | {{AIME box|year=2019|n=II|num-b=13|num-a=15}} | ||
+ | [[Category: Intermediate Number Theory Problems]] | ||
{{MAA Notice}} | {{MAA Notice}} |
Latest revision as of 22:26, 22 November 2024
Contents
Problem
Find the sum of all positive integers such that, given an unlimited supply of stamps of denominations and cents, cents is the greatest postage that cannot be formed.
Solution 1
By the Chicken McNugget theorem, the least possible value of such that cents cannot be formed satisfies , so must be at least .
For a value of to work, we must not only be unable to form the value , but we must also be able to form the values through , as with these five values, we can form any value greater than by using additional cent stamps.
Notice that we must form the value without forming the value . If we use any cent stamps when forming , we could simply remove one to get . This means that we must obtain the value using only stamps of denominations and .
Recalling that , we can easily figure out the working pairs that can used to obtain , as we can use at most stamps without going over. The potential sets are , and .
The last two obviously do not work, since they are too large to form the values through . By a little testing, only and can form the necessary values, so . .
~Revision by emerald_block ~Minor Revision by Mathkiddie
Note on finding and testing potential pairs
In order to find potential pairs, we simply test all combinations of and that sum to less than (so that ) to see if they produce an integer value of when their sum is set to . Note that, since is divisible by , , , and , we must either use only or only , as otherwise, the sum is guaranteed to not be divisible by one of the numbers , , and .
To test whether a pair works, we simply check that, using the number and the two numbers in the pair, it is impossible to form a sum of , and it is possible to form sums of , , and . ( can always be formed using only s, and the pair is already able to form because that was how it was found.) We simply need to reach the residues , , and using only and without going over the number we are trying to form, while being unable to do so with the residue . As stated in the above solution, the last two pairs are clearly too large to work.
(Note that if a pair is unable to fulfill a single requirement, there is no need to check the rest.)
Solution 2
Notice that once we hit all residues , we'd be able to get any number greater (since we can continually add to each residue). Furthermore, since otherwise is obtainable (by repeatedly adding to either or ) Since the given numbers are , , and , we consider two cases: when and when is not that.
When , we can only hit all residues once we get to (since and only contribute more residue ). Looking at multiples of greater than with , we get . It's easy to check that this works. Furthermore, any greater than this does not work since isn't the largest unobtainable value (can be verified using Chicken McNugget Theorem).
Now, if , then we'd need to go up to until we can hit all residues since and create distinct residues . Checking for such gives and . It's easy to check that works, but does not (since is unobtainable). Furthermore, any greater than this does not work since isn't the largest unobtainable value in those cases (can be verified using Chicken McNugget Theorem). (Also note that in the case, the residue has will not be produced until while the case has already been produced, so the highest possible value that cannot be produced would not be a number equivalent to )
Since we've checked all residues , we can be sure that these are all the possible values of . Hence, the answer is . - ktong
Solution 3
Obviously . We see that the problem's condition is equivalent to: 96 is the smallest number that can be formed which is 1 mod 5, and 92, 93, 94 can be formed (95 can always be formed). Now divide this up into cases. If , then 91 can be formed by using and some 5's, so there are no solutions for this case. If , then 91 can be formed by using and some 5's, so there are no solutions for this case either.
For , is the smallest value that can be formed which is 1 mod 5, so and . We see that , , and , so does work. If , then the smallest value that can be formed which is 1 mod 5 is , so and . We see that and , but 92 cannot be formed, so there are no solutions for this case. If , then we can just ignore since it is a multiple of 5, meaning that the Chicken McNugget theorem is a both necessary and sufficient condition, and it states that meaning and . Hence, the only two that work are and , so our answer is . -Stormersyle
Solution 4 (straightforward)
Consider a postage that gives . We cannot use a -stamp as otherwise simply removing it yields a postage that gives . Additionally, there cannot be at least of -stamps or -stamps, as else we can convert of the same valued stamp into a positive number of -stamps, then remove one to get a postage of .
From here consider integers where . The only pairs that yield an integer value are which generate the values respectively. It is easy to find counterexamples of postages that evaluate to besides .
Now for clearly is unobtainable since we need a amount of -stamps which exceeds a value of . A similar result holds for as any evaluation can only be . In both cases it is easy to construct a postage for , to which repeatedly adding -stamps makes all postages worth possible. The requesteed sum is .
- blueprimes
Video Solution
Video solution by Dr. Osman Nal: https://www.youtube.com/watch?v=fTZP2e-_rjA
~Mathkiddie
See Also
2019 AIME II (Problems • Answer Key • Resources) | ||
Preceded by Problem 13 |
Followed by Problem 15 | |
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.