Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A108754
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A108754 Difference between partial sum of the first n primes and n^2. +0
1
1, 1, 1, 1, 3, 5, 9, 13, 19, 29, 39, 53, 69, 85, 103, 125, 151, 177, 207, 239, 271, 307, 345, 387, 435, 485, 535, 587, 639, 693, 759, 827, 899, 971, 1051, 1131, 1215, 1303, 1393, 1487, 1585, 1683, 1789, 1895, 2003, 2111, 2229, 2357, 2487, 2617, 2749, 2885, 3021 (list; graph; listen)
OFFSET

1,5

COMMENT

Also difference between partial sum of the first n primes and the sum of the first n odd numbers. - Cino Hilliard (hillcino368(AT)hotmail.com), Dec 02 2007

EXAMPLE

a(5)=A007504(5)-A000290(5)=28-(5^2)=3

MATHEMATICA

Table[ Sum[ Prime[i], {i, n}] - n^2, {n, 53}] (from Robert G. Wilson v (rgwv(AT)rgwv.com), Jun 25 2005)

PROGRAM

(PARI) g(n) = for(x=1, n, y=sum(j=1, x, 2*j-1); z=sum(j=1, x, prime(j)); print1(z-y", ")) - Cino Hilliard (hillcino368(AT)hotmail.com), Dec 02 2007

CROSSREFS

Cf. A007504, A000290.

Sequence in context: A080827 A102378 A118026 this_sequence A033499 A106607 A007042

Adjacent sequences: A108751 A108752 A108753 this_sequence A108755 A108756 A108757

KEYWORD

base,easy,nonn

AUTHOR

Alexandre Wajnberg (alexandre.wajnberg(AT)ulb.ac.be), Jun 23 2005

EXTENSIONS

Edited and extended by Robert G. Wilson v (rgwv(AT)rgwv.com), Jun 25 2005

page 1

Search completed in 0.005 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