Sunday, May 15, 2016

elementary number theory - Find remainder when 777777 is divided by 16


Find remainder when 777777 is divided by 16.



777=48×16+9. Then 7779(mod16).


Also by Fermat's theorem, 7771611(mod16) i.e 777151(mod16).


Also 777=51×15+4. Therefore,



777777=77751×15+4=(77715)51777411594(mod16) leading to 8181(mod16)1(mod16).


But answer given for this question is 9. Please suggest.

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...