Problem 243: solved, used information in problem to 'guess' the solution
Problem 188: like normal modular exponentiation, but going downwards to avoid hitting recursion limit