How many 8 digit numbers can be formed using the digits 1,2 and 3 so that the number contains at least one of each of these three digits?
[Math] Possible ways of 8 digit numbers using 1,2 and 3 such that the number has atleast one digit for each 1,2,and 3
combinationspermutations
Related Question
- [Math] How many $4$-digit numbers can be formed from the digits $1,2,3,4,5,6,7$ if each digit can only be used once and sum of digits is even
- [Math] How many $5$-digit positive even numbers can be formed by using all of the digits $1$, $2$, $3$ and $6$
- The number of positive integers of 5 digits such that each digit is 1, 2 or 3, and all three of the digits appear atleast once.
Best Answer
Hence the answer is $3^8-2^8-2^8-2^8+1+1+1=5796$
(the single-digit numbers are counted twice, so we need to "uncount" them)