We present an algorithm for computing a power of an integer. We call this algorithm the
Naive Exponentiation algorithm, since there is a more clever way of calculating powers which we will present with
Algorithm 15.22.
In this algorithm, the number of steps in the sequence of computations,
is directly given as one of the inputs. We demonstrate this algorithm with a numerical example.