OFFSET
1,6
COMMENTS
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..16384
Antti Karttunen, Data supplement: n, a(n) computed for n = 1..65537
Wikipedia, Lehmer's totient problem
FORMULA
MATHEMATICA
uphi[1]=1; uphi[n_]:=Times@@(#[[1]]^#[[2]]-1&/@FactorInteger[n]);
a[n_]:=uphi[n]/GCD[n-1, uphi[n]]; Array[a, 100] (* Giorgos Kalogeropoulos, Jun 30 2021 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 29 2021
STATUS
approved