कुठलेही गणितीय प्रश्न सोडवा
तत्त्वज्ञान, अर्थशास्त्र, गणित, तत्त्वज्ञान,
चरणानुक्रमे
- 2790^{2753} \bmod 3233
Never compute the huge power. Reduce after every multiplication (repeated squaring).
- 2790 \equiv 2790 \pmod{3233}
Reduce the base first.
- 2753 = 101011000001_2
Write the exponent in binary: 12 squarings at most.
- r \leftarrow r \cdot 2790 \equiv 2790 \pmod{3233}
This bit is 1: multiply the result by the current power.
- 2790^2 \equiv 2269 \pmod{3233}
Square the running power.
- 2269^2 \equiv 1425 \pmod{3233}
Square the running power.
- 1425^2 \equiv 301 \pmod{3233}
Square the running power.
- 301^2 \equiv 77 \pmod{3233}
Square the running power.
- 77^2 \equiv 2696 \pmod{3233}
Square the running power.
- 2696^2 \equiv 632 \pmod{3233}
Square the running power.
- r \leftarrow r \cdot 632 \equiv 1295 \pmod{3233}
This bit is 1: multiply the result by the current power.
- 632^2 \equiv 1765 \pmod{3233}
Square the running power.
- r \leftarrow r \cdot 1765 \equiv 3177 \pmod{3233}
This bit is 1: multiply the result by the current power.
- 1765^2 \equiv 1846 \pmod{3233}
Square the running power.
- 1846^2 \equiv 134 \pmod{3233}
Square the running power.
- r \leftarrow r \cdot 134 \equiv 2195 \pmod{3233}
This bit is 1: multiply the result by the current power.
- 134^2 \equiv 1791 \pmod{3233}
Square the running power.
- \vdots
Same pattern for the remaining bits.
- 2790^{2753} \equiv 65 \pmod{3233}
Done.