login
This site is supported by donations to The OEIS Foundation.

 

Logo

Annual Appeal: Today, Nov 11 2014, is the 4th anniversary of the launch of the new OEIS web site. 70,000 sequences have been added in these four years, all edited by volunteers. Please make a donation (tax deductible in the US) to help keep the OEIS running.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A161624 Sum of all numbers from n to n-th prime. 1
3, 5, 12, 22, 56, 76, 132, 162, 240, 390, 441, 637, 783, 855, 1023, 1311, 1634, 1738, 2107, 2366, 2491, 2929, 3233, 3729, 4453, 4826, 5005, 5400, 5589, 6006, 7663, 8150, 8925, 9169, 10580, 10846, 11737, 12663, 13287, 14271, 15290, 15610, 17433, 17775 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Harvey P. Dale, Table of n, a(n) for n = 1..1000

FORMULA

a(n) = sum_{k=n..prime(n)} k.

EXAMPLE

First prime is 2, so a(1) = 1+2 = 3; fifth prime is 11, so a(5) = 5+6+7+8+9+10+11 = 56.

MATHEMATICA

snos[n_]:=Module[{pr=Prime[n]}, ((pr+n)(pr-n+1))/2]; Array[snos, 50] (* Harvey P. Dale, Jun 05 2012 *)

PROG

(MAGMA) [ &+[n..NthPrime(n)]: n in [1..44] ]; [From Klaus Brockhaus, Jun 14 2009]

CROSSREFS

Cf. A000027, A000040, A161570.

Sequence in context: A191391 A121482 A013498 * A247794 A034758 A215109

Adjacent sequences:  A161621 A161622 A161623 * A161625 A161626 A161627

KEYWORD

nonn

AUTHOR

Juri-Stepan Gerasimov, Jun 15 2009

EXTENSIONS

Edited and extended by Klaus Brockhaus, Jun 15 2009

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified December 21 10:54 EST 2014. Contains 252306 sequences.