Addition-chain exponentiation (source code)

= Addition-chain exponentiation
{wiki=Addition-chain_exponentiation}

Addition-chain exponentiation is an efficient algorithm used for computing large powers of a number, particularly in the context of modular arithmetic, common in fields such as cryptography. The main idea behind addition-chain exponentiation is to represent the exponent as a sum of earlier results obtained from multiplying the base by itself and applying the operations of addition and multiplication in a structured way.