Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A134181
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A134181 Difference between cumulative prime and odd sums. +0
2
0, 0, 0, 2, 4, 8, 12, 18, 28, 38, 52, 68, 84, 102, 124, 150, 176, 206, 238, 270, 306, 344, 386, 434, 484, 534, 586, 638, 692, 758, 826, 898, 970, 1050, 1130, 1214, 1302, 1392, 1486, 1584, 1682, 1788, 1894, 2002, 2110, 2228, 2356, 2486, 2616, 2748, 2884, 3020 (list; graph; listen)
OFFSET

1,4

COMMENT

This sequence is the difference between A071148 and A005563, as seen in the following tabular example: 1st column is prime, 2nd is odd, 3rd is prime sum (A071148), 4th is odd sum (A005563), 5th is the difference at each summation, the prime sequence increasingly greater.

3 3 3 3 0

5 5 8 8 0

7 7 15 15 0

11 9 26 24 2

13 11 39 35 4

17 13 56 48 8

19 15 75 63 12

23 17 98 80 18

29 19 127 99 28

31 21 158 120 38

FORMULA

Beginning with 3 for both the prime and odd sequences, compute cumulative sums of both sequences and take the difference

EXAMPLE

a(2)=0 because for the prime sequence beginning at 3, the sum is 8 (3+5). For the odd sequence beginning at 3 the sum is also 8 (3+5), and 8-8=0.

PROGRAM

UBASIC: 10 N=1:A=2 20 A=nxtprm(A):B=B+A 30 N=N+2:D=D+N 40 print A; N; B; D; B-D:stop 50 C=C+1:if C<60 then 20

CROSSREFS

Cf. A071148 A005563 A134182.

Sequence in context: A006501 A074633 A006500 this_sequence A125606 A136184 A011908

Adjacent sequences: A134178 A134179 A134180 this_sequence A134182 A134183 A134184

KEYWORD

easy,nonn

AUTHOR

Enoch Haga (Enokh(AT)comcast.net), Oct 13 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 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research