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.
%I A330487 #11 Dec 16 2019 20:11:15 %S A330487 0,0,0,0,2,2,2,2,2,2,2,2,8,8,8,8,12,12,12,12,12,12,12,12,12,12,12,12, %T A330487 22,22,22,22,22,22,22,22,28,28,28,28,48,48,48,48,48,48,48,48,48,48,48, %U A330487 48,62,62,62,62,62,62,62,62,92,92,92,92,92,92,92,92,92,92,92,92,116,116,116,116,116,116,116,116 %N A330487 Sum of those x(p)*y(p) with p <= n, where p is a prime congruent to 1 modulo 4, and p = x(p)^2 + y(p)^2 with 1 <= x(p) <= y(p). %C A330487 Conjecture: Let b(n) be the sum of all primes p <= n with p == 1 (mod 4). Then a(n)/b(n) = 1/Pi + O(1/sqrt(n)). %C A330487 A classical theorem of Euler (conjectured by Fermat) states that any prime p == 1 (mod 4) can be written uniquely as x^2 + y^2 with 1 <= x <= y. %C A330487 For any prime p == 1 (mod 4), we obviously have a(p) > a(p-1). Also, b(n) >= 2*a(n) for all n > 0 since x^2 + y^2 >= 2*x*y. %C A330487 Via computation we find that a(10^10) = 353452066546904620, b(10^10) = 1110397615780409147, and 3.14157907 < b(10^10)/a(10^10) < 3.14157908. %H A330487 Zhi-Wei Sun, <a href="/A330487/b330487.txt">Table of n, a(n) for n = 1..10000</a> %H A330487 Zhi-Wei Sun, <a href="http://mathoverflow.net/questions/348448">A mysterious connection between prime and Pi</a>, Question 348448 at MathOverFlow, December 15, 2019. %H A330487 Zhi-Wei Sun, <a href="http://arxiv.org/abs/1911.05456">New series for powers of Pi and related congruences</a>, arXiv:1911.05456 [math.NT], 2019. %e A330487 a(5) = 2 since 5 is the first prime congruent to 1 mod 4 and 5 = 1^2 + 2^2 with 1*2 = 2. %e A330487 a(13) = 8 since 13 = 2^2 + 3^2 is the second prime congruent to 1 mod 4 and 1*2 + 2*3 = 8. %t A330487 tab={};Do[m=0;Do[If[PrimeQ[(2x+1)^2+(2y)^2],m=m+(2x+1)*(2y)],{x,0,(Sqrt[n]-1)/2},{y,1,Sqrt[n-(2x+1)^2]/2}];tab=Append[tab,m],{n,1,80}];Print[tab] %Y A330487 Cf. A000796, A002144, A002972, A002973. %K A330487 nonn %O A330487 1,5 %A A330487 _Zhi-Wei Sun_, Dec 15 2019