Hi
I am having problem finding the remainder when 10^38 is divided by 13 i.e (10^38)mod13. Every time I calculate it myself I end up finding the answer 9 while matlab function 'rem(10^38,13)' always outputs 7.
For convenience I give my calculation here
10^38)mod13=((13-3)^38)mod13=((-3)^38)mod13=((27)^12)*9 mod13=(1^12)*9 mod13=9
So, surely there something might have gone wrong.
Thanks in advance
-ayi
I am having problem finding the remainder when 10^38 is divided by 13 i.e (10^38)mod13. Every time I calculate it myself I end up finding the answer 9 while matlab function 'rem(10^38,13)' always outputs 7.
For convenience I give my calculation here
So, surely there something might have gone wrong.
Thanks in advance
-ayi