OFFSET
1,3
COMMENTS
Does 2*a(n) > n for n>2? Cf. A086144. - Benoit Cloitre
No. First failure is at n = 6662. - Peter Luschny, Oct 05 2011
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
MAPLE
(combinat[numbpart](n) mod 2) fi end: # Peter Luschny, Oct 05 2011
MATHEMATICA
a[n_] := Sum[Mod[PartitionsP[i], 2], {i, 1, n}];
Array[a, 80] (* Jean-François Alcover, Jun 03 2019 *)
PROG
(PARI) a(n) = my(x='x+O('x^(n+1)), p = 1/eta(x)); sum(i=1, n, (1-(-1)^(polcoeff(p, i))))/2; \\ corrected by Michel Marcus, Jun 11 2019
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, Jun 22 2002
STATUS
approved