How many 7-digit sequences have a digit that appears at least 6 times?
(For example, 3339333 and 0200000 are two such sequences. A sequence is allowed to begin with 0.)
7 times = 10
6 times = 10 * 9 * 7 = 630
10 + 630 = 640