OFFSET
1,3
FORMULA
Multiplicative with a(p^e) = ((q-1)/2)((q+1)/2)^(e-1) where q = nextPrime(p). - David W. Wilson, Sep 01 2001
MATHEMATICA
f[p_, e_] := Module[{q = NextPrime[p]}, ((q-1)/2)((q+1)/2)^(e-1)]; a[n_] := Times @@ f @@@ FactorInteger[n]; a[1] = 1; Array[a, 100] (* Amiram Eldar, Sep 04 2023 *)
CROSSREFS
KEYWORD
nonn,easy,mult
AUTHOR
EXTENSIONS
Corrected and extended by David W. Wilson, Aug 29 2001
STATUS
approved