(1000-1/7)*(100-1/7)*(10-1/7)
=(100000-1100/7+1/49)*(10-1/7)
=1000000-1428又4/7+69/343
=998511又216/343