Search: id:A113226 Results 1-1 of 1 results found. %I A113226 %S A113226 1,2,6,23,107,585,3669,25932,203768,1761109,16595757,169287873, %T A113226 1857903529,21823488238,273130320026,3627845694283,50962676849199, %U A113226 754814462534449,11754778469338581,191998054346198680 %N A113226 Number of permutations avoiding the pattern 12-34. %C A113226 a(n) is the number of permutations on [n] that avoid the mixed consecutive/ scattered pattern 12-34 (also number that avoid 43-21). %D A113226 Sergi Elizalde, Asymptotic enumeration of permutations avoiding generalized patterns, Adv. in Appl. Math., to appear. %H A113226 Sergi Elizalde, Asymptotic enumeration of permutations avoiding generalized patterns.. %F A113226 In the recurrence coded in Mathematica below, w[n] = # (12-34)-avoiding permutations on [n]; v[n, a] is the number that start with a descent and have first entry a; u[n, a, k, b] is the number that start with an ascent and that have (i) first entry a, (ii) other than a, all ascent initiators =2 := w[n] = u[n]+v[n]; v[n_]/; n>=2 := v[n] = Sum[v[n, a], {a, 2, n}]; v[1, 1] = 1; v[n_, a_]/;2<=a<=n := v[n, a] = Sum[u[n-1, b], {b, a-1}] + Sum[v[n-1, b], {b, 2, a-1}]; u[1] = 1; u[n_]/;n>=2 := u[n] = Sum[u[n, a], {a, n-1}]; u[1, 1] = 1; u[n_, a_]/;a==n := 0; u[n_, a_]/;1<=a=n := 0; u[n_, a_, k_]/ ;1<=a=3 := u[n, a, k] = Sum[u[n, a, k, b], {b, a+1, n}]; u[n_, a_, k_, b_]/;1<=a=b+2 := u[n, a, b+1, b]; u[n_, a_, k_, b_]/;1<=a