Compute 6^100 and 5^100 (mod 13): Solving the Mod Problem with Expert Help

  • Context: Undergrad 
  • Thread starter Thread starter krispiekr3am
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
13 replies · 3K views
krispiekr3am
Messages
23
Reaction score
0
compute 6^100 (mod 13).
Compute 5^100 (mod 13).
 
Physics news on Phys.org
Fermat's little theorem
is that a^p=a*(mod p)

but we have 6^100 mod13

a=6
p=100

6=6(mod100)?
we want mod 13 though
 
x^(a*b)?
i don't quiet understand or how that help us.
 
x^a*x^b
=x^(a+b)
?
can you guys give me the answer and i can work backward? because i can try many ways and will not know its the correct answer or not.
thanks
 
krispiekr3am said:
x^a*x^b
=x^(a+b)
?
can you guys give me the answer and i can work backward? because i can try many ways and will not know its the correct answer or not.
thanks

I would suggest exploring what happens when you have large exponents, but in simple cases.

matt grime points you in the right direction.

Note: Mathematics is about going forward and not backwards.
 
try [tex]6^{100} \left(\bmod \ 13\right) = \left(6^{12}\right)^8.6^4 \left(\bmod \ 13\right)[/tex]
and [tex]5^{100} \left(\bmod \ 13\right) = \left(5^{12}\right)^8.5^4 \left(\bmod \ 13\right)[/tex]
 
Last edited:
I did this using excel

6^100mod13 is equal to 9?

if its right, i think i did it right.

5^100mod13 is equal to 1?
 
Excel? Why? Did you not pay attention to the hints people have given you? If you raised 6 to the power 100 then reduced mod 13 you did it wrong. There is never any need to raise 6 (or any number coprime to 13) higer than the power 11 because x^12=1 mod 13 for x coprime with 13.
 
i follow the notes from my class.
the teacher created a chart of
all possible number n, 6^n, 6^n%13.
6^100 = (6^10)^10?
and knowing that 6^10=4
4^10mod13 =9
therefore 6^100mod13=9

n 6^n 6^n % 13
1 6 6
2 36 10
3 216 8
4 1296 9
5 7776 2
6 46656 12
7 279936 7
8 1679616 3
9 10077696 5
10 60466176 4
11 362797056 11
12 2176782336 9
 
Since you know all of the powers of 6 mod 13, why go to powers of 4? It is completely unnecessary. Further, why, for simplicitly do you use 36 for 6^2, instead of 10? There is never any need to work out powers large than 12 (for mod(13)), and never any need to multiply numbers that are larger than 13 (for mod(13)). Useful to remember if you don't have a calculator, or a computer to use.