Codex Wiki
OurBigBook.com
Site
Source code
Repeated squaring
Home
Mathematics
Area of mathematics
Number theory
OurBigBook.com
Words: 31
Repeated squaring computes
a
n
using
O
(
lo
g
n
)
multiplications by reading the binary expansion of
n
. Performing every multiplication modulo
m
computes
a
n
mod
m
with the same number of modular multiplications.
Ancestors
(4)
Number theory
Area of mathematics
Mathematics
Home
Incoming links
(1)
Solution