cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A140511 a(n) = (prime(n)^2 + prime(n+1))/2.

Original entry on oeis.org

7, 16, 30, 67, 93, 154, 192, 279, 436, 499, 705, 862, 948, 1131, 1434, 1771, 1894, 2280, 2557, 2704, 3162, 3489, 4009, 4755, 5152, 5358, 5779, 5997, 6448, 8130, 8649, 9454, 9735, 11176, 11479, 12406, 13368, 14031, 15054, 16111, 16476, 18337, 18723, 19504
Offset: 2

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    (#[[1]]^2+#[[2]])/2&/@Partition[Prime[Range[2,50]],2,1] (* Harvey P. Dale, Oct 15 2015 *)
  • PARI
    for(n=2,50, print1(((prime(n))^2 + prime(n+1))/2, ", ")) \\ G. C. Greubel, Feb 23 2017

Formula

a(n) = (A001248(n) + A000040(n+1))/2. - Elmo R. Oliveira, Mar 24 2023

Extensions

More terms from Harvey P. Dale, Oct 15 2015