BigInteger, happy number etc