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

A171508
Numbers that are not the sum of the k-th noncomposite number and k for any k >= 1.
1
1, 3, 5, 7, 8, 10, 11, 13, 14, 15, 16, 18, 19, 21, 22, 23, 24, 26, 27, 29, 30, 31, 32, 34, 35, 36, 37, 38, 39, 41, 42, 44, 45, 46, 47, 48, 49, 51, 52, 53, 54, 56, 57, 59, 60, 61, 62, 64, 65, 66
OFFSET
1,2
MATHEMATICA
With[{nn=20}, Complement[Range[Prime[nn-1]], Total/@Thread[ {Join[{1}, Prime[ Range[nn-1]]], Range[nn]}]]] (* Harvey P. Dale, Nov 25 2012 *)
CROSSREFS
Sequence in context: A189829 A175146 A351076 * A049068 A185602 A225554
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Dec 10 2009
EXTENSIONS
Edited by N. J. A. Sloane, Dec 19 2009
STATUS
approved