Example 4
Calculate f(x) = m310
When we are dealing with exponents that do not belong to the
2n sequence, the first step is to multiply the results
of each operation by itself as many times as it takes for the result to
be greater than 310. This simply means continue with the multiplication
operation until the result is greater than the value of the function you
are trying to calculate.