login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A074741 Sum of squares of gaps between consecutive primes. 3
1, 5, 9, 25, 29, 45, 49, 65, 101, 105, 141, 157, 161, 177, 213, 249, 253, 289, 305, 309, 345, 361, 397, 461, 477, 481, 497, 501, 517, 713, 729, 765, 769, 869, 873, 909, 945, 961, 997, 1033, 1037, 1137, 1141, 1157, 1161, 1305, 1449, 1465, 1469, 1485, 1521 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
REFERENCES
R. K. Guy, Unsolved Problems in Number Theory, Springer-Verlag, New York, Heidelberg, 1994, problem A8.
LINKS
D. R. Heath-Brown, Gaps between primes and the pair correlation of zeros of the zeta function, Acta Arithmetica, vol. XLI (1982), 85.
M. Wolf, Some conjectures on the gaps between consecutive primes, preprint IFTUWr 894//95, submitted to Asterisque.
FORMULA
a(n) = Sum_{k=1..n} (prime(k+1)-prime(k))^2 = Sum_{k=1..n} A001223(k)^2.
Asymptotic expressions: D. R. Heath-Brown's conjecture: Sum_{prime(n)<=N} (prime(n)-prime(n-1))^2 ~ 2*N*log(N). Marek Wolf's conjecture: Sum_{prime(n)<N} (prime(n)-prime(n-1))^2 = 2*N^2/pi(N) + error term(N), pi(N)=A000720(n).
MAPLE
with(numtheory): a := proc(n) option remember: if (n=1) then RETURN(1) else RETURN(a(n-1)+(ithprime(n+1)-ithprime(n))^2) fi: end:
MATHEMATICA
Rest[FoldList[Plus, 0, (#[[2]] - #[[1]])^2 & /@ Partition[Prime[Range[100]], 2, 1]]]
nn=60; With[{dsp=Differences[Prime[Range[nn+1]]]^2}, Table[Total[Take[ dsp, n]], {n, nn}]] (* Harvey P. Dale, Nov 30 2011 *)
Accumulate[Differences[Prime[Range[60]]]^2] (* Harvey P. Dale, May 08 2015 *)
PROG
(PARI) a(n) = sum(k=1, n, (prime(k+1) - prime(k))^2); \\ Michel Marcus, May 26 2018
CROSSREFS
Partial sums of A076821. - Michel Marcus, May 26 2018
Sequence in context: A162907 A165345 A177240 * A166701 A116520 A273561
KEYWORD
nonn,nice
AUTHOR
Antonio G. Astudillo (afg_astudillo(AT)hotmail.com), Sep 05 2002
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 14:32 EDT 2024. Contains 371960 sequences. (Running on oeis4.)