OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
EXAMPLE
The odd partitions of (2*4) occur at positions 2, 5, 7, 14, 17 and 22. For (2*5) they occur at 2, 5, 7, 13, ... so for k=5 only the first three terms have stabilized, giving a(1) = 2, a(2) = 5, and a(3) = 7.
MATHEMATICA
<<DiscreteMath`Combinatorica`;
it=Table[Flatten[Position[Partitions[n], q_List/; FreeQ[q, _?EvenQ], 1]], {n, 36, 36+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