This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A092594 #11 Sep 18 2017 13:06:47 %S A092594 1,0,2,0,2,4,0,8,8,8,0,40,40,24,16,0,240,240,144,64,32,0,1680,1680, %T A092594 1008,448,160,64,0,13440,13440,8064,3584,1280,384,128,0,120960,120960, %U A092594 72576,32256,11520,3456,896,256,0,1209600,1209600,725760,322560,115200,34560 %N A092594 Triangle read by rows: T(n,k) is the number of permutations p of [n] in which the length of the longest initial segment avoiding both the 132- and the 231-pattern is equal to k. %C A092594 Row sums are the factorial numbers (A000142). %C A092594 T(n,2)=n!/3 for n>=3 and T(n,3)=n!/3 for n>=4 (A002301). %H A092594 E. Deutsch and W. P. Johnson, <a href="http://www.jstor.org/stable/3219101">Create your own permutation statistics</a>, Math. Mag., 77, 130-134, 2004. %H A092594 R. Simion and F. W. Schmidt, <a href="https://doi.org/10.1016/S0195-6698(85)80052-4">Restricted permutations</a>, European J. Combin., 6, 383-406, 1985. %F A092594 T(n, k) = (k-1)*n!*2^(k-1)*/(k+1)! for k<n; T(n, n)=2^(n-1). %e A092594 T(4,3)=8 because 1243, 1342, 2143, 2341, 3142, 3241, 4132 and 4231 are the only permutations of [4] in which the length of the longest initial segment avoiding both the 132- and the 231-pattern is equal to 3 (i.e. the first three entries contain neither the 132- nor the 231-pattern but all four of them contain at least one of these two patterns). %e A092594 Triangle starts: %e A092594 1; %e A092594 0,2; %e A092594 0,2,4; %e A092594 0,8,8,8; %e A092594 0,40,40,24,16; %e A092594 0,240,240,144,64,32; %e A092594 0,1680,1680,1008,448,160,64; %Y A092594 Cf. A000142, A002301. %K A092594 nonn,tabl %O A092594 1,3 %A A092594 _Emeric Deutsch_ and Warren P. Johnson (wjohnson(AT)bates.edu), Apr 10 2004