|
|
A344987
|
|
Number of Goldbach partitions of 2n into 2 primes where the smaller prime has an odd index and the larger prime has an even index.
|
|
1
|
|
|
0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 1, 1, 1, 1, 2, 1, 0, 1, 4, 0, 1, 1, 1, 3, 1, 0, 2, 3, 0, 2, 1, 1, 4, 0, 0, 4, 3, 0, 3, 1, 0, 4, 1, 0, 3, 3, 0, 2, 2, 1, 4, 1, 1, 3, 3, 0, 2, 4, 0, 1, 3, 1, 3, 4, 0, 2, 4, 1, 2, 4
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,12
|
|
LINKS
|
|
|
FORMULA
|
a(n) = Sum_{k=1..n} (pi(k) mod 2) * ((pi(2*n-k)+1) mod 2) * c(k) * c(2*n-k), where c(n) is the prime characteristic.
|
|
EXAMPLE
|
a(12) = 2; 2*12 = 24 has 2 Goldbach partitions where the smaller prime has an odd index and the larger prime has an even index: (19,5) and (13,11). For example, 19 is the 8th prime and 5 is the 3rd, while 13 is the 6th prime and 11 is the 5th.
|
|
MATHEMATICA
|
Table[Sum[Mod[PrimePi[k], 2] Mod[PrimePi[2 n - k] + 1, 2] (PrimePi[k] - PrimePi[k - 1]) (PrimePi[2 n - k] - PrimePi[2 n - k - 1]), {k, n}], {n, 100}]
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|