Exponentiating by squaring is an algorithm used for the fast computation of large integer powers of a number .

Exponentiating by squaring is an algorithm . It is used for quickly working out large integer powers of a number .
