OFFSET
0,27
COMMENTS
a(0) = 1 corresponds to the empty partition {}.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
EXAMPLE
a(26) = 2 since 26 = 3 + 23 = 7 + 19.
Even though 27 = (3 * 3) + 7 + 11 = (2 * 3) + (3 * 7) = (9 * 3), there is no partition of 27 into primes of the form 4k - 1 with all parts distinct. Hence a(27) = 0.
MATHEMATICA
searchMax = 108; primes4km1 = Select[4Range[Ceiling[searchMax/4]] - 1, PrimeQ]; Table[Length[Select[IntegerPartitions[n, All, primes4km1], DuplicateFreeQ]], {n, 0, searchMax}] (* Alonso del Arte, Apr 16 2019 *)
PROG
(PARI) { my(V=select(x->x%4==3, primes(40))); my(x='x+O('x^V[#V])); Vec(prod(k=1, #V, 1+x^V[k])) } \\ Joerg Arndt, Apr 19 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Definition clarified by Felix Fröhlich, Apr 17 2019
a(0) = 1 prepended by Joerg Arndt, Apr 19 2019
STATUS
approved