Is Carmichael's Lambda Function implemented? Sloane's A002322 Reduced totient function psi(n): least k such that x^k == 1 (mod n) for all x prime to n; also Carmichael lambda function (exponent of unit group mod n). http://mathworld.wolfram.com/CarmichaelFunction.html tomdean