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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A154115 Numbers n such that (n+2)^2-(n+1)^2-n is prime. 1
0, 2, 4, 8, 10, 14, 16, 20, 26, 28, 34, 38, 40, 44, 50, 56, 58, 64, 68, 70, 76, 80, 86, 94, 98, 100, 104, 106, 110, 124, 128, 134, 136, 146, 148, 154, 160, 164, 170, 176, 178, 188, 190, 194, 196, 208, 220, 224, 226, 230, 236, 238, 248, 254, 260, 266, 268, 274, 278 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

COMMENTS

4^2-3^2-2=5,...

Since (n+2)^2-(n+1)^2-n = n+3, this is just the primes minus 3 (starting with p=5, since apparently only positive integers are being included). [From Franklin T. Adams-Watters (FrankTAW(AT)Netscape.net), Jan 30 2009]

FORMULA

a(n) = A086801(n+1). [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), May 09 2010]

MAPLE

A154115 := proc(n) ithprime(n+1)-3 ; end proc: [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), May 09 2010]

MATHEMATICA

a[n_]:=(n+2)^2-(n+1)^2-n; lst={}; Do[If[PrimeQ[a[n]], AppendTo[lst, n]], {n, 6!}]; lst

PROG

(MAGMA) [n: n in [0..500] | IsPrime((n+2)^2-(n+1)^2-n)] [From Vincenzo Librandi, Nov 26 2010]

CROSSREFS

Cf. A140719, A005097, A154111, A154112, A154113

Cf. A067076 (a(n-1)/2). [From Franklin T. Adams-Watters (FrankTAW(AT)Netscape.net), Jan 30 2009]

Sequence in context: A047235 A087505 A086801 * A071703 A010069 A132895

Adjacent sequences:  A154112 A154113 A154114 * A154116 A154117 A154118

KEYWORD

nonn

AUTHOR

Vladimir Orlovsky (4vladimir(AT)gmail.com), Jan 04 2009

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 10:32 EST 2012. Contains 205904 sequences.