Find the number of positive integers not greater than 2017 which do not contain the digits 8 or 9.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Great approach! I was thinking of a combinatorial solution, but this is much quicker.
Really great thought .
awesum man....gr8 approach
great thought
Abiding by the fundamental principles of counting,
Possible single digit numbers: 7 (excluding 8,9)
Possible two digit numbers: 7 × 8 = 5 6
Possible three digit numbers: 7 × 8 × 8 = 4 4 8
Possible four digit numbers between 1000 and 1999 inclusive: 1 × 8 × 8 × 8 = 5 1 2
Possible numbers between 2000 and 2017 = 16
Adding them up, 7 + 5 6 + 4 4 8 + 5 1 2 + 1 6 = 1 0 3 9
Problem Loading...
Note Loading...
Set Loading...
We look at 2 0 1 7 as a number in base 8 since all numbers less than or equal to 2 0 1 7 8 do not contain 8 nor 9 . Converting back to base 1 0 will give us the number of positive integers not greater than 2 0 1 7 which do not contain 8 or 9 .
2 0 1 7 8 = 1 0 3 9 1 0