A330556 a(n) = (number of primes p <= 2*n+1 with Delta(p) == 2 mod 4) - (number of primes p <= 2*n+1 with Delta(p) == 0 mod 4), where Delta(p) = nextprime(p) - p.
0, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 2, 2, 3, 4, 4, 4, 3, 3, 4, 3, 3, 4, 4, 4, 5, 5, 5, 6, 7, 7, 7, 6, 6, 7, 8, 8, 8, 7, 7, 8, 8, 8, 7, 7, 7, 7, 6, 6, 7, 6, 6, 7, 6, 6, 7, 7, 7, 7, 7, 7, 7, 6, 6, 7, 7, 7, 8, 9, 9, 9, 9, 9, 10, 11, 11, 11, 12, 12, 12, 11, 11, 12, 12, 12, 13, 13, 13
Offset: 0
Keywords
Examples
n=5, 2*n+1=11: there are three primes <= 11 with Delta(p) == 2 mod 4, namely 3,5,11; and one with Delta(p) == 0 mod 4, namely 7; so a(5) = 3-1 = 2.
Links
- N. J. A. Sloane, Table of n, a(n) for n = 0..99999
- StackExchange, Asymptotic Distribution of Prime Gaps in Residue Classes.
Comments