How many numbers with $3$ digits can be formed with the digits $1,2,3,4,5$
if there is no restriction at the repetition of the digits
how many if no digit can be repeated more than twice
and how many if repetitions are not allowed
For the first subquestion, I thought that $5^3$ numbers with $3$ digits can be formed.
For the third subquestion, I thought that $5 \cdot 4 \cdot 3$ can be formed with $3$ digits.But which is the general formula?
How can I find how many numbers with $3$ digits can be formed,for the second subquestion?
Principle of inclusion and exclusion– Karo Jun 02 '14 at 20:29