What is the remainder of 5 9 9 when it is divided by 7?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
yep Fermat's little theorem does it, @Raymond Lin do you attend MBHS?
How have you solved after you have typed 'so'. ??
5 9 9 ≡ ( 7 − 2 ) 9 9 (mod 7) ≡ − 2 9 9 (mod 7) ≡ − 8 3 3 (mod 7) ≡ − ( 7 + 1 ) 3 3 (mod 7) ≡ − 1 (mod 7) ≡ 6 (mod 7)
From Fermat's Little Theorem, = = = = = = = = = = = = 5 9 9 5 9 9 m o d 6 5 ( 9 9 − 6 0 ) m o d 6 5 3 9 m o d 6 5 ( 3 9 − 3 6 ) m o d 6 5 3 1 2 5 ( 1 2 5 − 7 0 ) 5 5 ( 5 5 − 5 6 ) − 1 ( − 1 + 7 ) 6 m o d 7 m o d 7 m o d 7 m o d 7 m o d 7 m o d 7 m o d 7 m o d 7 m o d 7 m o d 7 m o d 7 m o d 7 It may be a bit long, but this is how I calculate it in my heart.
Calculate the first few terms and look for a pattern:
>>> [(5**n)%7 for n in range(2,20)]
[4, 6, 2, 3, 1, 5, 4, 6, 2, 3, 1, 5, 4L, 6L, 2L, 3L, 1L, 5L]
Notice that it's mod 6.
99 mod 6 is 6.
Problem Loading...
Note Loading...
Set Loading...
By Fermat's Little Theorem, 5 6 ≡ 1 m o d 7 , so 5 9 9 ≡ 5 3 ≡ 6 m o d 7 .