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 A379731 #9 Jan 07 2025 08:37:16 %S A379731 0,0,1,1,1,2,1,1,1,2,2,3,2,2,2,3,3,4,4,4,3,3,3,2,1,2,2,2,3,2,2,2,1,1, %T A379731 2,2,3,3,3,4,4,5,5,4,5,5,5,5,5,6,5,5,4,4,3,3,4,4,5,4,4,5,5,5,4,5,5,4, %U A379731 4,5,4,4,4,5,5,5,6,7,6,5,5,6,6,5,5,5,4 %N A379731 List of y coordinates of prime numbers in the Cartesian grid defined in A379643. %C A379731 The corresponding x coordinates are given in A379643. Positions of the first 1 miilion primes are illustrated in Links in A379643. %F A379731 a(n) = pi_{8,5}(p_n) - pi_{8,1}(p_n), where pi_{m,b}(x) is the number of primes <= x which are congruent to b (mod m) and p_n the n-th prime. %o A379731 (Python) %o A379731 from sympy import nextprime; R = [0, 0]; y, p = 0, 3 %o A379731 for _ in range(85): %o A379731 p = nextprime(p); d = (p%8 - 3)//2 %o A379731 if d in {-1, 1}: y += d %o A379731 R.append(y) %o A379731 print(*R, sep = ', ') %Y A379731 Cf. A297448, A345293, A379643. %K A379731 sign %O A379731 1,6 %A A379731 _Ya-Ping Lu_, Dec 31 2024