Find the remainder when 3 2 4 7 is divided by 1 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.
What is Fermat's Little theorem, and what is (mod 17) in it is it modulus ??
Log in to reply
Yes, this calculation is in modulus 17. Fermat's Little Theorem states that if p is prime, then for any integer a we have that
a p ≡ a ( m o d p ) .
Further, if a and p are co-prime, then
a p − 1 ≡ 1 ( m o d p ) .
This is the version I used in the first line of my solution.
Log in to reply
sir, what if they are not co primes ? Also what if p is not a prime?
Go through euler theorem U ll find it very helpful
You cannot just force a problem to conform to a dam theorem !! 247 = 14*17 + 9
So 247 is congruent to 9 !!
It's just irritating that problems which require pure background knowledge and little to no inferences and problem solving are posted on Brilliant. Nevertheless, I love the solution.
This solution might seem slow, and I guess it is, however it is very simple and do not require an extensive knowledge of theorems, etc.
Take the base, in this case 3 and put it to the power of first 1, then 2, 3 and so on, until it repeats itself. So you get:
3^1 mod 17 ≡ 3
3^2 mod 17 ≡ 9
3^3 mod 17 ≡ 10
The first 3 seem easy, but it gets harder to do it as the exponent grows. The trick is to multiply the right hand side of the congruent sign by the base, in this case 3 and take the modulus 17 of the number to get the next step.
3^4 mod 17 ≡ 10*3 mod 17 ≡ 13
3^5 mod 17 ≡ 13*3 mod 17 ≡ 5
3^6 mod 17 ≡ 5*3 mod 17 ≡ 15
3^7 mod 17 ≡ 11
3^8 mod 17 ≡ 16
3^9 mod 17 ≡ 14
3^10 mod 17 ≡ 8
3^11 mod 17 ≡ 7
3^12 mod 17 ≡ 4
3^13 mod 17 ≡ 12
3^14 mod 17 ≡ 2
3^15 mod 17 ≡ 6
3^16 mod 17 ≡ 1
3^17 mod 17 ≡ 3. Notice that this the same as in step 1. So the value repeats itself every 16. exponent. So we know, that 3^247 mod 17 ≡ 3^(247 mod 16) mod 17 ≡ 3^7 mod 17. We know this is equal to step 7, and thus 3^7 mod 17 ≡ 11.
Euler's rule: 17 and 3 are co-primes, so the rule is applicable.. Euler's number of 17 = 16. Remainder(3 / 17) = 3 Rem (247/16) = 7 so Rem(3^247 / 17) => Rem(3^7 / 17) = Rem(2187 / 17) (manual)= 11.
By Fermat's Little Theorem
, 3^16 == 1(mod17).
Since 247 = (15
16) + 7, 3^247 = 3^((15
16)+7) == 3^7(mod 17).
3 to the seventh power = 2187 = 128*17 + 11,
and therefore the remainder of the original quotient is 11.
just make cycle of (3/17) remainder=3 ;(3^2/17) rem =9 ;3^3/17) rem=10 ;3^4/17)rem=13 ;3^5/17)rem=5 ;3^6/17)rem=15 ;3^7/17)rem=11 ;3^8/17)rem=-1 since we got -1 at 8th iteration implies complete cycle is of 16 now divide 247/16 remainder 7 implies 7th term So final answer 11(our 7th term in cycle)
((3^16)^15) 3^7 / 17 = 3^7/17= rem. 11 ( 3^16/17= rem 1)
Notice that 2 4 7 = 1 3 ∗ 1 9 Hence: 3 2 4 7 = ( 3 1 9 ) 1 3 ( 3 1 9 ) 1 3 = ( 3 3 ∗ 3 1 6 ) 1 3 By Fermat's little theorem, 3 1 6 ≡ 1 m o d 1 7 hence ( 3 1 9 ) 1 3 ≡ ( 3 3 ∗ 1 ) 1 3 m o d 1 7 ( 3 3 ) 1 3 ≡ ( 2 7 ) 1 3 m o d 1 7 ≡ ( 1 0 ) 1 3 m o d 1 7 ( 1 0 ) 1 3 ≡ ( 1 0 ) 3 ( 1 0 ) 1 6 m o d 1 7 Again, by Fermat's little theorem, ( 1 0 ) 3 ( 1 0 ) 1 6 ≡ 1 0 0 0 1 m o d 1 7 ≡ 1 4 1 m o d 1 7 ≡ 1 4 − 1 m o d 1 7 By whatever method you prefer to obtain a modular inverse, 1 4 − 1 ≡ 1 1 m o d 1 7 Hence 3 2 4 7 ≡ 1 1 m o d 1 7
Problem Loading...
Note Loading...
Set Loading...
By Fermat's Little Theorem , we know that 3 1 6 ≡ 1 ( m o d 1 7 ) .
Now 2 4 7 = 1 5 ∗ 1 6 + 7 , so we now can say that
3 2 4 7 = 3 ( 1 5 ∗ 1 6 + 7 ) ≡ 3 7 ( m o d 1 7 ) .
Finally, 3 7 = 2 1 8 7 = 1 2 8 ∗ 1 7 + 1 1 , so the desired remainder is 1 1 .