OFFSET
1,3
LINKS
N. J. A. Sloane, Transforms.
FORMULA
Multiplicative with a(p^e) = (q-1)q^(e-1) where q = pi(p) = A000720(p). - David W. Wilson, Sep 01 2001
EXAMPLE
The Möbius transform begins 1,0,1,0,2,0,3,0,2,0,4,0,5,0,2,0,6,0,7,0,...
MATHEMATICA
f[p_, e_] := Module[{q = PrimePi[p]}, (q-1)q^(e-1)]; a[n_] := Times @@ f @@@ FactorInteger[2*n-1]; a[1] = 1; Array[a, 100] (* Amiram Eldar, Sep 04 2023 *)
PROG
(PARI) a(n) = {my(f=factor(2*n-1)); for (i=1, #f~, q = primepi(f[i, 1]); f[i, 1] = (q-1)*q^(f[i, 2]-1); f[i, 2] = 1); factorback(f); } \\ Michel Marcus, Feb 27 2015
CROSSREFS
KEYWORD
nonn,easy,mult
AUTHOR
EXTENSIONS
More terms from David W. Wilson, Aug 29 2001
STATUS
approved