OFFSET
1,2
COMMENTS
Odd positive integers with an odd number of partitions and even positive integers with an even number of partitions. - Omar E. Pol, Mar 17 2012
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..1000
K. Ono, Parity of the partition function, Electronic Research Announcements of AMS, Vol. 1, 1995, pp. 35-42; MR 96d:11108
EXAMPLE
10 is in the sequence because the number of partitions of 10 is equal to 42 and both 10 and 42 have the same parity.
MAPLE
with(combinat):
a:= proc(n) option remember; local k;
for k from 1+`if`(n=1, 0, a(n-1))
while irem(k+numbpart(k), 2)=1 do od; k
end:
seq(a(n), n=1..80); # Alois P. Heinz, Mar 16 2012
MATHEMATICA
Select[Range[200], Mod[PartitionsP[#] - #, 2] == 0 &] (* T. D. Noe, Mar 16 2012 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Jan 29 2012
EXTENSIONS
More terms from Alois P. Heinz, Mar 16 2012
STATUS
approved