OFFSET
1,1
COMMENTS
a(n) = the number of numbers of set {1, prime} (A008578(n)) less than n-th composite numbers (A002808(n)). a(n) = inverse (frequency distribution) sequence of A162177(n), i.e. number of terms of sequence A162177(n) less than n for n >= 1. a(n) = A002808(n) + A162177(n) - A158611(n+1) for n >= 1. a(n) = A002808(n) + A162177(n) - A008578(n) for n >= 1. [From Jaroslav Krizek, Jul 23 2009]
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n)=1+A073425(n). [From R. J. Mathar, Jul 31 2009]
MATHEMATICA
c[n_Integer] := FixedPoint[n+PrimePi[ # ]+1&, n] Table[c[w]-w, {w, 1, 128}]
With[{c=Select[Range[100], CompositeQ]}, #[[1]]-#[[2]]&/@Thread[ {c, Range[ Length[ c]]}]] (* Harvey P. Dale, Feb 03 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jul 19 2002
EXTENSIONS
STATUS
approved