Calculation of powers and quotients