A007634 Numbers k such that k^2 + k + 41 is composite.
40, 41, 44, 49, 56, 65, 76, 81, 82, 84, 87, 89, 91, 96, 102, 104, 109, 117, 121, 122, 123, 126, 127, 130, 136, 138, 140, 143, 147, 155, 159, 161, 162, 163, 164, 170, 172, 173, 178, 184, 185, 186, 187, 190, 201, 204, 205, 207, 208, 209, 213, 215, 216, 217
Offset: 1
References
- N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..2000
Programs
-
Magma
[n: n in [0..220] | not IsPrime(n^2 + n + 41)]; // Vincenzo Librandi, Sep 28 2012
-
Maple
remove(n -> isprime(n^2+n+41), [$1..1000]); # Robert Israel, Nov 24 2017
-
Mathematica
Select[Range[220], !PrimeQ[#^2 + # + 41] &] (* Vincenzo Librandi, Sep 28 2012 *)
-
PARI
is(n)=!isprime(n^2+n+41) \\ Charles R Greathouse IV, Apr 25 2014
Formula
a(n) ~ n. - Charles R Greathouse IV, Apr 25 2014
Comments