OFFSET
0,3
LINKS
Michael De Vlieger, Table of n, a(n) for n = 0..1000
Stoyan Dimitrov, On permutation patterns with constrained gap sizes, arXiv:2002.12322 [math.CO], 2020.
FORMULA
a(n) ~ 17 * 2^(2*n-4) / (sqrt(Pi) * n^(3/2)). - Vaclav Kotesovec, Dec 20 2025
MAPLE
gf:= (C-> (1+x^3*C(x))*C(x))(x-> (1-sqrt(1-4*x))/(2*x)):
gfun[seriestolist](series(gf, x, 31))[]; # Alois P. Heinz, Dec 15 2025
MATHEMATICA
With[{$MaxExtraPrecision = 1000}, CoefficientList[Series[# (1 + x^3*#) &[(1 - (1 - 4 x)^(1/2))/(2 x)], {x, 0, 25}], x]] (* Michael De Vlieger, May 30 2020 *)
PROG
(SageMath)
x = LazyPowerSeriesRing(QQ, 'x').gen()
C = (1 - (1 - 4 * x)**(1/2)) / (2 * x)
f = (1 + x**3 * C) * C
f[:10] # F. Chapoton, Nov 26 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jun 06 2002
STATUS
approved
