Skip to main content
OlympiadHQ

Browse · MATH

Print

jmc

counting and probability intermediate

Problem

How many of the natural numbers from to inclusive, contain the digit at least twice? (The numbers and are two natural numbers that contain the digit at least twice, but or are not.)
Solution
There are numbers with a in the hundreds place and a in the units place.

There are numbers with a in the hundreds place and a in the tens place.

There are numbers with a in the tens place and a in the units place. (Remember, we only have the numbers from to )

Adding them up, we have However, we counted three times. Therefore subtract from to get numbers containing the digit at least twice.
Final answer
26