OFFSET
1,3
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = A065855(2*n). - Reinhard Zumkeller, Oct 14 2014
EXAMPLE
a(9) = 10, since 18 is the 10th composite number: 4, 6, 8, 9, 10, 12, 14, 15, 16, 18.
MATHEMATICA
Table[2*n-(PrimePi[2*n])-1, {n, 1, 128}]
PROG
(PARI) { for (n=1, 1000, f=2*n; a=f - primepi(f) - 1; write("b065896.txt", n, " ", a) ) } \\ Harry J. Smith, Nov 04 2009
(Haskell)
a065896 = a065855 . (* 2) -- Reinhard Zumkeller, Oct 14 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Nov 28 2001
EXTENSIONS
More precise definition from Michel Marcus, Mar 07 2021~
STATUS
approved