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

%I #29 Sep 08 2022 08:46:22

%S 2,4,6,8,14,22,26,32,36,54,82,96,98,108,116,120,124,132,144,152,162,

%T 164,166,182,226,240,244,246,252,254,264,266,274,276,312,314,322,328,

%U 330,352,364,368,372,382,406,410,420,422,428,430,432,438,456

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

%C The numbers in the sequence are all even numbers.

%C For k = 11*m - 4, (k^4 + k^3 + k^2 + 1)/11 is an integer, so there is no number of the form k = 11*m - 4 in the sequence.

%H Daniel Starodubtsev, <a href="/A317979/b317979.txt">Table of n, a(n) for n = 1..10000</a>

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

%t Select[Range[0, 1000], PrimeQ[#^4 + #^3 + #^2 + 1] &]

%o (PARI) for(n=1, 1000, if(ispseudoprime(n^4 + n^3 + n^2 + 1), print1(n, ", ")))

%o (Magma) [n: n in [0..700] |IsPrime(n^4 + n^3 + n^2 + 1)]; // _Vincenzo Librandi_, Sep 08 2018

%Y Cf. A005574, A119863.

%K nonn

%O 1,1

%A _Jinyuan Wang_, Aug 12 2018

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 18:17 EDT 2024. Contains 371962 sequences. (Running on oeis4.)