
 % Carmichael's totient function

   function out=lambda(p,q)
     out=lcm(p-1,q-1)
   return

