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



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

When successive powers of 5 are divided by 7, the remainders form a repeating series:
51 / 7 = 0 remainder 5
52 / 7 = 3 remainder 4
53 / 7 = 17 remainder 6
54 / 7 = 89 remainder 2
55 / 7 = 446 remainder 3
56 / 7 = 2232 remainder 1
57 / 7 = 11160 remainder 5
58 / 7 = 55803 remainder 4
59 / 7 = 279017 remainder 6
510 / 7 = 1395089 remainder 2

The 999,999th term of the series is 6.

No comments:

Post a Comment

#Humble_Pi: A comedy of Maths Errors - #Matt_Parker - Review

     This is certainly the first book I have ever read in which page numbers start from higher to lowest. And it has been done to justify th...