A378939 Number of Schroeder paths of semilength n up to reversal.
1, 2, 5, 15, 54, 216, 947, 4375, 21018, 103550, 520041, 2649391, 13655190, 71053780, 372727751, 1968880111, 10463765490, 55909445082, 300160457453, 1618364548591, 8759315367894, 47574840887024, 259215969470139, 1416461749625543, 7760734001872842, 42624971709868054
Offset: 0
Keywords
Examples
The a(1)..a(3) paths are: a(1) = 1: H, UD; a(2) = 5: HH, UHD, UDUD, UUDD, HUD=UDH; a(3) = 15: HHH, HUDH, UHHD, UDHUD, UDUDUD, UUHDD, UUDUDD, UUUDDD, HHUD=UDHH, HUHD=UHDH, HUDUD=UDUDH, UHDUD=UDUHD, HUUDD=UDUDH, UHUDD=UUDHD, UDUUDD=UUDDUD.
Links
- Andrew Howroyd, Table of n, a(n) for n = 0..1000
Crossrefs
Programs
-
PARI
seq(n) = { my(A=O(x^(n+2))); Vec(( -2*x - sqrt(1 - 6*x + x^2 + A) + sqrt(1 - 6*x^2 + x^4 + A)*(1 + x)/(1 - 2*x - x^2) ) / (4*x)) }
Comments