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!)
A182424 Numbers n such that n^4 + n^3 + n^2 + n - 1 is prime. 2

%I #17 Sep 08 2022 08:45:55

%S 1,2,6,8,11,12,18,30,32,39,41,44,50,63,65,69,72,74,75,78,86,93,104,

%T 107,110,123,126,140,149,153,158,165,177,179,182,186,188,189,215,218,

%U 222,225,236,237,239,254,264,267,272,278,296,299,302,305,314,320,327,330

%N Numbers n such that n^4 + n^3 + n^2 + n - 1 is prime.

%C The sequence contains 60491 terms <= 10^6.

%C The corresponding sequence of primes begins 3, 29, 1553, 4679, 16103, 22619, 111149, 837929, 1082399, 2374319, 2896403, 3835259, 6377549, 16007039, ...

%H Vincenzo Librandi, <a href="/A182424/b182424.txt">Table of n, a(n) for n = 1..7000</a>

%e 18^4 + 18^3 + 18^2 + 18 - 1 = 111149 is prime, so 18 is in the sequence.

%t Select[Range[350],PrimeQ[Total[#^Range[4]]-1]&] (* _Harvey P. Dale_, Aug 09 2014 *)

%o (PARI)

%o for (n=1,10^4, p=n^4 + n^3 + n^2 + n - 1; if (isprime(p), print1(n,", ")));

%o /* _Joerg Arndt_, Apr 28 2012 */

%o (Magma) [n: n in [0..400] | IsPrime(s) where s is -1+&+[n^i: i in [1..4 by 1]]]; // _Vincenzo Librandi_, Aug 10 2014

%Y Cf. A049409, A182385.

%K nonn

%O 1,2

%A _Alex Ratushnyak_, Apr 28 2012

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 24 13:41 EDT 2024. Contains 371957 sequences. (Running on oeis4.)