Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A104589
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A104589 a(1)=1. a(n) = a(n-1) + (sum of terms, from among terms a(1) through a(n-1), which are prime or 1). +0
1
1, 2, 5, 13, 34, 55, 76, 97, 215, 333, 451, 569, 1256, 1943, 2630, 3317, 4004, 4691, 10069, 25516, 40963, 56410, 71857, 87304, 102751, 118198, 133645, 149092, 164539, 179986, 195433, 210880, 226327, 241774, 257221, 529889, 802557, 1075225 (list; graph; listen)
OFFSET

1,2

COMMENT

By Dirichlet's Theorem there are an infinite number of primes in this sequence.

EXAMPLE

The noncomposites among the first 8 terms of the sequence are 1, 2, 5, 13, and 97. The sum of these is 1+2+5+13+97 = 118. So a(9) = a(8) + 118 = 215.

MATHEMATICA

f[lst_] := Append[lst, Last(AT) lst + Plus (AT)(AT) Select[lst, (PrimeQ(AT)# || # == 1) &]]; Nest[f, {1}, 38] (* Robert G. Wilson v *).

CROSSREFS

Sequence in context: A052988 A001429 A112841 this_sequence A122024 A027931 A103142

Adjacent sequences: A104586 A104587 A104588 this_sequence A104590 A104591 A104592

KEYWORD

nonn

AUTHOR

Leroy Quet (qq-quet(AT)mindspring.com), Jun 12 2007

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(AT)rgwv.com), Jul 02 2007

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 26 13:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research