login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A307990
Number of partitions of n into 2 distinct nonadjacent prime parts.
0
0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 2, 0, 1, 1, 2, 1, 2, 0, 2, 1, 2, 0, 2, 0, 2, 1, 2, 1, 3, 0, 3, 0, 1, 1, 3, 0, 3, 1, 3, 1, 3, 0, 5, 1, 4, 0, 2, 0, 5, 1, 3, 0, 3, 0, 5, 1, 2, 1, 5, 0, 6, 0, 1, 1, 5, 0, 6, 1, 4, 1, 5, 0, 6, 0, 4, 1, 4, 0, 7, 1, 4
OFFSET
1,16
FORMULA
a(n) = Sum_{i=1..floor((n-1)/2)} (1-floor((pi(i)+1)/pi(n-i))) * A010051(i) * A010051(n-i), where pi is the prime counting function.
EXAMPLE
a(7) = 1 since 7 = 2 + 5 is the only partition of 7 into two distinct nonadjacent prime parts.
MATHEMATICA
Table[Sum[(1 - Floor[(PrimePi[i] + 1)/PrimePi[n - i]]) (PrimePi[i] - PrimePi[i - 1]) (PrimePi[n - i] - PrimePi[n - i - 1]), {i, Floor[(n - 1)/2]}], {n, 100}]
CROSSREFS
Cf. A307343.
Sequence in context: A060184 A055639 A156542 * A066360 A061358 A025866
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, May 09 2019
STATUS
approved