I\'m gettin wrong output only for very large numbers (more than 16 digits). Can someone please help me figure out the bug?
public static BigInteger K(BigInteger x