OFFSET
4,1
LINKS
T. Mansour and A. Vainshtein, Counting occurrences of 132 in a permutation, arXiv:math/0105073 [math.CO], 2001.
FORMULA
a(n) = C(2*n-6,n-2)*(n^3+17*n^2-80*n+80)/(2n(n-1)).
MATHEMATICA
Table[Binomial[2n-6, n-2] (n^3+17n^2-80n+80)/(2n(n-1)), {n, 4, 30}] (* Harvey P. Dale, Dec 25 2018 *)
PROG
(PARI) a(n)=binomial(2*n-6, n-2)*(n^3+17*n^2-80*n+80)/2/n/(n-1)
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, May 27 2003
STATUS
approved