Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A120365
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A120365 a(1) = 3, a(2) = 4. a(n) = (largest composite which occurs earlier in sequence) + (largest prime which occurs earlier in sequence). +0
1
3, 4, 7, 11, 15, 26, 37, 63, 100, 137, 237, 374, 511, 648, 785, 922, 1059, 1196, 1333, 1470, 1607, 3077, 4684, 6291, 7898, 9505, 11112, 12719, 14326, 15933, 17540, 19147, 20754, 22361, 23968, 25575, 27182, 28789, 55971, 84760, 113549, 142338, 171127 (list; graph; listen)
OFFSET

1,1

MAPLE

A120365 := proc(nmax) local a, lcomp, lpr, anew ; a := [3, 4] ; lcomp := 4 ; lpr := 3 ; while nops(a) < nmax do anew := lcomp+lpr ; a := [op(a), anew] ; if isprime(anew) then lpr := max(lpr, anew) ; else lcomp := max(lcomp, anew) ; fi ; od ; RETURN(a) ; end ; print(A120365(80) ) ; - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Dec 16 2006

CROSSREFS

Sequence in context: A039010 A127208 A027022 this_sequence A060962 A069950 A100581

Adjacent sequences: A120362 A120363 A120364 this_sequence A120366 A120367 A120368

KEYWORD

nonn

AUTHOR

Leroy Quet (qq-quet(AT)mindspring.com), Jun 26 2006

EXTENSIONS

More terms from R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Dec 16 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 July 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research