+c(5, 1) * c (10,5) Only the number of1overlaps other numbers, and the two numbers must be adjacent and equal. In the interpolation method, the remaining five numbers are five grids, because the left and right insertion methods of the last number are the same.
+((c (4,2)+c (4,1)) * c (10,4)) There are two numbers in the whole series that overlap with other numbers, and these two numbers can be adjacent and equal. In this case, there is C (4, 1), and it is also possible that two numbers are different from other numbers.
+((c (3,2) * c (2, 1)+c (3,1)+1) * c (10,3)) There are three numbers in the whole series that coincide with other numbers, which is similar to the last clock. Put them away. Another situation is that all three numbers are the same. Three numbers are tied together as an element, and one of the three spaces can choose c(3, 1). Another situation is that three numbers are the same as those three numbers, similar to the arrangement of 665544. There is only one fixed permutation, so add 1.
+5 * c +5*c( 10/0,2) There are four numbers in the whole series that coincide with other numbers, and the last number is definitely the smallest. The method is the same as before.
The six numbers of+c (6,0) * c 0)*c( 10/0, 1) are all coincident.
- 1000000
=c( 15,6)- 1
=5004