OFFSET
2,2
COMMENTS
The function psi(n) in the paper by Carlip et al. - R. J. Mathar, Aug 22 2012
LINKS
Andrew Howroyd, Table of n, a(n) for n = 2..10000
W. Carlip, E. Jacobson, and L. Somer, Pseudoprimes, perfect numbers and a problem of Lehmer, Fib. Quart. 36 (4) (1998) 361
FORMULA
EXAMPLE
1425 = 3*5^2*19 => a(1425) = lcm(2,4,18) = 36.
MATHEMATICA
a[n_] := {aux = 1; fa = FactorInteger[n]; len = Length[fa]; grau = Table[fa[[s]][[1]] - 1, {s, len}]; Do[aux = LCM[aux, grau[[i]]], {i, len}]; aux}[[1]]; Table[a[n], {n, 2, 40}]
PROG
(PARI) a(n)=lcm(apply(p->p-1, factor(n)[, 1])) \\ Andrew Howroyd, Aug 06 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
José María Grau Ribas, Feb 22 2010
STATUS
approved