OFFSET
1,9
COMMENTS
Number of partitions of 2n into two odd parts with at least 1 composite part less than 2n-1.
LINKS
EXAMPLE
a(15) = 4; there are exactly 4 partitions of 2*15 = 30 into two odd parts with at least one composite part less than 2*15 - 1 = 29: (27,3), (25,5), (21,9), (15,15).
MATHEMATICA
Table[Ceiling[n/2] - 1 - Sum[(PrimePi[i] - PrimePi[i - 1])*(PrimePi[2 n - i] - PrimePi[2 n - i - 1]), {i, 3, n}], {n, 100}]
PROG
(PARI) a(n)=my(s); forstep(k=3, n, 2, if(!isprime(k) || !isprime(2*n-k), s++)); s \\ Charles R Greathouse IV, Jul 30 2016
(Python)
from sympy import isprime
def a(n): return sum(1 for k in range(3, n + 1, 2) if not isprime(k) or not isprime(2*n - k))
print([a(n) for n in range(1, 101)]) # Indranil Ghosh, Jul 11 2017
CROSSREFS
KEYWORD
nonn,nice
AUTHOR
Wesley Ivan Hurt, Dec 27 2013
STATUS
approved