How many $5$-digit numbers can be formed from digits $0 ,1,....9$ such that no $2$ same digits are sit next to each other?
I tried to solve the problem but complement as following
There are
$$9 \cdot 10 \cdot 10 \cdot 10 \cdot 10$$
$5$-digit numbers.
Now I find ways to form $5$-digit number with $2$ same digits. $$9 \cdot 5C2 \cdot 9C3 \cdot 4!$$ "First choose $2$ places out of $5$, then fill them by $9$ ways and fill the other $3$ places by $9C3$ and finally permute them all."
Then the answer $= 9 \cdot 10 \cdot 10 \cdot 10 \cdot 10 - 9 \cdot 5C2 \cdot 9C3 \cdot 4!$
Is my work true? Is there a simpler way ?
Thank you for your help.