Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A120797
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A120797 a(0) = 1. a(n) = n + (largest noncomposite {1 or prime} occurring earlier in the sequence). +0
1
1, 2, 4, 5, 9, 10, 11, 18, 19, 28, 29, 40, 41, 54, 55, 56, 57, 58, 59, 78, 79, 100, 101, 124, 125, 126, 127, 154, 155, 156, 157, 188, 189, 190, 191, 226, 227, 264, 265, 266, 267, 268, 269, 312, 313, 358, 359, 406, 407, 408, 409, 460, 461, 514, 515, 516, 517, 518 (list; graph; listen)
OFFSET

0,2

LINKS

Leroy Quet, Home Page (listed in lieu of email address)

EXAMPLE

Among terms a(0) through a(9), a(8) = 19 is the largest noncomposite. So a(10) = 10 + 19 = 29.

PROGRAM

(PARI) {m=58; print1(a=1, ", "); v=[a]; for(n=1, m, v=vecsort(v); j=#v; a=0; while(a<1, k=v[j]; if(isprime(k)||k==1, print1(a=n+k, ", "); v=concat(v, a), j--)))} - (Klaus Brockhaus, Aug 17 2006)

CROSSREFS

Sequence in context: A111490 A079784 A072795 this_sequence A047613 A036795 A024618

Adjacent sequences: A120794 A120795 A120796 this_sequence A120798 A120799 A120800

KEYWORD

nonn

AUTHOR

Leroy Quet Jul 05 2006

EXTENSIONS

More terms from Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Aug 17 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research