What is the number of all possible $7$-digit PIN codes if
1) all the digits in a code should be different?
2) all the digits should be different and the first digit should be greater than the second one?
3) the sum of the digits should be $9$? (digits may repeat)
I think the answer for the first question is $604800$