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.

A141129 a(n) = prime(n^2) - n^2.

Original entry on oeis.org

1, 3, 14, 37, 72, 115, 178, 247, 338, 441, 540, 683, 840, 997, 1202, 1363, 1590, 1819, 2076, 2341, 2642, 2977, 3274, 3635, 4012, 4375, 4790, 5223, 5640, 6097, 6612, 7137, 7648, 8185, 8706, 9331, 9952, 10605, 11222, 11899, 12646, 13337, 14028, 14811
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Jul 31 2008

Keywords

Examples

			a(1) = prime(1^2) - 1^2 = prime(1) - 1 = 2 - 1 = 1;
a(2) = prime(2^2) - 2^2 = prime(4) - 4 = 7 - 4 = 3.
		

Crossrefs

Programs

  • Mathematica
    Table[n2=n^2;Prime[n2]-n2,{n,50}] (* Harvey P. Dale, Apr 20 2012 *)
  • PARI
    a(n) = prime(n^2) - n^2; \\ Michel Marcus, Feb 18 2021

Formula

a(n) = A014689(n^2) = A014689(A000290(n)). - Michel Marcus, Feb 02 2015

Extensions

Corrected and extended by D. S. McNeil, Mar 21 2009