public BigInt Karmichael(BigInt p, BigInt q) { BigInt one = new BigInt("1"); return(BigInt.LCM(BigInt.subtract(p, one), BigInt.subtract(q, one))); }