how many non-negative integers less than 104 that contain the digit 2 ?
We identify one-digit number with two-digit number with and three-digit number with Taking into account that there are ten digits, we conclude by Combinatorial product rule that the number of non-negative integers less than is equal to Since without digit 2 there are nine digits, we conclude by Combinatorial product rule that the number of non-negative integers less than that do not contain the digit 2 is equal to
We conclude that the number of non-negative integers less than 104 that contain the digit 2 is equal to
Comments