Sunday, 13 August 2017

modular arithmetic - Calculate a number (mod)



Calculate: 31234 (mod 17)



We're not suppose to use any "tricks" like the little theorem or anything else alike because we haven't learned that yet just the the definition of modulo.



I tried to do this but it doesn't really help:



31234=201234=21234101234




Thanks in advance.


Answer



Doing arithmetic modulo 17 all along:



34=81=4,35=12=5,36=15=2,37=6,38=18=1



316=1,and 3 is a primitive root modulo17



Now:




1234=7716+231234=(316)7732=32=9


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find lim without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...