Answer:
B. 5,114,800
Explanation:
Digit A can be 0 through 7. That is 8 choices.
8
Digits B and C can be any digit from 1 to 8. That is 8 choices.
8 × 8 × 8
Digits D, E, F, and G can be any digit from 1 to 9. That is 10 choices.
8 × 8 × 8 × 10 × 10 × 10 × 10 = 5,120,000
Digits D, E, F, and G cannot all be the same digit.
8 × 8 × 8 = 512
There are 512 numbers ending in 0000, 512 numbers ending in 1111, etc.
512 × 10 = 5,120
There are 5,120 numbers which end in 4 equal digits. We subtrac that number from our total.
5,120,000 - 5,120 = 5,114,880