login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A073884 a(1) =2. Let S(k) = sum of k terms. If S(n) is prime then a(n+1) is the smallest prime not included earlier else a(n+1) is the smallest composite number not included earlier. 0
2, 3, 5, 4, 6, 8, 9, 7, 10, 12, 14, 15, 16, 18, 20, 11, 21, 13, 22, 24, 25, 26, 27, 28, 30, 32, 33, 34, 35, 36, 38, 39, 40, 42, 44, 45, 46, 48, 49, 17, 50, 51, 52, 54, 55, 56, 57, 58, 60, 19, 62, 63, 64, 65, 66, 68, 69, 70, 23, 72, 74, 75, 29, 76, 77, 78, 80, 81, 82, 84, 85, 31 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

LINKS

Table of n, a(n) for n=0..71.

CROSSREFS

Sequence in context: A073298 A073291 A073280 * A209293 A328021 A097290

Adjacent sequences:  A073881 A073882 A073883 * A073885 A073886 A073887

KEYWORD

nonn

AUTHOR

Amarnath Murthy, Aug 17 2002

EXTENSIONS

Corrected and extended by Sean A. Irvine, Nov 29 2009

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 27 04:57 EST 2020. Contains 331291 sequences. (Running on oeis4.)