Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A161782
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A161782 a(n) = sum of all numbers from prime(n+1)-prime(n) to prime(n+2)-prime(n). +0
1
6, 9, 20, 15, 20, 15, 20, 49, 21, 35, 40, 15, 20, 49, 63, 21, 35, 40, 15, 35, 40, 49, 90, 50, 15, 20, 15, 20, 165, 80, 49, 21, 77, 33, 35, 63, 40, 49, 63, 21, 77, 33, 20, 15, 104, 234, 70, 15, 20, 49, 21, 77, 91, 63, 63, 21, 35, 40, 15, 77, 255, 80, 15, 20, 165, 119, 121, 33 (list; graph; listen)
OFFSET

1,1

FORMULA

a(n) = Sum_{x=prime(n+1)-prime(n)..prime(n+2)-prime(n)} x = Sum_{x=A001223(n)..A031131(n)} x.

EXAMPLE

n = 1: prime(1) = 2, prime(2) = 3, prime(3) = 5. Sum of all numbers from prime(2)-prime(1) = 1 to prime(3)-prime(1) = 3 is 1+2+3, hence a(1) = 6.

n = 11: prime(11) = 31, prime(12) = 37, prime(13) = 41. Sum of all numbers from prime(12)-prime(11) = 6 to prime(13)-prime(11) = 10 is 6+7+8+9+10, hence a(11) = 40.

PROGRAM

MAGMA) [ &+[(NthPrime(n+1)-NthPrime(n))..(NthPrime(n+2)-NthPrime(n))]: n in [1..68] ];

CROSSREFS

Cf. A001223 (differences between consecutive primes), A031131 (difference between n-th prime and (n+2)nd prime).

Sequence in context: A118277 A103186 A011988 this_sequence A154783 A096546 A165717

Adjacent sequences: A161779 A161780 A161781 this_sequence A161783 A161784 A161785

KEYWORD

nonn

AUTHOR

Juri-Stepan Gerasimov (2stepan(AT)rambler.ru), Jun 20 2009

EXTENSIONS

Edited and extended beyond a(33) by Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Jun 23 2009

page 1

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