Problem 16 cheating with BigInteger