- #1
Puzzles
- 21
- 0
Hi! I've been stuck with this problem:
How many different n digit numbers are there that contain the numbers 3 and 5?
I've approached it like this: There are 10^n different n digit numbers in total - variations made from the digits 0,...,9. There are 8^n of those that don't contain 3 and 5 which we have to eliminate from those. Now we have to eliminate the numbers that start with one zero, so there are 10^(n-1) of those, then there are 10^(n-2) that start with two zeros, etc, up until the 1 n digit number that is made out of n zeros.
I'm stuck. This isn't right, but I can't seem to see what I'm doing wrong. Please help me if you can!
How many different n digit numbers are there that contain the numbers 3 and 5?
I've approached it like this: There are 10^n different n digit numbers in total - variations made from the digits 0,...,9. There are 8^n of those that don't contain 3 and 5 which we have to eliminate from those. Now we have to eliminate the numbers that start with one zero, so there are 10^(n-1) of those, then there are 10^(n-2) that start with two zeros, etc, up until the 1 n digit number that is made out of n zeros.
I'm stuck. This isn't right, but I can't seem to see what I'm doing wrong. Please help me if you can!