This is probably the first power algorithm you were taught.