Let's use this algorithm to raise 3 to the power 7.