The Method of Coefficients Ira M. Gessel Brandeis University - - PDF document

the method of coefficients
SMART_READER_LITE
LIVE PREVIEW

The Method of Coefficients Ira M. Gessel Brandeis University - - PDF document

The Method of Coefficients Ira M. Gessel Brandeis University Waltham, MA gessel@brandeis.edu Waterloo Workshop on Computer Algebra May 5, 2008 A simple example Consider the identity n m n 3 n 2 k ( 3) k =


slide-1
SLIDE 1

The Method of Coefficients

Ira M. Gessel Brandeis University Waltham, MA gessel@brandeis.edu Waterloo Workshop on Computer Algebra May 5, 2008

slide-2
SLIDE 2

A simple example

Consider the identity

m

  • k=0

n k 3n − 2k m − k

  • (−3)k =

n m/3

  • .

Note that in terms of hypergeometric series, this identity may be written

3F2

−n, −3n + m, −m −3

2n, −3 2n + 1 2

  • 3

4

  • =

    

“ −n+1 3 ”

M

“ −n+2 3 ”

M

“1 3 ”

M

“2 3 ”

M

if m = 3M

  • therwise

(a result of George Andrews).

slide-3
SLIDE 3

We can prove this identity in the following way: We start with 1 + y3 = (1 + y)(1 − y + y2) = (1 + y)

  • (1 + y)2 − 3y
  • So

(1 + y3)n = (1 + y)n (1 + y)2 − 3y n = (1 + y)n

k

n k

  • (1 + y)2n−2k(−3y)k

=

  • k

n k

  • (1 + y)3n−2k(−3y)k.

Equating coefficients of ym on both sides gives the identity

m

  • k=0

n k 3n − 2k m − k

  • (−3)k =

n m/3

  • .
slide-4
SLIDE 4

But how could we find this proof? We represent the binomial coefficients as coefficients

  • f

binomial expansions: n

k

  • is

the coefficient of xk in (1 + x)n and 3n−2k

m−k

  • is the

coefficient of ym−k in (1+y)3n−2k. It is convenient to represent these coefficients as constant terms, so the sum is CT

  • k

(1 + x)n xk (1 + y)3n−2k ym−k (−3)k = CT

  • k

(1 + x)n xk

  • −3

y (1 + y)2 k (1 + y)3n ym Now we apply the variable elimination rule: If f(x) is any power series and α is independent of x then CTx

  • k=0

f(x) xk αk =

  • k=0

[xk]f(x)αk = f(α).

slide-5
SLIDE 5

We apply this rule to CT

  • k

(1 + x)n xk

  • −3

y (1 + y)2 k (1 + y)3n ym = CTy (1 + y)3n ym CTx

  • k

(1 + x)n xk

  • −3

y (1 + y)2 k = CTy (1 + y)3n ym

  • 1 − 3

y (1 + y)2 n = CTy (1 + y)3n ym (1 + y)2 − 3y (1 + y)2 n = CTy (1 + y)3n ym 1 − y + y2 (1 + y)2 n = CTy

  • (1 + y)(1 − y + y2)

n ym = CTy (1 + y3)n ym = n m/3

  • .
slide-6
SLIDE 6

The Method of Coefficients

Based on G. P. Egorychev’s book Integralnoe predstavlenie i vyqislenie kombinatornyh summ To evaluate a binomial coefficient sum:

  • 1. First we represent the binomial coefficients as

constant terms: n k

  • = CT (1 + x)n

xk = CT (1 + x)n xn−k = CT 1 xk(1 − x)n−k+1 = CT 1 xn−k(1 − x)k+1

  • 2. We apply the variable elimination rule

CT

  • k=0

f(x) xk αk =

  • k=0

[xk]f(x)αk = f(α).

slide-7
SLIDE 7

Another example Evaluate

  • k

(−2)k n k 2n − k n − r − k

  • .

We have

  • k

(−2)k n k 2n − k n − r − k

  • = CT
  • k

(−2)k(1 + x)n xk (1 + y)2n−k yn−r−k = CT

  • k

(1 + x)n xk

  • − 2y

1 + y k (1 + y)2n yn−r = CT

  • 1 −

2y 1 + y n (1 + y)2n yn−r = CT 1 − y 1 + y n (1 + y)2n yn−r = CT (1 − y2)n yn−r = (−1)(n−r)/2

  • n

(n − r)/2

slide-8
SLIDE 8

Change of variables formulas

The simplest change of variables formula is CT f(x) = CT f(αx), where α is independent of x. More interesting is the linear change of variables formula CT f(x) = CT 1 1 + αxf

  • x

1 + αx

  • To prove it, we need only consider the case f(x) = xk,

