OFFSET
1,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
EXAMPLE
The odd partitions of (2*4+1) occur at positions 1, 4, 9, 12, 19, 21, 25, and 30. For (2*5+1) they occur at 1, 4, 9, 12, 20, ..., so for k=5 only four terms have stabilized, giving a(1) = 1, a(2) = 4, a(3) = 9, and a(4) = 12.
MATHEMATICA
<<DiscreteMath`Combinatorica`;
it=Table[Flatten[Position[Partitions[n], q_List/; FreeQ[q, _?EvenQ], 1]], {n, 39, 39+2, 2}]; {{diffat}}=Position[Take[Last[it], Length[First[it] ] ] - First[it] , a_ /; (a!=0), 1, 1]; Take[First[it], diffat -1 ]
CROSSREFS
KEYWORD
nonn
AUTHOR
Wouter Meeussen, Feb 13 2011
STATUS
approved