OFFSET
1,1
LINKS
T. D. Noe, Table of n, a(n) for n = 1..500
P. J. Cameron and D. A. Preece, Notes on primitive lambda-roots, 2009. See formula in theorem 5.2 (c) p. 8.
EXAMPLE
Because A002174(5)=8 and psi(k)=8 for k=32,96,160,480, we have a(5)=4.
PROG
(PARI) a079612(n) = {if (n%2, 2, res = 1; forprime(p=2, n+1, if (!(n % (p-1)), t = valuation(n, p); if (p==2, if (t, res *= p^(t+2)), res *= p^(t+1)); ); ); res; ); }
nb(n) = sumdiv(n, d, moebius(n/d)*numdiv(a079612(d)));
lista(nn) = for (n=1, nn, if (nbs = nb(n), print1(nbs, ", "))); \\ Michel Marcus, May 12 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Aug 13 2008
STATUS
approved