A295424 Number of distinct twin primes which are in Goldbach partitions of 2n.
0, 0, 1, 2, 3, 2, 3, 4, 4, 4, 5, 6, 4, 3, 5, 4, 6, 7, 3, 4, 6, 5, 6, 9, 6, 4, 7, 4, 5, 8, 5, 7, 8, 3, 6, 10, 7, 7, 11, 6, 6, 10, 6, 6, 11, 6, 4, 7, 3, 7, 11, 7, 6, 10, 8, 10, 15, 8, 8, 14, 6, 6, 10, 4, 8, 12, 6, 3, 10, 9, 10, 15, 7, 7, 12, 7, 10, 14, 6, 9, 13, 5, 7
Offset: 1
Keywords
Examples
a(5) = 3 because 5 * 2 = 10 has 2 ordered Goldbach partitions: 3 + 7 and 5 + 5 and primes 3, 5, 7 are distinct twin primes in this set.
Links
- Marcin Barylski, Plot of first 20000 elements of the A295424
- Marcin Barylski, C++ program for generating A295424
- Marcin Barylski, Studies on Twin Primes in Goldbach Partitions of Even Numbers
- Tomas Oliveira e Silva, Goldbach conjecture verification
Programs
-
PARI
istwin(p) = isprime(p) && (isprime(p-2) || isprime(p+2)); a(n) = {vtp = []; forprime(p= 2, n, if (isprime(2*n-p), if (istwin(p), vtp = concat(vtp, p)); if (istwin(2*n-p), vtp = concat(vtp, 2*n-p)););); #Set(vtp);} \\ Michel Marcus, Mar 01 2018
Comments