OFFSET
1,4
LINKS
Ray Chandler, Table of n, a(n) for n=1..100000
FORMULA
a((n)) = n and a(m) <> n for m < A055079(n). - Reinhard Zumkeller, Dec 16 2013
G.f.: Sum_{k>=1} (x^k - x^prime(k))/((1 - x^k)*(1 - x^prime(k))). - Ilya Gutkovskiy, Jan 17 2017
Dirichlet g.f.: zeta(s)*(zeta(s)-primezeta(s)). - Benedict W. J. Irwin, Jul 11 2018
Sum_{k=1..n} a(k) ~ n*log(n) - n*log(log(n)) + (2*gamma - 1 - B)*n, where gamma is Euler's constant (A001620) and B is Mertens's constant (A077761). - Amiram Eldar, Nov 27 2022
MATHEMATICA
Table[Length[Select[Divisors[n], ! PrimeQ[#] &]], {n, 104}] (* Jayanta Basu, May 23 2013 *)
Table[DivisorSigma[0, n] - PrimeNu[n], {n, 100}] (* Vincenzo Librandi, May 17 2017 *)
Table[Count[Divisors[n], _?CompositeQ], {n, 110}]+1 (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jun 11 2019 *)
PROG
(Haskell)
a033273 = length . filter ((== 0) . a010051) . a027750_row
-- Reinhard Zumkeller, Dec 16 2013
(PARI) a(n) = numdiv(n) - omega(n); \\ Michel Marcus, Apr 28 2016
(Magma) [NumberOfDivisors(n) - #PrimeDivisors(n): n in [1..150]]; // Vincenzo Librandi, May 17 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Reinhard Zumkeller, Sep 02 2003
Corrected error in offset. - Jaroslav Krizek, May 04 2009
Extended by Ray Chandler, Aug 07 2010
STATUS
approved