Quote:
Originally Posted by mohit_353 Hi;
can any body pls explain this problem while considering the euler's or fermat;s rule step by step......  i tried to go through both the rules but can't understand completely....
thanks in advance... |
17^28820/30030
the factors of 30030 are 2,3,5,7,11 and 13
euler's no of 30030 = 30030(1-1/2)(1-1/3)(1-1/5)(1-1/7)(1-1/11)(1-1/13)
=1*2*4*6*10*12
=5760
therefore 17^5760=1mod30030
which implies (17^5760)^5=17^28800=1mod30030
so v need to find the remainder of 17^20/30030
17^20 is odd.
so 17^20=1mod2 -------------------1
using fermat's little theorem
17^2=1mod3
so 17^20=1mod3 -------------------2
17^4=1mod5
so 17^20=1mod5 --------------------3
17^6=1mod7
17^20=17^18 * 17^2=289mod7=2mod7 --------------4
17^10=1mod11
so 17^20=1mod11 -----------------5
17^12=1mod13
17^20=17^12 * 17^8 =(17^8 )mod13=(3^4)mod13=3mod13 --------------6
from eqns 1,2,3,5
17^20=1mod330 -----------7
from 4 and 7
17^20=331mod2310 --------------8
from 6 and 8
v get remainder as 9571.
is it clear now??go through the link tatimatla has posted for remainder problems..it will be very helpful.