Ṣàfikún àwọn
Àwọn ìṣàfarawégbèsì, àwọn ìṣàfarawégbèsì, àwọn ìdáràn, àwọn márítìrì, àwọn
Àwọn ìṣàmúlò-ètò
- 65^{17} \bmod 3233
Never compute the huge power. Reduce after every multiplication (repeated squaring).
- 65 \equiv 65 \pmod{3233}
Reduce the base first.
- 17 = 10001_2
Write the exponent in binary: 5 squarings at most.
- r \leftarrow r \cdot 65 \equiv 65 \pmod{3233}
This bit is 1: multiply the result by the current power.
- 65^2 \equiv 992 \pmod{3233}
Square the running power.
- 992^2 \equiv 1232 \pmod{3233}
Square the running power.
- 1232^2 \equiv 1547 \pmod{3233}
Square the running power.
- 1547^2 \equiv 789 \pmod{3233}
Square the running power.
- r \leftarrow r \cdot 789 \equiv 2790 \pmod{3233}
This bit is 1: multiply the result by the current power.
- 65^{17} \equiv 2790 \pmod{3233}
Done.
Fi àwọn àgbèwọlé hàn
65^{17} \bmod 3233 = 2790