cp's OEIS Frontend

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.

A306292 Number of asymmetric Dyck paths of semilength n.

Original entry on oeis.org

0, 0, 2, 8, 32, 112, 394, 1360, 4736, 16544, 58324, 207088, 741184, 2671008, 9688410, 35344800, 129620480, 477590080, 1767170812, 6563935664, 24465914304, 91481858208, 343058261572, 1289901443168
Offset: 1

Views

Author

Noah A Rosenberg, Feb 04 2019

Keywords

Comments

An asymmetric Dyck path is a path that generates a distinct Dyck path when traversed in opposite order.

Examples

			For n=3, the a(2)=2 asymmetric Dyck paths are UUDDUD and UDUUDD.
		

Crossrefs

Equals twice A006079. Also A000108 minus A001405.

Programs

  • Mathematica
    Table[Binomial[2 n, n]/(n + 1) - Binomial[n, Floor[n/2]], {n, 0, 30}]
  • PARI
    a(n) = binomial(2*n, n)/(n+1) - binomial(n, n\2); \\ Michel Marcus, Jan 22 2020

Formula

a(n) = (2n)! / (n! (n+1))! - n! / ( (floor(n/2))! (ceiling(n/2))! ).