Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A033955
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A033955 a(n) = sum of the remainders when the n-th prime is divided by primes up to the (n-1)-th prime. +0
7
0, 1, 3, 4, 8, 13, 18, 27, 29, 46, 56, 70, 74, 88, 98, 134, 147, 171, 200, 217, 252, 274, 309, 323, 348, 418, 448, 471, 522, 571, 629, 685, 739, 777, 793, 853, 954, 997, 1002, 1120, 1148, 1220, 1338, 1419, 1466, 1540, 1615, 1573, 1633, 1707, 1825, 1892, 1986 (list; graph; listen)
OFFSET

1,3

FORMULA

a(n) = Sum{_1<=z<n} (prime(n) mod prime(z)).

EXAMPLE

a(5) = 8. The remainders when the fifth prime 11 is divided by 2, 3, 5, 7 are 1, 2, 1, 4, respectively and their sum = 8.

MATHEMATICA

a[n_] := Sum[Mod[Prime[n], Prime[i]], {i, 1, n-1}]

PROGRAM

for(y=2; y<infini; y++){ x=1; while(x<y) { a(n)=prime(y)%prime(x); x++}}

CROSSREFS

Cf. A067435, A067436, A024934.

Sequence in context: A052952 A074331 A153339 this_sequence A049720 A078172 A022308

Adjacent sequences: A033952 A033953 A033954 this_sequence A033956 A033957 A033958

KEYWORD

nonn,easy

AUTHOR

Armand Turpel (armandt(AT)unforgettable.com)

EXTENSIONS

Edited by Dean Hickerson (dean.hickerson(AT)yahoo.com), Mar 02 2002

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 November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research