Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A099850
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A099850 Sum of the first n terms of A004648 (the remainder after dividing n-th prime by n). +0
4
0, 1, 3, 6, 7, 8, 11, 14, 19, 28, 37, 38, 40, 41, 43, 48, 56, 63, 73, 84, 94, 107, 121, 138, 160, 183, 205, 228, 250, 273, 276, 279, 284, 287, 296, 303, 312, 323, 334, 347, 362, 375, 394, 411, 428, 443, 466, 497, 528, 557, 586, 617, 646, 681, 718, 757, 798, 837 (list; graph; listen)
OFFSET

1,3

LINKS

T. D. Noe, Table of n, a(n) for n=1..10000

FORMULA

a(n) = sum(m=1, n, A004648(m))

EXAMPLE

A004648 begins: 0, 1, 2, 3, 1, 1, 3, 3, 5, 9, 9,... so the partial sums are 0, 1, 3, 6, 7, 8, 11, 14, 19, 28, 37,...

PROGRAM

(PARI) s=vector(100):s[1]=prime(1)%1:for(n=2, 100, s[n]=s[n-1]+prime(n)%n)

CROSSREFS

Cf. A004648.

Adjacent sequences: A099847 A099848 A099849 this_sequence A099851 A099852 A099853

Sequence in context: A050244 A047283 A047557 this_sequence A139451 A081291 A034091

KEYWORD

easy,nonn

AUTHOR

Mark Hudson (mrmarkhudson(AT)hotmail.com), Oct 27 2004

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 October 7 08:31 EDT 2008. Contains 144667 sequences.


AT&T Labs Research