With 8 of 10 digits (ex: 0,1,2,3,4,5,6,7,8,9) we could have 1360800000 numbers; as you can see calculated here:
Partitions:
one digit appears 3 times, (example: 3749832414)
$\dbinom{8}{1}\dbinom{10}{2}\biggl(\dfrac{10!}{3!}\biggl)= 217728000$
two digits appear 2 times each. (example: 7364512193)
$\dbinom{8}{2}\dbinom{10}{2}\biggl(\dfrac{10!}{2!2!}\biggl)= 1143072000$
and sum of them is: 1360800000
The question is: how to get index of these numbers? For example, what is the index of 3749832414 or 7364512193?
There is a solution in this link, but it doesn't provide an index according to 10 digits, but provides an index according to digits that provided for the function. So it will return 0 for both 0123456777 and 0123456888 which does not answer the need for finding the index for each number if we consider 10 digits.
Edit
Leading zeros are allowed.
It doesn't matter how to index these numbers, just indexing them to be able to know what index represents what number and vise versa.
Edit
1360800000 is the count of numbers that have 8 of 10 digits and length of 10. In others words, all the 10 digit numbers that have two of their digits appeared two times each or one of their digits appeared 3 times like 3749832414 or 7364512193, in other words 1360800000 is count of all the permutations that have 2 global extra appearances of digits (0,1,2,3,4,5,6,7,8,9) in the length of 10 digits/symbols which causes the appearance of 8 digits out of 10 available digits.
Python code to calculate the count of these numbers:
c2 = binomial(8, 1) * binomial(10, 2) * (factorial(10) / factorial(3))
c11 = binomial(8, 2) * binomial(10, 2) * (factorial(10) / (factorial(2) * factorial(2)))
print(c2)
print(c11)
csum = c2 + c11
print("sum is: ", csum)
which prints :
217728000.000000
1143072000.00000
sum is: 1360800000.00000