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

A152993
a(n) = n - d(n) - pi(n) + 1.
1
1, 0, 0, 0, 1, 0, 2, 1, 3, 3, 5, 2, 6, 5, 6, 6, 9, 6, 10, 7, 10, 11, 13, 8, 14, 14, 15, 14, 18, 13, 19, 16, 19, 20, 21, 17, 24, 23, 24, 21, 27, 22, 28, 25, 26, 29, 31, 24, 32, 30, 33, 32, 36, 31, 36, 33, 38, 39, 41, 32, 42, 41, 40, 40, 44, 41, 47, 44, 47, 44
OFFSET
1,7
LINKS
FORMULA
a(n) = n - A000005(n) - A000720(n) + 1.
MATHEMATICA
Table[n-DivisorSigma[0, n]-PrimePi[n]+1, {n, 70}] (* Harvey P. Dale, Sep 16 2020 *)
PROG
(PARI) a(n) = {n - numdiv(n) - primepi(n) + 1} \\ Andrew Howroyd, Jan 03 2020
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Omar E. Pol, Dec 19 2008
EXTENSIONS
Terms a(17) and beyond from Andrew Howroyd, Jan 03 2020
STATUS
approved