The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A005574 Numbers k such that k^2 + 1 is prime.
(Formerly M1010)
175

%I M1010 #131 Feb 09 2024 01:40:15

%S 1,2,4,6,10,14,16,20,24,26,36,40,54,56,66,74,84,90,94,110,116,120,124,

%T 126,130,134,146,150,156,160,170,176,180,184,204,206,210,224,230,236,

%U 240,250,256,260,264,270,280,284,300,306,314,326,340,350,384,386,396

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

%C Hardy and Littlewood conjectured that the asymptotic number of elements in this sequence not exceeding n is approximately c*sqrt(n)/log(n) for some constant c. - _Stefan Steinerberger_, Apr 06 2006

%C Also, nonnegative integers such that a(n)+i is a Gaussian prime. - _Maciej Ireneusz Wilczynski_, May 30 2011

%C Apparently Goldbach conjectured that any a > 1 from this sequence can be written as a=b+c where b and c are in this sequence (Lemmermeyer link below). - _Jeppe Stig Nielsen_, Oct 14 2015

%C No term > 2 can be both in this sequence and in A001105 because of the Aurifeuillean factorization (2*k^2)^2 + 1 = (2*k^2 - 2*k + 1) * (2*k^2 + 2*k + 1). - _Jeppe Stig Nielsen_, Aug 04 2019

%D Harvey Dubner, "Generalized Fermat primes", J. Recreational Math., 18 (1985): 279-280.

%D R. K. Guy, "Unsolved Problems in Number Theory", 3rd edition, A2.

%D G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, 5th ed., Oxford Univ. Press, 1979, p. 15, Thm. 17.

%D N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

%H T. D. Noe, <a href="/A005574/b005574.txt">Table of n, a(n) for n = 1..10000</a>

%H H. Dubner, <a href="/A006093/a006093_1.pdf">Generalized Fermat primes</a>, J. Recreational Math. 18.4 (1985-1986), 279. (Annotated scanned copy)

%H F. Ellermann, <a href="/A002496/a002496.txt">Primes of the form (m^2)+1 up to 10^6</a>.

%H L. Euler, <a href="http://eulerarchive.maa.org/correspondence/letters/OO0877.pdf">Lettre CXLIX</a> (to Goldbach), 1752.

%H L. Euler, <a href="https://scholarlycommons.pacific.edu/euler-works/283/">De numeris primis valde magnis</a>, Novi Commentarii academiae scientiarum Petropolitanae 9 (1764), pp. 99-153. See pp. 123-125.

%H R. K. Guy, <a href="/A000081/a000081.pdf">Letter to N. J. A. Sloane, 1988-04-12</a> (annotated scanned copy).

%H F. Lemmermeyer, <a href="http://mathoverflow.net/questions/14690/">Primes of the form a^2+1</a>, Math Overflow question (2010).

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/LandausProblems.html">Landau's Problems</a>.

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/Power.html">Power</a>.

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/Near-SquarePrime.html">Near-Square Prime</a>.

%H Marek Wolf, <a href="http://arXiv.org/abs/0803.1456">Search for primes of the form m^2+1</a>, arXiv:0803.1456 [math.NT], 2008-2010.

%F a(n) = A090693(n) - 1.

%F a(n) = 2*A001912(n-1) for n > 1. - _Jeppe Stig Nielsen_, Aug 04 2019

%t Select[Range[350], PrimeQ[ #^2 + 1] &] (* _Stefan Steinerberger_, Apr 06 2006 *)

%t Join[{1},2Flatten[Position[PrimeQ[Table[x^2+1,{x,2,1000,2}]],True]]] (* _Fred Patrick Doty_, Aug 18 2017 *)

%o (PARI) isA005574(n) = isprime(n^2+1) \\ _Michael B. Porter_, Mar 20 2010

%o (PARI) for(n=1, 1e3, if(isprime(n^2 + 1), print1(n, ", "))) \\ _Altug Alkan_, Oct 14 2015

%o (Magma) [n: n in [0..400] | IsPrime(n^2+1)]; // _Vincenzo Librandi_, Nov 18 2010

%o (Haskell)

%o a005574 n = a005574_list !! (n-1)

%o a005574_list = filter ((== 1) . a010051' . (+ 1) . (^ 2)) [0..]

%o -- _Reinhard Zumkeller_, Jul 03 2015

%Y Cf. A002522, A001912, A002496, A062325, A090693, A000068, A006314, A006313, A006315, A006316, A056994, A056995, A057465, A057002, A088361, A088362, A226528, A226529, A226530, A251597, A253854, A244150, A243959, A321323.

%Y Other sequences of the type "Numbers k such that k^2 + i is prime": this sequence (i=1), A067201 (i=2), A049422 (i=3), A007591 (i=4), A078402 (i=5), A114269 (i=6), A114270 (i=7), A114271 (i=8), A114272 (i=9), A114273 (i=10), A114274 (i=11), A114275 (i=12).

%Y Cf. A010051, A259645, A295405 (characteristic function).

%K nonn,easy,nice

%O 1,2

%A _N. J. A. Sloane_

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 May 14 10:41 EDT 2024. Contains 372532 sequences. (Running on oeis4.)