[go: up one dir, main page]

login
Revision History for A161782 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
a(n) = sum of all numbers from and including (prime(n+1)-prime(n)) to and including (prime(n+2)-prime(n).)
(history; published version)
#10 by Joerg Arndt at Mon Oct 07 01:06:01 EDT 2024
STATUS

proposed

approved

#9 by Jason Yuen at Mon Oct 07 01:03:14 EDT 2024
STATUS

editing

proposed

#8 by Jason Yuen at Mon Oct 07 01:03:06 EDT 2024
PROG

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

STATUS

approved

editing

#7 by Harvey P. Dale at Mon Oct 18 16:05:51 EDT 2021
STATUS

editing

approved

#6 by Harvey P. Dale at Mon Oct 18 16:05:48 EDT 2021
LINKS

Harvey P. Dale, <a href="/A161782/b161782.txt">Table of n, a(n) for n = 1..1000</a>

STATUS

approved

editing

#5 by Harvey P. Dale at Mon Oct 18 16:04:43 EDT 2021
STATUS

editing

approved

#4 by Harvey P. Dale at Mon Oct 18 16:04:37 EDT 2021
NAME

a(n) = sum of all numbers from and including (prime(n+1)-prime(n) ) to and including (prime(n+2)-prime(n).)

MATHEMATICA

Total[Range[#[[2]]-#[[1]], #[[3]]-#[[1]]]]&/@Partition[Prime[Range[70]], 3, 1] (* Harvey P. Dale, Oct 18 2021 *)

EXTENSIONS

Definition clarified by Harvey P. Dale, Oct 18 2021

STATUS

approved

editing

#3 by Russ Cox at Fri Mar 30 18:52:33 EDT 2012
AUTHOR

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

Discussion
Fri Mar 30
18:52
OEIS Server: https://oeis.org/edit/global/257
#2 by Russ Cox at Fri Mar 30 17:28:02 EDT 2012
EXTENSIONS

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

Discussion
Fri Mar 30
17:28
OEIS Server: https://oeis.org/edit/global/145
#1 by N. J. A. Sloane at Tue Jun 01 03:00:00 EDT 2010
NAME

a(n) = sum of all numbers from prime(n+1)-prime(n) to prime(n+2)-prime(n).

DATA

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

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.

PROG

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).

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

STATUS

approved