Reaminder Problem 2

Find the remainder when 3 247 3^{247} is divided by 17 17 .


The answer is 11.

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.

7 solutions

By Fermat's Little Theorem , we know that 3 16 1 ( m o d 17 ) 3^{16} \equiv 1 \pmod{17} .

Now 247 = 15 16 + 7 247 = 15*16 + 7 , so we now can say that

3 247 = 3 ( 15 16 + 7 ) 3 7 ( m o d 17 ) 3^{247} = 3^{(15 *16 + 7)} \equiv 3^{7} \pmod{17} .

Finally, 3 7 = 2187 = 128 17 + 11 3^{7} = 2187 = 128 * 17 + 11 , so the desired remainder is 11 \boxed{11} .

What is Fermat's Little theorem, and what is (mod 17) in it is it modulus ??

Manish Mayank - 6 years, 10 months ago

Log in to reply

Yes, this calculation is in modulus 17. Fermat's Little Theorem states that if p p is prime, then for any integer a a we have that

a p a ( m o d p ) a^{p} \equiv a \pmod{p} .

Further, if a a and p p are co-prime, then

a p 1 1 ( m o d p ) a^{p-1} \equiv 1 \pmod{p} .

This is the version I used in the first line of my solution.

Brian Charlesworth - 6 years, 10 months ago

Log in to reply

sir, what if they are not co primes ? Also what if p is not a prime?

Mohammed Ali - 6 years, 6 months ago

Go through euler theorem U ll find it very helpful

Avee Arora - 6 years, 6 months ago

You cannot just force a problem to conform to a dam theorem !! 247 = 14*17 + 9

So 247 is congruent to 9 !!

DarkMind S. - 4 years, 9 months ago

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.

Isaac Thomas - 6 years, 6 months ago
Nicolai Kofoed
Jan 4, 2015

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:

  1. 3^1 mod 17 ≡ 3

  2. 3^2 mod 17 ≡ 9

  3. 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.

  1. 3^4 mod 17 ≡ 10*3 mod 17 ≡ 13

  2. 3^5 mod 17 ≡ 13*3 mod 17 ≡ 5

  3. 3^6 mod 17 ≡ 5*3 mod 17 ≡ 15

  4. 3^7 mod 17 ≡ 11

  5. 3^8 mod 17 ≡ 16

  6. 3^9 mod 17 ≡ 14

  7. 3^10 mod 17 ≡ 8

  8. 3^11 mod 17 ≡ 7

  9. 3^12 mod 17 ≡ 4

  10. 3^13 mod 17 ≡ 12

  11. 3^14 mod 17 ≡ 2

  12. 3^15 mod 17 ≡ 6

  13. 3^16 mod 17 ≡ 1

  14. 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.

Renah Bernat
Nov 17, 2014

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.

Hemanth Koundinya
Nov 17, 2014

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.



Saket Rathi
Nov 18, 2014

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)

Rahul Kumar
Sep 7, 2014

((3^16)^15) 3^7 / 17 = 3^7/17= rem. 11 ( 3^16/17= rem 1)

Les Schumer
Feb 17, 2021

Notice that 247 = 13 19 247=13*19\\ Hence: 3 247 = ( 3 19 ) 13 3^{247} = (3^{19})^{13}\\ ( 3 19 ) 13 = ( 3 3 3 16 ) 13 (3^{19})^{13} = (3^{3} * 3^{16})^{13}\\ By Fermat's little theorem, 3 16 1 m o d 17 3^{16} \equiv 1 \mod{17} hence ( 3 19 ) 13 ( 3 3 1 ) 13 m o d 17 (3^{19})^{13} \equiv (3^{3}*1)^{13} \mod {17} \\ ( 3 3 ) 13 ( 27 ) 13 m o d 17 ( 10 ) 13 m o d 17 (3^{3})^{13} \equiv (27)^{13} \mod {17} \equiv (10)^{13} \mod{17}\\ ( 10 ) 13 ( 10 ) 16 ( 10 ) 3 m o d 17 (10)^{13} \equiv \frac{(10)^{16}}{(10)^3} \mod{17} \\ Again, by Fermat's little theorem, ( 10 ) 16 ( 10 ) 3 1 1000 m o d 17 1 14 m o d 17 1 4 1 m o d 17 \frac{(10)^{16}}{(10)^3} \equiv \frac{1}{1000} \mod{17} \equiv \frac{1}{14} \mod{17} \equiv 14^{-1} \mod{17}\\ By whatever method you prefer to obtain a modular inverse, 1 4 1 11 m o d 17 14^{-1} \equiv 11 \mod{17} \\ Hence 3 247 11 m o d 17 3^{247} \equiv \boxed{11} \mod{17}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...