cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A068486 Smallest prime equal to n^2 + m^2 with n >= m.

This page as a plain text file.
%I A068486 #47 Jan 31 2017 12:03:14
%S A068486 2,5,13,17,29,37,53,73,97,101,137,193,173,197,229,257,293,349,397,401,
%T A068486 457,509,593,577,641,677,733,809,857,1021,977,1033,1093,1181,1229,
%U A068486 1297,1373,1453,1621,1601,1697,1789,1913,2017,2029,2141,2213,2473,2417,2549
%N A068486 Smallest prime equal to n^2 + m^2 with n >= m.
%C A068486 With i being the imaginary unit, the numbers m + ni and m - ni are Gaussian primes. - _Alonso del Arte_, Feb 07 2011
%C A068486 All terms after the first are congruent to 1 (mod 4). - _Carmine Suriano_, Mar 30 2011
%C A068486 Any value can occur at most once (a consequence of Alonso del Arte's comment plus unique factorization in the Gaussian integers). - _Robert Israel_, Aug 19 2014
%C A068486 Smallest prime of the form (x^2 + y^2)/2 such that |x| + |y| = 2n. Note: |x| = n - m and |y| = n + m. - _Thomas Ordowski_ and _Altug Alkan_, Jan 13 2017
%H A068486 T. D. Noe, <a href="/A068486/b068486.txt">Table of n, a(n) for n = 1..1000</a>
%F A068486 a(n) = n^2 + A069003(n)^2. - _Thomas Ordowski_, Aug 19 2014
%p A068486 for n from 1 to 100 do m := 1:while(not isprime(n^2+m^2)) do m := m+1; end do:a[n] := n^2+m^2:end do:q := seq(a[i],i=1..100);
%t A068486 Table[k = 1; While[p = n^2 + k^2; Not[PrimeQ[p]], k++]; p, {n, 50}] (* _Alonso del Arte_, Feb 07 2011 *)
%o A068486 (PARI) a(n) = for (m=1, n, if (isprime(p=n^2+m^2), return (p))); \\ _Michel Marcus_, Jan 22 2017
%Y A068486 Cf. A068487. The values of m are given by A069003.
%K A068486 nonn
%O A068486 1,1
%A A068486 _Lekraj Beedassy_, Mar 11 2002
%E A068486 More terms from _Sascha Kurz_, Mar 17 2002