Leftovers

A problem from Litton Problematical Recreations, which attributes it to Fermat circa 1635:

What is the remainder upon dividing 5999,999 by 7?

Click for Answer