A110110 Number of symmetric Schroeder paths of length 2n (A Schroeder path of length 2n is a lattice path from (0,0) to (2n,0) consisting of U=(1,1), D=(1,-1) and H=(2,0) steps and never going below the x-axis).
1, 2, 4, 8, 18, 38, 88, 192, 450, 1002, 2364, 5336, 12642, 28814, 68464, 157184, 374274, 864146, 2060980, 4780008, 11414898, 26572086, 63521352, 148321344, 354870594, 830764794, 1989102444, 4666890936, 11180805570, 26283115038
Offset: 0
Keywords
Examples
a(2)=4 because we have HH, UDUD, UHD and UUDD. 1 + 2*x + 4*x^2 + 8*x^3 + 18*x^4 + 38*x^5 + 88*x^6 + 192*x^7 + 450*x^8 + ...
Links
- G. C. Greubel, Table of n, a(n) for n = 0..1000
- Frédéric Bihan, Francisco Santos, Pierre-Jean Spaenlehauer, A Polyhedral Method for Sparse Systems with many Positive Solutions, arXiv:1804.05683 [math.CO], 2018.
- S. Samieinia, The number of continuous curves in digital geometry, Port. Math. 67 (1) (2010) 75-89.
- Jacob A. Siehler, Selections Without Adjacency on a Rectangular Grid, arXiv:1409.3869 [math.CO], 2014, p.9.
Programs
-
Maple
RR:=(1-z^2-sqrt(1-6*z^2+z^4))/2/z^2: G:=(1+z)*RR/(1-z*RR): Gser:=series(G,z=0,36): 1,seq(coeff(Gser,z^n),n=1..33);
-
Mathematica
CoefficientList[Series[(1+x) * (-1 + Sqrt[1 - 6*x^2 + x^4] / (1 - 2*x - x^2)) / (2*x), {x, 0, 30}], x] (* Vaclav Kotesovec, Mar 09 2016 *)
-
PARI
{a(n) = if( n<0, 0, polcoeff( (1 + x) * ( -1 + sqrt( 1 - 6*x^2 + x^4 + x^2 * O(x^n)) / (1 - 2*x - x^2)) / (2*x), n))} /* Michael Somos, Feb 07 2011 */
Formula
G.f.: (1 + x) * ( -1 + sqrt( 1 - 6*x^2 + x^4) / (1 - 2*x - x^2)) / (2*x). - Michael Somos, Feb 07 2011
G.f.: (1+z)R(z^2)/[1-zR(z^2)], where R=1+zR+zR^2=[1-z-sqrt(1-6z+z^2)]/(2z) is the g.f. of the large Schroeder numbers.
a(2*n) = A050146(n+1). - Michael Somos, Feb 07 2011
From Roger Ford, May 25 2014: (Start)
a(2*n) = 3*a(2*n-1) - 2*A026003(2*n-2), n>0.
(End)
a(n) ~ sqrt(6*sqrt(2)-8) * (1+sqrt(2))^(n+2)/ (2*sqrt(Pi*n)). - Vaclav Kotesovec, Mar 09 2016
D-finite with recurrence (n+1)*a(n) +(n-3)*a(n-1) +2*(-3*n+2)*a(n-2) +2*(-3*n+8)*a(n-3) +(n-5)*a(n-4) +(n-5)*a(n-5)=0. - R. J. Mathar, Jul 26 2022
Comments