OFFSET
1,1
LINKS
FORMULA
MATHEMATICA
f1[p_, e_] := (q = NextPrime[p])^e - p * q^(e-1); f2[p_, e_] := p^e - NextPrime[p] * p^(e-1); a[1] = 2; a[n_] := Times @@ f1 @@@ (f = FactorInteger[n]) + Times @@ f2 @@@ f; Array[a, 100] (* Amiram Eldar, Nov 18 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 17 2021
STATUS
approved