Difference between revisions of "2017 AIME II Problems/Problem 4"
(→Solution) |
(→Solution) |
||
Line 8: | Line 8: | ||
Solution 2 (please add latex) | Solution 2 (please add latex) | ||
− | Note that 2017= | + | Note that <math>2017=220221_{3}</math>, and <math>2187=3^7=10000000_{3}</math>. There can be a <math>1,2,...,7</math> digit number less than <math>2187</math>, and each digit can either be <math>1</math> or <math>2</math>. So <math>2^1</math> one digit numbers and so on up to <math>2^7</math> <math>7</math> digit. |
− | |||
− | + | Now we have to subtract out numbers from <math>2018</math> to <math>2187</math> | |
− | + | Then either the number must begin <math>221...</math> or <math>222...</math> with four more digits at the end | |
− | + | Using <math>1</math>s and <math>2</math>s there are <math>2^4</math> options for each so: | |
− | + | <math>2+4+8+16+32+64+128-2*16=256-2-32=222</math> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | 2+4+8+16+32+64+128-2*16=256-2-32=222 | ||
=See Also= | =See Also= | ||
{{AIME box|year=2017|n=II|num-b=3|num-a=5}} | {{AIME box|year=2017|n=II|num-b=3|num-a=5}} | ||
{{MAA Notice}} | {{MAA Notice}} |
Revision as of 19:22, 23 March 2017
Problem
Find the number of positive integers less than or equal to whose base-three representation contains no digit equal to .
Solution
The base- representation of is . Because any -digit base- number that starts with and has no digit equal to must be greater than , all -digit numbers that have no digit equal to must start with or in base . Of the base- numbers that have no digit equal to , there are -digit numbers that start with , -digit numbers that start with , -digit numbers, -digit numbers, -digit numbers, -digit numbers, -digit numbers, and -digit numbers. Summing these up, we find that the answer is .
Solution 2 (please add latex)
Note that , and . There can be a digit number less than , and each digit can either be or . So one digit numbers and so on up to digit.
Now we have to subtract out numbers from to
Then either the number must begin or with four more digits at the end
Using s and s there are options for each so:
See Also
2017 AIME II (Problems • Answer Key • Resources) | ||
Preceded by Problem 3 |
Followed by Problem 5 | |
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.