total perm: 10^6
0 in front 10^5
Exclude 0 in front = 10^6-10^10=900000
No repeat: 10p6 =151200 exclude 0 in front = 9*9p5 = 136080
One number twice: ||****, bar can be 1 of 10, so 10*6c2 = 150, stars are 9p4=3024, total: 453600 exclude 0 in front: when bars are in front, there are 5 ways to place the 2 bars so at least 1 is in front: -10*5*9p4 so: 438480
One number 4 times: 10*6c4*9^2= 12150
Excluding 0 in front: (10*6c4-1*5c3)*9^2=11745
One number 5 times: 10*6c5*9p1=540
Excluding 0 in front: (10*6c5 - 1*5c4)*9p1=495
One number 6 times: 10*6c6=10
Excluding 0 in front: 10-1=9
AABBCC: 6c2*10c1*4c2*9c1*2c2*8c1=64800
Excluding 0 in front (logic shown in thread #23 and # 24): - 5*9c1*8c1 - 5 *10c1*8c1 - 5*10c1*9c1
After excluding = 63590
AAABBB 6c3*10c1*3c3*9c1=1800
Excluding 0 in front: For the rest of 2A to fill in 5 spot you have 10 ways to form AAA*** when the first spot is always A. So to get rid of zero existing in A, - 10*9c1, and same for B, - 10*10c1
After excluding = 1610
AAABBC 6c3*10c1*3c2*9c1*1c1*8c1=32400
Excluding 0s in front: For 2A to fill in 5 spot you have 10 ways to form AAA*** when the first spot is always A. So to get rid of zero existing in A same as shown previously, -10 ways so - 10*9c1*8c1, and for B, as we showed before, 5ways, so - 5*10c1*8c1, for C only 1 way, so - 1*10c1*9c1
After excluding = 31190
Final answer: 900000-136080-438480-11745-495-9-63590-1610-31190 = 900000 - 683199 = 216801 not sure if correct but at least it turned out to be a 2lac number.