2.i. Only one number is 4 or 7: 2× 8× 8+8× 2× 8+8× 8× 2× 8+8× 8× 8× 8 = 4096.
Two. There are two digits that are 4 or 7: 4! /(2! ×2! )×4×8×8= 1536
Three. There are three numbers that are 4 or 7: 4! /(3! × 1)×2^3×8=256
Ⅳ. All numbers are 4 or 7: 2 4 =16.
* * * There are 4096+1536+256+16 = 5904.