Calculate Remainders of Squares and Cubes Modulo Various Integers | Problems