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

#Infinite_Powers: The_Story_of_Calculus-The_ Language_of_ the_Universe - #Steven_Strogatz - Review

     Often, the public thinks that scientific breakthroughs happen when lone geniuses discover something new, but in reality, discoveries oc...