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.

A122566 a(n) = prime(n^2 + n + 1).

Original entry on oeis.org

2, 5, 17, 41, 73, 127, 191, 269, 367, 467, 607, 751, 919, 1093, 1297, 1523, 1753, 2027, 2309, 2621, 2909, 3299, 3623, 4007, 4421, 4861, 5303, 5749, 6257, 6763, 7307, 7867, 8447, 9041, 9643, 10273, 10979, 11719, 12421, 13121, 13883, 14723, 15467, 16319
Offset: 0

Views

Author

Miklos Kristof, Sep 21 2006

Keywords

Comments

Union of A054553 and A054568. Primes appearing on the northeast and southwest spokes of the (clockwise) prime number spiral. - Vincenzo Librandi, Nov 06 2024

Examples

			a(2) = 17 = P(2^2+2+1) = P(7).
		

Crossrefs

Even bisection gives A054568; odd bisection gives A054553(n>0).
Cf. A000040.

Programs

  • Magma
    [NthPrime(n^2+n+1): n in [0..60]]; // G. C. Greubel, Oct 29 2024
    
  • Maple
    seq(ithprime(k^2+k+1),k=0..60);
  • Mathematica
    Table[Prime[k^2+k+1],{k,0,50}] (* Harvey P. Dale, Apr 01 2013 *)
  • SageMath
    [nth_prime(n^2+n+1) for n in range(61)] # G. C. Greubel, Oct 29 2024

Formula

a(n) = prime(n^2+n+1). - Wesley Ivan Hurt, Nov 28 2021