How many $5$ digit numbers can be formed from the integers $\{1,2,...,9\}$ if no digit can appear more than twice.(for example 41434 is not allowed)
My approach is : Since, $max $ 2$ digits can repeat: $=9\times9\times8\times7\times6$
Total Numbers $=27216$.
My Questions:
1) Is this approach correct?
2) Do we need to add the total distinct digit numbers or it is already included. Please advise best ways to solve these type of questions.