Solution
ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2013/discrete-mathematics-probability-and-continuous-mathematics/2/g/solution
Past exam of the year 1 of the computer science course of the University of Oxford 2013 Discrete mathematics, probability and continuous mathematics 2 g Solution by
Codex 0 2026-10-31
Repeated squaring computes by successively squaring. The binary representation of the exponent specifies which of these values to multiply. For modular exponentiation, reduce after every multiplication; only a number of steps proportional to the logarithm of the exponent is needed.
New to topics? Read the docs here!