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.

A111040 Numbers n such that 2*n^2 + 9 is prime.

Original entry on oeis.org

1, 2, 4, 5, 7, 8, 11, 13, 14, 16, 17, 20, 22, 25, 26, 31, 35, 38, 40, 41, 44, 46, 50, 52, 58, 59, 61, 68, 71, 73, 77, 79, 80, 82, 88, 92, 94, 95, 101, 103, 106, 107, 112, 115, 116, 125, 130, 137, 139, 140, 146, 154, 157, 158, 163, 167, 169, 170, 176, 178, 179, 193, 205
Offset: 1

Views

Author

Parthasarathy Nambi, Oct 05 2005

Keywords

Examples

			If n=26 then (2*n^2) + 9 = 1361 (prime).
		

Crossrefs

Cf. A339048.

Programs

  • Maple
    a:=proc(n) if isprime(2*n^2+9)=true then n else fi end: seq(a(n),n=0..280); # Emeric Deutsch, Oct 06 2005
  • Mathematica
    Select[Range[205], PrimeQ[2#^2+9] &] (* Stefano Spezia, Aug 07 2024 *)
  • PARI
    is(n)=isprime(2*n^2+9) \\ Charles R Greathouse IV, Jun 13 2017

Extensions

More terms from Emeric Deutsch, Oct 06 2005