mersenneforum.org Modular arithmetic query
 Register FAQ Search Today's Posts Mark Forums Read

 2020-06-08, 11:43 #1 garo     Aug 2002 Termonfeckin, IE 5×19×29 Posts Modular arithmetic query Apologies if this is very basic. Could anyone tell me why $(g^{a}\ mod\ p) \cdot (g^{b}\ mod\ p) \ mod\ p\equiv g^{(a+b)\ mod\ (p-1)}\ mod\ p$ Last fiddled with by garo on 2020-06-08 at 11:47
 2020-06-08, 11:53 #2 retina Undefined     "The unspeakable one" Jun 2006 My evil lair 2×32×11×29 Posts
 2020-06-08, 12:07 #3 garo     Aug 2002 Termonfeckin, IE 5·19·29 Posts Right. I got that far but couldn't make the connection. How do I get from the totient function to (a+b) mod (p-1)?
2020-06-08, 12:09   #4
retina
Undefined

"The unspeakable one"
Jun 2006
My evil lair

2×32×11×29 Posts

Quote:
 Originally Posted by garo Right. I got that far but couldn't make the connection. How do I get from the totient function to (a+b) mod (p-1)?
For primes the totient function is simply p-1. So multiples of p-1 in the exponent can be ignored.

 2020-06-08, 12:15 #5 garo     Aug 2002 Termonfeckin, IE 275510 Posts Gotcha. Thanks for your help. Not sure why I was making it more complicated in my head. Last fiddled with by garo on 2020-06-08 at 12:16

 Similar Threads Thread Thread Starter Forum Replies Last Post science_man_88 Miscellaneous Math 42 2011-07-26 02:02 JuanTutors Math 4 2009-03-11 16:06 ixfd64 Programming 15 2008-07-30 03:52 Numbers Math 27 2005-11-30 15:41 ixfd64 Software 0 2004-05-27 05:42

All times are UTC. The time now is 14:41.

Thu Oct 1 14:41:33 UTC 2020 up 21 days, 11:52, 1 user, load averages: 2.00, 1.79, 1.60