%I #17 Apr 19 2022 11:32:13
%S 1,1,2,6,24,120,720,5020,40000,358560,3571200,39124800,467596800,
%T 6054250840,84417778720,1261161277200,20097223449600,340275330912000,
%U 6100262355686400,115437689217984148,2299445555596421920,48093671993708346480,1053794989665442654080
%N Number of permutations of {1,...,n} avoiding adjacent step pattern up, up, up, down, down, down.
%H Alois P. Heinz, <a href="/A177552/b177552.txt">Table of n, a(n) for n = 0..200</a>
%F a(n) ~ c * d^n * n!, where d = 0.9959682894155038013878176356538407492626252741099726077392745662726589922..., c = 1.02468007512189851788618819144905616307144561621610927886626291999589... . - _Vaclav Kotesovec_, Jan 17 2015
%p b:= proc(u, o, t) option remember; `if`(t>6, 0, `if`(u+o+t<7, (u+o)!,
%p add(b(u-j, o+j-1, [1, 1, 1, 5, 6, 7][t]), j=1..u)+
%p add(b(u+j-1, o-j, [2, 3, 4, 4, 2, 2][t]), j=1..o)))
%p end:
%p a:= n-> b(n, 0, 1):
%p seq(a(n), n=0..25); # _Alois P. Heinz_, Oct 30 2013
%t b[u_, o_, t_] := b[u, o, t] = If[t > 6, 0, If[u + o + t < 7, (u + o)!,
%t Sum[b[u - j, o + j - 1, {1, 1, 1, 5, 6, 7}[[t]]], {j, 1, u}] +
%t Sum[b[u + j - 1, o - j, {2, 3, 4, 4, 2, 2}[[t]]], {j, 1, o}]]];
%t a[n_] := b[n, 0, 1];
%t Table[a[n], {n, 0, 25}] (* _Jean-François Alcover_, Apr 19 2022, after _Alois P. Heinz_ *)
%Y Column k=56 of A242784.
%K nonn
%O 0,3
%A _R. H. Hardin_, May 10 2010
%E a(17)-a(22) from _Alois P. Heinz_, Oct 30 2013