login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A003976
Möbius transform of A003963 (with alternate 0's omitted).
0
1, 1, 2, 3, 2, 4, 5, 2, 6, 7, 3, 8, 6, 4, 9, 10, 4, 6, 11, 5, 12, 13, 4, 14, 12, 6, 15, 8, 7, 16, 17, 6, 10, 18, 8, 19, 20, 6, 12, 21, 8, 22, 12, 9, 23, 15, 10, 14, 24, 8, 25, 26, 6, 27, 28, 11, 29, 16, 10, 18, 20, 12, 18, 30, 13, 31, 21, 8, 32, 33, 14, 20, 18, 12, 34, 35, 12, 20
OFFSET
1,3
LINKS
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
Sequence in context: A136181 A265110 A304742 * A252371 A275817 A286533
KEYWORD
nonn,easy,mult
AUTHOR
EXTENSIONS
More terms from David W. Wilson, Aug 29 2001
STATUS
approved