OFFSET
1,5
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
A008578(6) = 11, and there are 5 composites smaller than 11, viz. 4, 6, 8, 9, 10, hence a(6) = 5.
MATHEMATICA
Join[{0}, Module[{nn=300, cmps}, cmps=Accumulate[Table[If[CompositeQ[n], 1, 0], {n, nn}]]; Table[cmps[[p]], {p, Prime[ Range[ PrimePi[ nn]]]}]]] (* Harvey P. Dale, Nov 11 2024 *)
PROG
(Magma) T:=[0, 1] cat PrimesUpTo(300); [ T[n+1]-n: n in [1..#T-1] ]; // Klaus Brockhaus, Sep 08 2009
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jaroslav Krizek, Jun 27 2009
EXTENSIONS
Edited and extended by Klaus Brockhaus, Sep 09 2009
STATUS
approved