Docsity

Binomial Coefficients - Discrete Mathematics - Lecture Slides, Slides of Discrete Mathematics

Partial preview of the text

Download Binomial Coefficients - Discrete Mathematics - Lecture Slides and more Slides Discrete Mathematics in PDF only on Docsity!

Binomial Coefficients

Binomial Coefficients

• It allows us to do a quick expansion of ( x + y ) n

• Why it’s really important:

• It provides a good context to present proofs

  • Especially combinatorial proofs

Review: combinatorial proof

• A combinatorial proof is a proof that uses

counting arguments to prove a theorem,

rather than some other method such as

algebraic techniques

• Essentially, show that both sides of the proof

manage to count the same objects

  • Usually in the form of an English explanation with

supporting formulae

Polynomial expansion

  • Consider ( x + y ) 3 :
  • Rephrase it as:
  • When choosing x twice and y once, there are C(3,2) = C(3,1) = 3 ways to choose where the x comes from
  • When choosing x once and y twice, there are C(3,2) = C(3,1) = 3 ways to choose where the y comes from

5

( x + y )^3 = x^3 + 3 x^2 y + 3 xy^2 + y^3

( x + y )( x + y )( x + y )= x^3 + [ x 2 y + x^2 y + x^2 y ] +[ xy 2 + xy^2 + xy^2 ] + y^3

Polynomial expansion

• For ( x + y ) 5

7

5 5 4 3 2 2 3 4 5 0

( x y ) x x y x y x y xy  y

( x + y )^5 = x^5 + 5 x^4 y + 10 x^3 y^2 + 10 x^2 y^3 + 5 xy^4 + y^5

Polynomial expansion:

The binomial theorem

  • For ( x + y ) n

8

n n xn y n x yn n x y n n

n x y n

n x y^011110 1 1 0

+ = −^  −

∑

−  

n

j

xn^ jyj j

n

0

n n n x y n n

n x y n

n x y

n x y

n (^) 0 1 1 1 1 0 0 1 1 

= −^  −

Sample question

• Find the coefficient of x^5 y^8 in ( x + y ) 13

• Answer:

10

Pascal’s triangle

11

0 1 2 3 4 5 6 7 8 n =

Algebraic proof of Pascal’s identity

13

 

  

 + 

  

 − = 

  

 +

k

n k

n k

n 1

1

( 1 ) ( 1 )( )!

( 1 )! ( 1 )!

( 1 )! ( 1 )*( )!

n k n k n k

n n n

n k n k n k

− + = − + −

  • = +

  • − = + − −

n + 1 = n + 1

!( )!

! ( 1 )!( ( 1 ))!

! !( 1 )!

( 1 )! k n k

n k n k

n k n k

n −

− − −

=

  • −

( 1 )!( )!

! ( 1 )!( 1 )( )!

! ( 1 )!( 1 )( )!

( 1 )! k k n k

n k n k n k

n k k n k n k

n n − −

− − + −

= − + − −

k n k n k k

n 1 ( 1 )

1 ( 1 )

( 1 )

− +

=

  • −

n + 1 = k + n − k + 1

( 1 )

( 1 ) ( 1 ) ( 1 )

( 1 ) − +

− +

− +

=

  • −

k n k

n k k n k

k k n k

n

Substitutions:

Pascal’s identity: combinatorial proof

  • Prove C( n +1, k ) = C( n , k -1) + C( n , k )
  • Consider a set T of n +1 elements
    • We want to choose a subset of k elements
    • We will count the number of subsets of k elements via 2 methods
  • Method 1: There are C( n +1, k ) ways to choose such a subset
  • Method 2: Let a be an element of set T
  • Two cases
    • a is in such a subset
      • There are C( n , k -1) ways to choose such a subset
    • a is not in such a subset
      • There are C( n , k ) ways to choose such a subset
  • Thus, there are C( n , k -1) + C( n , k ) ways to choose a subset of k elements
  • Therefore, C( n +1, k ) = C( n , k -1) + C( n , k )

Corollary 1 and algebraic proof

• Let n be a non-negative integer. Then

• Algebraic proof

16

=

n

k

n k

n

0

=

−  

n

k

k n k k

n

0

2 n^ =( 1 + 1 )^ n

=

n

k k

n

0

=

−  

n

j

n (^) xn jyj j

n x y 0

Combinatorial proof of corollary 1

• Let n be a non-negative integer. Then

• Combinatorial proof

  • A set with n elements has 2 n^ subsets
    • By definition of power set
  • Each subset has either 0 or 1 or 2 or … or n

elements

  • There are subsets with 0 elements, subsets with 1 element, … and subsets with n elements
  • Thus, the total number of subsets is (^17)

=

n

k

n k

n

0

n

n

k k

n 2 0

^ =

=

 0 

n

=

n

k k

n

0

 1 

n

 n 

n

Proof practice: corollary 2

• Let n be a positive integer. Then

• Algebraic proof

• This implies that

19

0 = 0^ n

=

n

k

k k

n

0

n n n n n n

=

n

k

k n k k

n

0

n = ( − 1 )+ 1

k

n

k k

n ( 1 ) 0

^ −

=

=

−  

n

j

n (^) xn jyj j

n x y 0

Proof practice: corollary 3

• Let n be a non-negative integer. Then

• Algebraic proof

20

=

−  

n

k

n k k k

n

0

=

n

k

k n k

n

0

3 n^ = ( 1 + 2 )^ n

=

n

k

k k

n

0