OFFSET
1,3
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
L. Blum; M. Blum; M. Shub, A simple unpredictable pseudorandom number generator, SIAM J. Comput. 15 (1986), no. 2, 364-383. see p. 377.
J.-H. Evertse and E. van Heyst, Which new RSA signatures can be computed from some given RSA signatures?, Proceedings of Eurocrypt'90, Lect. Notes Comput. Sci., 473, Springer-Verlag, pp. 84-97, see page 86.
Eric Weisstein's World of Mathematics, Carmichael Function.
Eric Weisstein's World of Mathematics, Modulo Multiplication Group.
FORMULA
a(n) = A002322(2*n), for n != 2. - Vladeta Jovovic, Feb 28 2004
MATHEMATICA
Table[ If[ n==1, 1, LCM@@Map[ (#1[ [ 1 ] ]-1)*#1[ [ 1 ] ]^(#1[ [ 2 ] ]-1)&, FactorInteger[ n ] ] ], {n, 1, 70} ] (* Olivier Gérard, Aug 1997 *)
a[2] = 1;
a[n_] := CarmichaelLambda[2n];
Array[a, 1000] (* Jean-François Alcover, Sep 19 2020 *)
PROG
(PARI) a(n)=lcm( apply( f -> (f[1]-1)*f[1]^(f[2]-1), Vec(factor(n)~))) \\ M. F. Hasler, Oct 23 2011
(Haskell)
a011773 n = foldl lcm 1 $ map (a085730 . a095874) $
zipWith (^) (a027748_row n) (a124010_row n)
-- Reinhard Zumkeller, Feb 16 2012
CROSSREFS
KEYWORD
nonn,nice,easy
AUTHOR
Thierry Moreau (Thierry.Moreau(AT)connotech.com), Simon Plouffe
EXTENSIONS
Description corrected by Antti Karttunen, Jan 09 2000
Definition made more explicit by M. F. Hasler, Oct 23 2011
STATUS
approved