This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A239787 Numbers n such that 3n^3 - 1 is prime. 4
 1, 2, 4, 6, 10, 14, 26, 34, 36, 40, 44, 54, 64, 66, 70, 84, 86, 92, 100, 102, 116, 122, 134, 146, 150, 152, 156, 160, 172, 174, 176, 180, 190, 194, 200, 216, 252, 254, 262, 274, 306, 320, 322, 334, 336, 350, 352, 374, 384, 402, 414, 440, 442, 444, 460 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS All the numbers in this sequence, excluding a(1), are even. LINKS Vincenzo Librandi, Table of n, a(n) for n = 1..1000 EXAMPLE 3*2^3 - 1 = 23 is prime. Thus, 2 is a member of this sequence. MATHEMATICA Select[Range[1000], PrimeQ[3 #^3 - 1] &] (* Vincenzo Librandi, Mar 29 2014 *) PROG (Python) import sympy from sympy import isprime {print(n) for n in range(10**3) if isprime(3*(n**3)-1)} (PARI) s=[]; for(n=1, 1000, if(isprime(3*n^3-1), s=concat(s, n))); s \\ Colin Barker, Mar 27 2014 (MAGMA) [n: n in [0..1000] | IsPrime(3*n^3-1)]; // Vincenzo Librandi, Mar 29 2014 CROSSREFS Cf. A116954. Sequence in context: A027383 A280611 A138016 * A113118 A287636 A032417 Adjacent sequences:  A239784 A239785 A239786 * A239788 A239789 A239790 KEYWORD nonn,easy AUTHOR Derek Orr, Mar 26 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified October 15 00:14 EDT 2019. Contains 328025 sequences. (Running on oeis4.)