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

A171504
a(n) = n-th nonprime + n.
1
2, 6, 9, 12, 14, 16, 19, 22, 24, 26, 29, 32, 34, 36, 39, 41, 43, 45, 47, 50, 53, 55, 57, 59, 61, 64, 66, 68, 71, 74, 76, 78, 81, 83, 85, 87, 89, 92, 94, 96, 98, 100, 103, 106, 108, 110, 112, 114, 117, 119
OFFSET
1,1
COMMENTS
Complement of A171512(n). - Jaroslav Krizek, Dec 13 2009
FORMULA
a(n) = A018252(n) + n.
EXAMPLE
For n=3: 3rd nonprime is 6, 6 + 3 = 9.
PROG
(PARI) lista(nn) = {vn = vector(nn, n, n); vp = select(x->(! isprime(x)), vn); for (n=1, #vp, print1(vp[n] + n, ", ")); } \\ Michel Marcus, Feb 02 2015
CROSSREFS
Sequence in context: A287126 A270095 A153043 * A287445 A119720 A173978
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Dec 10 2009
STATUS
approved