login

Revision History for A320688

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
Sum of the square excess A056892 of the primes between two squares.
(history; published version)
#7 by Susanna Cuyler at Fri Oct 19 17:01:16 EDT 2018
STATUS

proposed

approved

#6 by M. F. Hasler at Fri Oct 19 13:07:06 EDT 2018
STATUS

editing

proposed

#5 by M. F. Hasler at Fri Oct 19 13:05:57 EDT 2018
FORMULA

a(n) = A056892A108314(n) - A014085(n)*A000290(n), where A000290(n) = n^2.

CROSSREFS
#4 by M. F. Hasler at Fri Oct 19 12:11:27 EDT 2018
NAME

Sum of differences the square excess A056892 of the primes between two squares and the smaller square.

COMMENTS

Consider the primes p1,...,pK between two squares n^2 and (n+1)^2, and take the sum of the differences: (p1 - n^2) + ... + (pK - n^2). Obviously this equals (sum of these primes) - (number of these primes) * n^2.

#3 by M. F. Hasler at Fri Oct 19 12:08:55 EDT 2018
NAME

Sum of differences of the larger square and primes between two squares and the smaller square.

FORMULA

a(n) = A056892(n) - A014085(n)*A000290(n), where A000290(n) = n^2.

CROSSREFS

Row sums of A056892, read as a table.

Equals A056892 - A014085 * A000290.

#2 by M. F. Hasler at Fri Oct 19 11:27:05 EDT 2018
NAME

allocated for M. F. Hasler

Sum of differences of the larger square and primes between two squares.

DATA

3, 4, 6, 11, 10, 24, 26, 34, 26, 33, 50, 67, 72, 46, 70, 109, 96, 132, 122, 153, 132, 145, 174, 229, 208, 175, 194, 287, 232, 244, 338, 267, 276, 345, 374, 239, 392, 396, 424, 390, 484, 373, 514, 563, 618, 424, 654, 821, 442, 557, 890, 814, 668, 741, 580, 642, 990, 811, 982, 968, 772

OFFSET

1,1

COMMENTS

Consider the primes p1,...,pK between two squares n^2 and (n+1)^2, and take the sum of the differences: (p1 - n^2) + ... + (pK - n^2).

PROG

(PARI) a(n, s=0)={forprime(p=n^2, (n+1)^2, s+=p-n^2); s}

CROSSREFS
KEYWORD

allocated

nonn,changed

AUTHOR

M. F. Hasler, Oct 19 2018

STATUS

approved

editing

#1 by M. F. Hasler at Fri Oct 19 11:27:05 EDT 2018
NAME

allocated for M. F. Hasler

KEYWORD

allocated

STATUS

approved