DR.WANG Mathematics中文

1985 AJHSME (AMC 8 series) · Question 15

Number theory · digits · inclusion-exclusion · casework · counting · problem-solving

Problem outline

How many whole numbers from 100100 through 399399 contain at least one digit 22? Options: A 100100, B 120120, C 138138, D 140140, E 148148.

Show answer and methods 1 methods

Answer

C. 138138.

Method 1 Count the complement

There are 300300 integers from 100100 through 399399.

To avoid digit 22, the hundreds digit has 22 choices (11 or 33), and each other digit has 99 choices. Thus 2⋅9⋅9=1622\cdot9\cdot9=162 numbers contain no 22.

Therefore 300−162=138300-162=138 numbers contain at least one 22.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)