use BigInteger as return value for problem 1