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.

A338299 Primes of the form (p^2+p+1)/3 where p is prime.

Original entry on oeis.org

19, 61, 127, 331, 631, 1801, 3169, 3571, 5419, 8269, 13267, 16651, 19441, 24571, 55897, 59221, 145861, 151201, 176419, 246247, 260191, 292969, 347821, 360187, 368551, 377011, 398581, 698419, 733591, 863497, 915769, 929077, 990151, 1024921, 1155061, 1177507, 1324681, 1372957, 1618471, 1980469
Offset: 1

Views

Author

J. M. Bergot and Robert Israel, Oct 21 2020

Keywords

Comments

All terms == 1 (mod 6).

Examples

			a(3) = 127 is prime and 127 = (19^2+19+1)/3 where 19 is prime.
		

Crossrefs

Cf. A240971.

Programs

  • Maple
    A240971:= select(t -> isprime(t) and isprime((t^2+t+1)/3), [seq(i,i=1..1000,6)]):
    map(t -> (t^2+t+1)/3, A240971);

Formula

a(n) = (A240971(n)^2 + A240971(n)+1)/3.
A240971(n) = (sqrt(12*a(n)-3)-1)/2.