k ∈ Z. The case k = 0 is clear. For k > 0, CT xk (1 + αx)k+1 = 0. For k = −j < 0, CT xk (1 + αx)k+1 = CT (1 + x)j−1 xj = 0.

slide-9
SLIDE 9

As a simple example of this change of variables formula, let S(a, b, n, γ) =

  • k

a k

  • b

n − k

  • γk

= CT (1 + γx)a(1 + x)b xn = b n

  • 2F1

−a, −n b − n + 1

  • γ
  • .

Applying the change of variables formula with α = −1 gives S(a, b, n, γ) =

  • 1 + (γ − 1)x

a(1 − x)n−a−b−1 xn = (−1)n CT

  • 1 + (1 − γ)x

a(1 + x)n−a−b−1 xn = (−1)nS(a, n − a − b − 1, n, 1 − γ). This is equivalent to a 2F1 linear transformation.

slide-10
SLIDE 10

A 2-variable change of variables formula

(Gessel and Stanton) For any Laurent series f(x, y), CT 1 1 − xyf(x, y) = CT f

  • x

1 + y, y 1 + x

  • .

To prove it we may assume that f(x, y) = xlym. The left side is 1 if l = m ≤ 0 and 0 otherwise. The right side is CT xl (1 + y)l ym (1 + x)m. This is clearly 0 if l or m is positive. If l = −r and m = −s, with r, s ≥ 0 then it is CT (1 + x)s xr (1 + y)r ys = s r r s

  • = δr,s.
slide-11
SLIDE 11

As an application we’ll prove the identity (1 + x)a(1 + y)b (1 − xy)a+b+1 =

  • l,m=0

a + m l b + l m

  • xlym.

Applying the change of variables formula with f(x, y) = (1 + x)a(1 + y)b xlym(1 − xy)a+b we get CT (1 + x)a(1 + y)b xlym(1 − xy)a+b+1 = CT (1 + x)a+m(1 + y)b+l xlym = a + m l b + l m

slide-12
SLIDE 12

General change of variables

For more general change of variables formulas, it is convenient to work with residues rather than constant

  • terms. The residue of the Laurent series f(z), denoted

res f(z), is the coefficient of z−1 in f(z). We have the following change of variables formula: Let f(z) be a Laurent series and let g(y) be a power series, g(y) = g1y + g2y2 + · · · , where g1 = 0. Then res f(z) = res f(g(y))g′(y)). (Note: There is a multivariable generalization, due to Jacobi, that we will not discuss.)

slide-13
SLIDE 13

The key fact in the proof is that the residue of a derivative is 0, and that a Laurent series with residue 0 is a derivative. Any Laurent series may be written as az−1 + F ′(z) for some Laurent series F(z), so by linearity it is enough to prove the formula for f(z) = z−1 and f(z) = F ′(z). For f(z) = F ′(z) we have res F ′(z) = 0 and res F ′(g(y))g′(y) = res F(g(y))′ = 0. For f(z) = z−1 we have res z−1 = 1 and res 1 g(y)g′(y) = res g1 + 2g2y + · · · g1y + g2y2 + · · · = res 1 y + g2 g1 + · · ·

  • = 1.
slide-14
SLIDE 14

An application of the change of variables theorem Prove the identity

  • k

a + k k a + 2n + 1 n − k

  • = 22n

n + a/2 n

  • .

As a hypergeometric series identity, this is a form

  • f Kummer’s theorem,

2F1

1 + a, −n 2 + a + n

  • −1
  • = (a + 2)n

(3

2 + a 2)n

. The left side is CT

  • k

1 xk(1 − x)a+1 (1 + y)a+2n+1 yn−k = CT (1 + y)a+2n+1 yn(1 − y)a+1 = CT (1 + y)2 y n (1 + y)a+1 (1 − y)a+1 = res (1 + y)2 y n+1 (1 + y)a−1 (1 − y)a+1.

slide-15
SLIDE 15

This suggests a change of variables z = y/(1+y)2. The computation is easiest if we start with the right side: 22n n + a/2 n

  • = res

1 zn+1(1 − 4z)a/2+1 Then we make the change of variables z = y/(1 + y)2, so that 1 − 4z = (1 − y)2/(1 + y)2 and dz/dy = (1 − y)/(1 + y)3. We get res (1 + y)2 y n+1 (1 + y)2 (1 − y)2 a/2+1 1 − y (1 + y)3 = res (1 + y)2 y n+1 (1 + y)a−1 (1 − y)a+1

slide-16
SLIDE 16

A more complicated example (Gessel and Stanton) Prove the hypergeometric series identity

