The integer 48 178 includes the block of digits 178. The three
integers 51 870, 19 728 and 38 717 do not include the block of digits
178. How many integers between 10 000 and 100 000 include the block of
digits 178?
Problem 320
Pick one
Official solution
Since 100 000 does not include the block of digits 178, each
integer between 10 000 and 100 000 that includes the block of digits 178
has five digits.
Such an integer can be of the form or of the form or of the form for some digits and .
The leading digit of a five-digit integer has 9 possible values (any
digit from 1 to 9, inclusive) while a later digit in a five-digit
integer has 10 possible values (0 or any digit from 1 to 9,
inclusive).
This means that
there are 100 integers of the form (10 choices for each of and , and $10
10 = 100$),
there are 90 integers of the form (9 choices for and 10 choices for , and $9
10 = 90$), and
there are 90 integers of the form (9 choices for and 10 choices for , and $9
10 = 90$).
In total, there are thus $100 + 90 + 90 =
280$ integers between 10 000 and 100 000 that include the block
of digits 178.