Wednesday, October 12, 2016

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

analysis - Injection, making bijection

I have injection f:AB and I want to get bijection. Can I just resting codomain to f(A)? I know that every function i...