Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A134128
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A134128 Running total associated with A134125 to which each new prime is added: cumulative prime sums producing integral quotients when divided by the running index of the count. +0
6
2, 5, 17, 58, 129, 5117, 43201, 329401, 1459228, 111461983, 269553485, 316504138, 734845192, 6185946407, 10731178047, 22691403557, 148086969623, 474635764987, 6777574922490, 30458710811303 (list; graph; listen)
OFFSET

1,1

COMMENT

See A134125 and cross-references

FORMULA

The sequence begins with 2, to which 3 is added. The sum 2+3=5, and this becomes the sum to which the new prime 5 is added, making a new sum of 10. 7 is added making a new sum of 17, but 17/3 is not integral so is not added to the sequence.

EXAMPLE

a(7) = 58, Adding the next prime 19, the sum is 77. At count 7 77/7=11, integral, so 58 added to the sequence.

PROGRAM

UBASIC: 10 'primes using counters 20 N=3:C=1:R=5:print 2; 3, 5 30 A=3:S=sqrt(N) 40 B=N\A 50 if B*A=N then N=N+2:goto 30 60 A=A+2:O=A 70 if A<=sqrt(N) then 40 80 C=C+1 90 R=R+N:T=R/C:U=R-N 100 if T=int(T) then print C; U; N; R; T:stop 110 N=N+2:goto 30

CROSSREFS

Cf. A134125 A134126 A134127 A134129.

Sequence in context: A149990 A149991 A149992 this_sequence A119254 A056679 A084528

Adjacent sequences: A134125 A134126 A134127 this_sequence A134129 A134130 A134131

KEYWORD

easy,more,nonn,uned

AUTHOR

Enoch Haga (Enokh(AT)comcast.net), Oct 09 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 December 4 21:35 EST 2008. Contains 151309 sequences.


AT&T Labs Research