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!)
A238364 Numbers n such that 9*n^2+3*n-1 and 9*n^2+3*n+1 are twin primes. 1
1, 2, 5, 7, 8, 18, 22, 46, 47, 51, 77, 82, 96, 103, 117, 126, 135, 151, 152, 165, 208, 240, 266, 275, 305, 327, 366, 383, 400, 420, 436, 455, 460, 498, 516, 522, 530, 553, 582, 596, 602, 616, 712, 735, 791, 803, 817, 852, 876, 882, 883, 910, 912, 966, 975 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
1*1*9+1*3-1=11; 11 and 13 are twin primes so a(1)=1.
2*2*9+2*3-1=41; 41 and 43 are twin primes so a(2)=2.
MATHEMATICA
Select[Range[1000], AllTrue[9#^2+3#+{1, -1}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Feb 10 2019 *)
PROG
(PARI) s=[]; for(n=1, 1000, if(isprime(9*n^2+3*n-1) && isprime(9*n^2+3*n+1), s=concat(s, n))); s \\ Colin Barker, Feb 26 2014
CROSSREFS
Cf. A001097.
Sequence in context: A363626 A340326 A188341 * A342730 A227445 A216968
KEYWORD
nonn,easy
AUTHOR
Pierre CAMI, Feb 25 2014
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 April 19 02:45 EDT 2024. Contains 371782 sequences. (Running on oeis4.)