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”).

A333471
a(n) = 2 * mu(n) + Sum_{d|n, d > 1} mu(n/d) * (prime(d) - prime(d-1)).
1
2, -1, 0, 1, 2, 1, 2, 0, 2, 3, 0, 3, 2, -1, 0, 4, 4, -2, 4, -3, -2, 5, 2, 0, 4, 1, -2, 1, 0, -3, 12, -2, 4, -3, 4, -4, 4, 1, 0, 2, 4, 1, 8, -5, -2, -1, 10, 2, 0, -8, -2, 1, 0, 10, 2, 2, 0, 1, 4, -1, 0, -3, 10, 0, -4, -7, 12, 3, 6, -9, 2, 4, 6, 1, -2, -3, 2, 3, 2, -2
OFFSET
1,1
COMMENTS
Moebius transform of A054541 (2 followed by prime gaps).
FORMULA
a(n) = Sum_{d|n} mu(n/d) * A054541(d).
Sum_{k=1..n} floor(n/k) * a(k) = prime(n).
MATHEMATICA
a[n_] := 2 MoebiusMu[n] + Sum[If[d > 1, MoebiusMu[n/d] (Prime[d] - Prime[d - 1]), 0], {d, Divisors[n]}]; Table[a[n], {n, 1, 80}]
CROSSREFS
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, Mar 23 2020
STATUS
approved