login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A227000 Numbers n such that (n+1)^2-n^2 and (n+1)^3-n^3 are both prime. 0
1, 2, 3, 6, 9, 11, 14, 23, 30, 41, 48, 63, 74, 81, 86, 90, 95, 105, 119, 125, 128, 140, 153, 156, 158, 165, 179, 186, 191, 209, 216, 219, 224, 233, 245, 251, 296, 303, 308, 315, 321, 350, 354, 359, 375, 398, 405, 419, 429, 441, 443, 468, 485, 506, 524, 531, 543, 546, 576 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
n=23; n+1=24; 24^2-23^2=47 and 24^3-23^3=1657.
MATHEMATICA
Select[Range[576], PrimeQ[(# + 1)^2 - #^2] && PrimeQ[(# + 1)^3 - #^3] &] (* T. D. Noe, Jun 26 2013 *)
PROG
(PARI) forprime(p=3, 1e3, n=p\2; if(isprime(3*n*(n+1)+1), print1(n", "))) \\ Charles R Greathouse IV, Jun 26 2013
CROSSREFS
Sequence in context: A291669 A097384 A067886 * A338546 A358130 A176189
KEYWORD
nonn
AUTHOR
César Aguilera, Jun 26 2013
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 11 17:45 EDT 2024. Contains 372410 sequences. (Running on oeis4.)