2F1

  • −n, 1

2

2n + 3

2

  • 1

4

  • =

(1

2)n

(2n + 3

2)n

27 4 n An equivalent binomial coefficient identity is

  • k

−1

2

k 3n + 1

2

n − k 1 4 k = (−1)n 27 4 n −1

2

n

  • .

The left side is CT

  • k

(1 + x)−1/2 xk (1 + y)3n+1/2 yn−k 1 4 k = res (1 + 1

4y)−1/2(1 + y)3n+1/2

yn+1 . This suggests the change of variables z = y/(1 + y)3.

slide-17
SLIDE 17

The right side is res 1 zn+1

  • 1 − 27

4 z

. With the change of variables z = y/(1 + y)3, we have dz/dy = (1 − 2y)/(1 + y)4 and

  • 1 − 27

4 z = (1 + 1 4y)1/2(1 − 2y)

(1 + y)3/2 , so res 1 zn+1

  • 1 − 27

4 z

= res (1 + y)3n+3 yn+1 · (1 + y)3/2 (1 + 1

4y)1/2(1 − 2y) · 1 − 2y

(1 + y)4 = res (1 + 1

4y)−1/2(1 + y)3n+1/2

yn+1 .

slide-18
SLIDE 18

Comparison with Wilf’s Snake Oil Method

To evaluate a sum Sn =

k Sn,k, we find the

generating function

  • n

Snxn =

  • k
  • n

Sn,kxn. Sometimes we need to adjust the parameters to get this to work. Let us look at our second example,

  • k

(−2)k n k 2n − k n − r − k

  • = (−1)(n−r)/2
  • n

(n − r)/2

  • .

To apply the Snake Oil Method, we replace n − r with m, so the identity becomes

  • k

(−2)k n k 2n − k m − k

  • = (−1)m/2

n m/2

  • .
slide-19
SLIDE 19

Now we can multiply the left side by xm and sum on m to get

  • m
  • k

(−2)k n k 2n − k m − k

  • xm

=

  • j,k

(−2)k n k 2n − k j

  • xk+j

(m = k + j) =

  • k

(−2)k n k

  • xk(1 + x)2n−k

= (1 + x)n (1 + x) − 2x n = (1 + x)n(1 − x)n = (1 − x2)n =

  • m

(−1)m/2 n m/2

  • .
slide-20
SLIDE 20

A Lattice Path Example

We want to count lattice paths in the plane with unit steps north and east that stay below the line y = 2x and that start at the point (1, 1). If P(m, n) is the number of such of such paths that end at (m, n) then P(m, n) is easily computed for n ≤ 2m by the recurrence P(m, n) =      1, if (m, n) = (1, 1) 0, if n = 2m or n = 2m + 1 or n < 0 P(m − 1, n) + P(m, n − 1), otherwise.

3 1 3 3 6 1 1 1 2 1 3 1 9 12 12 12

Note that the red numbers are the “ternary tree numbers”

1 2n+1

3n

n

  • with generating function t(x)

satisfying t(x) = 1 + xt(x)3.

slide-21
SLIDE 21

We can extend the definition of P(m, n) above the line y = 2x so that the recurrence still holds:

3 1 3 3 6 1 1 1 2 1 3 1 1

  • 1

1 2 3 5

  • 1
  • 1
  • 1
  • 2
  • 3
  • 3
  • 3
  • 4
  • 6
  • 9
  • 14

9 12 12 12

Note that the blue numbers seem to be Catalan numbers! To prove this, we need to prove the identity,

  • j

1 2j + 1 3j j n + j − 1 3j

  • = Cn−1

where Cm is the Catalan number

1 m+1

2m

m

  • .
slide-22
SLIDE 22

We first apply the method of coefficients. We rewrite the sum as 1 n

  • j

n + j − 1 j

  • n

n − 2j − 1

  • = 1

n CT

  • j

1 xj(1 − x)n (1 + y)n yn−2j−1 = 1 n CT 1 (1 − y2)n (1 + y)n yn−1 = 1 n CT 1 yn−1(1 − y)n = 1 n 2n − 2 n − 1

  • .

But we can also try using the Snake Oil Method. We need to evaluate

  • j,n

1 2j + 1 3j j n + j − 1 3j

  • xn.
slide-23
SLIDE 23

The sum on n is easy to evaluate, and we get x 1 − x

  • j

1 2j + 1 3j j x2 (1 − x)3 j = x 1 − xt

  • x2

(1 − x)3

  • ,

Putting these two results we get, 1 1 − x t

  • x2

(1 − x)3

  • = c(x),

where t(x) = 1 + xt(x)3 and c(x) = 1 + xc(x)2.