OFFSET
1,8
LINKS
FORMULA
For n >= 0, a(4n+2) = a(2n+1).
Sum_{k=1..n} a(k) ~ c * n^2, where c = 3/Pi^2 - (1/2) * Product_{p prime} ((p^2-p)/(p^2-q(p))) = 0.0832596219... , where q(p) = prevprime(p) (A151799) if p > 2 and q(2) = 1. - Amiram Eldar, Dec 21 2023
MATHEMATICA
f1[p_, e_] := (p - 1)*p^(e - 1); f2[p_, e_] := If[p == 2, 1, NextPrime[p, -1]^e]; a[1] = 0; a[n_] := Times @@ f1 @@@ (f = FactorInteger[n]) - Times @@ f2 @@@ f; Array[a, 100] (* Amiram Eldar, May 07 2022 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 06 2022
STATUS
approved