OFFSET
4,1
COMMENTS
Also the number of ballot sequences of length n where 4 is the position of the last occurrence of the minimal value.
LINKS
Joerg Arndt and Alois P. Heinz, Table of n, a(n) for n = 4..1000
Vaclav Kotesovec, Recurrence (of order 6)
Wikipedia, Young tableau
FORMULA
a(n) ~ 2^(2*n-3) / (Pi*n^3). - Vaclav Kotesovec, Aug 27 2014
EXAMPLE
a(4) = 4:
[1 4] [1 2 4] [1 3 4] [1 2 3 4]
[2] [3] [2]
[3]
MATHEMATICA
b[n_, l_List] := b[n, l] = If[n == 0, 1, Sum[If[i == 1 || l[[i-1]] > l[[i]], b[n-1, ReplacePart[l, i -> l[[i]]+1]], 0], {i, 1, Length[l]}] + Function[{p}, p + (x^(1+Total[l])-1)*Coefficient[p, x, 0]][b[n-1, Append[l, 1]]]]; a[n_] := Coefficient[ b[n, {}], x, 4] ; Table[Print["a(", n, ") = ", an = a[n]]; an, {n, 4, 40}] (* Jean-François Alcover, Feb 06 2015, after Maple code in A238794 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Joerg Arndt and Alois P. Heinz, Jul 09 2014
STATUS
approved