I want to calculate the reminder for high power value using casio (fx-991es) Ex: $$ 87^{17} \ \bmod 77 $$
This method not working because the number is too large Ex: $$ 9/2=4.5= 4-4.5=0.5= 0.5*2=1 $$
I want to calculate the reminder for high power value using casio (fx-991es) Ex: $$ 87^{17} \ \bmod 77 $$
This method not working because the number is too large Ex: $$ 9/2=4.5= 4-4.5=0.5= 0.5*2=1 $$
You could go about like this:
$$ 87^{17}\equiv_{77} 10^{17}=10\cdot(10^2)^8=10\cdot100^8\equiv_{77}=10\cdot23^8 $$ then since $23^2=529\equiv_{77}67$ we have $$ 10\cdot(23^2)^4\equiv10\cdot67^4 $$ and you keep on like this always reducing the base by breaking up the exponent.
Hope this helps