login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A027863 Numbers n such that n^2 + (n+1)^2 + (n+2)^2 is prime. 7
0, 2, 6, 12, 14, 24, 34, 52, 56, 62, 66, 76, 86, 94, 96, 122, 124, 132, 152, 154, 164, 182, 184, 194, 206, 216, 226, 244, 252, 254, 262, 272, 276, 294, 322, 336, 342, 362, 364, 376, 384, 404, 406, 416, 436, 446, 464, 472, 486, 502, 546, 556, 584, 604, 612, 616 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

No positive terms == {0,8} mod 10. Numbers n such that both n and n+2 are terms: 12, 94, 122, 152, 182, 252, 362, 204, ... Numbers n such that n, n+2 and n+4 are terms: 1942, 7222, 7402, 15692, 23502, 30182, ... - Zak Seidov, Aug 22 2014

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 1..1000

MAPLE

select(t -> isprime(t^2+(t+1)^2+(t+2)^2), [$0..1000]); # Robert Israel, Aug 22 2014

MATHEMATICA

Select[Range[0, 700], PrimeQ[Total[(#+{0, 1, 2})^2]]&] (* Harvey P. Dale, Apr 28 2012 *)

PROG

(MAGMA) [n: n in [0..1000] |IsPrime(n^2+(n+1)^2+(n+2)^2)]; // Vincenzo Librandi, Nov 18 2010

(PARI)

for(n=1, 10^3, s=sum(i=0, 2, (n+i)^2); if(isprime(s), print1(n, ", "))) \\ Derek Orr, Aug 22 2014

CROSSREFS

Cf. A027864 (associated primes).

Sequence in context: A320149 A140760 A161922 * A261978 A236264 A152301

Adjacent sequences:  A027860 A027861 A027862 * A027864 A027865 A027866

KEYWORD

nonn,easy

AUTHOR

Patrick De Geest

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 23 03:10 EDT 2019. Contains 323507 sequences. (Running on oeis4.)