Source: /cirosantilli/modular-exponentiation

= Modular exponentiation
{wiki}

Can be calculated efficiently with the <Extended Euclidean algorithm>.