%I #5 Oct 30 2015 22:13:14
%S 945,140160,8451954,354288384,12220104063,375886190592,10790720535960,
%T 297346489233408,8010916259737230,213667262746914816,
%U 5691371451612082740,152338392950319636480,4115775817227930936570,112602904310385883054080,3126998971137511212293880
%N Number of permutations of [n] containing exactly five occurrences of the consecutive pattern 132.
%H Alois P. Heinz, <a href="/A263889/b263889.txt">Table of n, a(n) for n = 11..100</a>
%F a(n) = A197365(n,5).
%p b:= proc(u, o, t) option remember; series(`if`(u+o=0, 1,
%p add(b(u-j, o+j-1, 0)*`if`(j<=t, x, 1), j=1..u)+
%p add(b(u+j-1, o-j, j-1), j=1..o)), x, 6)
%p end:
%p a:= n-> coeff(b(n, 0$2), x, 5):
%p seq(a(n), n=11..35);
%Y Column k=5 of A197365.
%K nonn
%O 11,1
%A _Alois P. Heinz_, Oct 28 2015
|