Motzkin Number

DOWNLOAD Mathematica Notebook MotzkinNumber

The Motzkin numbers enumerate various combinatorial objects. Donaghey and Shapiro (1977) give 14 different manifestations of these numbers. In particular, they give the number of paths from (0, 0) to (n, 0) which never dip below y=0 and are made up only of the steps (1, 0), (1, 1), and (1, -1), i.e., ->, ->, and ->.

The first are 1, 2, 4, 9, 21, 51, ... (OEIS A001006). The numbers of decimal digits in M_(10^n) for n=0, 1, ... are 1, 4, 45, 473, 4766, 47705, 477113, ... (OEIS A114473), where the digits approach those of log_(10)3=0.4771212547... (OEIS A114490).

The first few prime Motzkin numbers are 2, 127, 15511, 953467954114363, ... (OEIS A092832), which correspond to indices 2, 7, 12, 36, ... (OEIS A092831), with no others for n<=263000 (Weisstein, Mar. 29, 2005).

The Motzkin number generating function M(x) satisfies

 M=1+xM+x^2M^2
(1)

and is given by

M(x)=(1-x-sqrt(1-2x-3x^2))/(2x^2)
(2)
=2/(1-x+sqrt(1-2x-3x^2))
(3)
=1+x+2x^2+4x^3+9x^4+21x^5+....
(4)

M(x) therefore is given by the continued fraction

 M(x)=1/(1-x-(x^2)/(1-x-(x^2)/(1-x-(x^2)/...)))
(5)

(M. Somos, pers. comm., Apr. 15, 2006).

They are given by the recurrence relation

 M_n=(3(n-1)M_(n-2)+(2n+1)M_(n-1))/(n+2)
(6)

with M_0=M_1=1, as well as the nested recurrence

 M_n=M_(n-1)+sum_(k=0)^(n-2)M_kM_(n-2-k)
(7)

with M_0=1.

The Motzkin number M_n is also given by

M_n=-1/2sum_(a=0)^(n+2)(-3)^k(1/2; a)(1/2; b)
(8)
=((-1)^(n+1))/(2^(2n+5))sum_(a=0)^(n+2)((-3)^a)/((2a-1)(2b-1))(2a; a)(2b; b)
(9)
=_2F_1(1/2(1-n),-1/2n;2;4)
(10)
=1/(n+1)(n+1; 1)_2
(11)
=-(sqrt(pi)_2F^~_1(-1/2,-n-2;-n-1/2;-3))/(4Gamma(n+3))
(12)
=(i^n3^(n/2))/2[3P_n(-1/3isqrt(3))+2isqrt(3)P_(n+1)(-1/3isqrt(3))+3P_(n+2)(-1/3isqrt(3))],
(13)

where b=n+2-a, (n; k) is a binomial coefficient, (n; k)_2 is a trinomial coefficient, _2F_1(a,b;c;z) is a hypergeometric function, _2F^~_1(a,b;c;z) is a regularized hypergeometric function, Gamma(z) is a gamma function, and P_n(z) is a Legendre polynomial.

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.