OFFSET
1,2
COMMENTS
LINKS
Carl Pomerance, On Carmichael's conjecture, Proceedings of the American Mathematical Society 43 (1974), 297-298.
Wikipedia, Carmichael's totient function conjecture.
MATHEMATICA
a[n_] := DivisorSum[EulerPhi[n], Mod[n, (#+1)^2] &, PrimeQ[# + 1] &]; Array[a, 100] (* Amiram Eldar, Dec 06 2024 *)
PROG
(PARI) row_a343902(n) = my(e=eulerphi(n), v=[]); forprime(p=1, e+1, if(e%(p-1)==0, v=concat(v, [p]))); v \\ corrected by Amiram Eldar, Dec 06 2024
a(n) = my(v=row_a343902(n)); sum(i=1, #v, n%v[i]^2)
(PARI) a(n) = sumdiv(eulerphi(n), d, isprime(d+1) * n % (d+1)^2); \\ Amiram Eldar, Dec 06 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Fröhlich, May 03 2021
EXTENSIONS
Offset changed to 1 and data corrected by Amiram Eldar, Dec 06 2024
STATUS
approved