OFFSET
1,4
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 1..87
EXAMPLE
a(13)=14 because the partition of 13 with largest path count is 4432, producing {1,1,1,1}, {1,2,3,4}, {2,5,9}, {5,14} with closing value 14.
MATHEMATICA
pathcount[p_] := Block[{ferr = (0*Range[#1] &) /@ p}, Last[Fold[Rest[FoldList[Plus, 0, Drop[#1, Length[#1] - Length[#2]] + #2]] &, 1 + First[ferr], Rest[ferr]]]]; f[n_] := Block[{k = mx = 1}, While[k < n + 1, m = Max[ pathcount /@ IntegerPartitions[n, {k}]]; If[m > mx, mx = m]; k++]; mx]; k = 1; lst = {}; While[k < 58, a = f@ k; Print[{k, a}]; AppendTo[lst, a]; k++ ]; lst
CROSSREFS
KEYWORD
nonn
AUTHOR
Wouter Meeussen, Sep 16 2010
EXTENSIONS
a(37) onwards from Robert G. Wilson v, Sep 19 2010
STATUS
approved