Multiplication of powers with the same base