You are on page 1of 7

Raffles Institution H3 Mathematics 9810 (Combinatorics) Year 6 2012

_____________________________________

Chapter 3: The Bijection Principle


1 Injective and Surjective Mappings Let us first recall some concepts on mappings of sets. A mapping f from A to B, denoted by f : A B , is a rule which assigns to each element a in A a unique element, denoted by f(a) in B. f(a) is also called as the image of a and a is the preimage of f(a). 1.1 Injective Mappings We say that a mapping is injective (or one to one) if f(x)f(y) in B whenever x y in A. Example: f 1 3 5 A a b c d B

Each element in A corresponds to distinct images in B. Thus f is one to one.

Qn: Can you modify f so that it is not one to one? 1.2 Surjective mappings We say that a mapping is surjective (or onto) if for any b in B, there exists an a in A such that f(a) = b, i.e. every element in b has a preimage in A. Example: f1 1 3 5 A f2 0 1 2 3 5 A a b c d B a b c d B

c does not have a preimage. Thus f1 is not onto.

a, b, c, d all have a preimage. Thus f2 is onto.

__________________________ Chapter 3 The Bijection Principle Page 1 of 7

Raffles Institution H3 Mathematics 9810 Year 6 2012 __________________________________________

Note: Let A and B be finite sets. (a) If there exists an injective mapping from A to B , clearly A B . (b) If there exists a surjective mapping from A to B , then A B . 2 The Bijection Principle

A bijective mapping is both injective and surjective. Thus, we have The Bijection Principle (BP) Let A and B be finite sets. If there exists a bijection f : A B , then A = B.

By establishing a bijection, we can reduce a difficult or unfamiliar counting problem to something easy and familiar. More often than not, we will reduce our problem to that of counting sequences or sets. Example 1 An ant wants to crawl from P to Q. If it can only crawl along the segments of the grid, how many shortest routes does it have to get from P to Q? Q

P Solution: Instead of counting manually, we could use 0 to represent a horizontal segment of the route, and 1 to represent a vertical segment. For example, Q

P The route above could be represented by 00110001 a binary sequence. Similarly, the route Q

P could be represented by 10001100 another binary sequence.

___________________________ Chapter 3 The Bijection Principle Page 2 of 7

Raffles Institution H3 Mathematics 9810 Year 6 2012 __________________________________________

Let A be the set of all possible shortest P-Q routes and B the set of all 8-digit binary sequences with three 1s. The above representation of a shortest route by a binary sequence where a horizontal segment of the route is represented by a 0 while a vertical segment is represented by a 1 defines a mapping f from A to B, namely, f : A B . Clearly, different shortest P-Q routes in A correspond to different sequences in B under f, so f is one to one. For any sequence b in B, one can find a corresponding shortest P-Q route in A, so f is onto. Thus, by (BP), |A| = |B| = = 56 . 3 Example 2 Find the number of divisors of 12600. Solution: To solve this problem of counting, we have to make use of the Fundamental Theorem of Algebra. Every positive integer n 2 can be factorized as m2 n = p1m1 p2 ... pkmk for some prime numbers p1, p2, , pk and for some positive integers m1, m2, , mk. Such a factorization is unique if the order of primes is disregarded.
8

Prime decomposition of 12600 gives 12600 = 23 32 52 71 . Thus a number d divides 12600 if and only if it can be expressed as
d = 2 p 3q 5r 7 s

where p, q, r, s are integers such that 0 p 3, 0 q 2, 0 r 2, 0 s 1 . Let A be the set of divisors of 12600 and B = {( p, q, r , s ) : p = 0,1, 2, 3; q = 0,1, 2; r = 0,1, 2; s = 0,1} . We define the mapping f : A B as f(d ) = ( p, q, r , s ), d A . To prove f is a bijection from A to B: Suppose d1d2, then f(d1)= f(d2) which contradicts the Fundamental Theorem of Algebra. So f is one to one.

2 p 3q 5r 7 s divides 12600 for 0 p 3, 0 q 2, 0 r 2, 0 s 1 .


So ( p , q , r , s ) = f( d ) for some d = 2 p 3q 5r 7 s . Hence, f is onto. Since f is a bijection, by (BP) and (MP), A = B = 4 3 3 2 = 72 .

So far the bijections we have formed are with sequences. Lets consider the next example, where the bijection formed is with subsets:

___________________________ Chapter 3 The Bijection Principle Page 3 of 7

Raffles Institution H3 Mathematics 9810 Year 6 2012 __________________________________________

Example 3 There are five distinct points on a circle. How many chords can be formed by joining two of these points? 1 2

4 Solution: Let A be the set of such chords, and B the set of 2-element subsets of {1, 2, 3, 4, 5}. For each chord in A, define f( ) = { p, q} , where p, q are the two points on the circle chosen to form the chord . If and are two distinct chords, then f ( ) f ( ) which implies f is injective. For any 2-element subset {p, q} in B, there is a chord in A that is formed by joining the two points p and q. So f is onto. Hence, f : A B is a bijection; by (BP), A = B .
5 5 Since B = , A = = 10, which implies a total of 10 chords can be formed. 2 2

Extension of Example 3: Consider the 10 chords that can be formed in Example 3. Given that no three chords are concurrent, find the number of points of intersection of these 10 chords within the circle. Solution: Once again we make use of (BP). Let C be the set of all points of intersection between the 10 chords and D the set of 4-element subsets of {1, 2, 3, 4, 5}. The following figure exhibits a rule between C and D. 1 2 a {1, 2, 4,5}

b c d e

{1, 2,3,5} {1, 2,3, 4} {2,3, 4,5} {1,3, 4,5}


5

b a c

4 For each point in C, define g () = {p, q, r, s }, where p, q, r, s are points on the circumference such that they are the endpoints of the two chords that intersect to give . So, g is a mapping from C to D.

___________________________ Chapter 3 The Bijection Principle Page 4 of 7

Raffles Institution H3 Mathematics 9810 Year 6 2012 __________________________________________

Every pair of chords, with endpoints p, q, r, s, that intersect, will result in a point of intersection, so g is surjective (onto). Also, two distinct points of intersection will not have the same pair of chords, so g is injective (one to one). g: C D is a bijection.

5 5 Once we have done that, we know C = D . Since D = , thus C = . 4 4 Example 4 The sets S, T and U are defined as follows: S = {1, 2, 3, , 2n, 2n + 1}, T = set of subsets which contain 0, 2, 4, , 2n elements of S, U = set of subsets which contain 1, 3, 5, , (2n + 1) elements of S, where n is a positive integer.
For example, if S = {1 , 2, 3}, then T = {{ }, {1, 2}, {1, 3}, {2, 3}} and U = {{1}, {2}, {3}, {1, 2, 3}}. By using the bijection principle, show that | T | = | U | . Hence write down the number of subsets which contain an even number of elements for a set with 9 elements. [4] Solution: We define a mapping f: T U such that

Example 5 Given that X = {1, 2, , n} where n + , show that the number of combinations of X n r + 1 containing r elements with no two elements being consecutive integers is , where r r + and 0 r n r + 1 . Solution: Let A be the set of r-combinations of X with no two elements being consecutive integers and B be the set of r-combinations of Y, where Y = {1, 2, , n r+1 }. For any aA, a = {a1, a2, , ar} where we may assume a1 < a2 < ... < ar . We define a mapping f: A B such that f(a) =

___________________________ Chapter 3 The Bijection Principle Page 5 of 7

Raffles Institution H3 Mathematics 9810 Year 6 2012 __________________________________________

3 1.

Exercise Power sets The power set of a set, denoted by P(S), is the set of all subsets of S, including the empty set and S itself. For example, if N n = {1, 2, , n}, 1 n 3 , then
P( N1 ) = { ,{1}}, P ( N 2 ) = { ,{1},{2},{1, 2}},

P ( N 3 ) = { ,{1},{2},{3},{1, 2},{1,3},{2,3},{1, 2,3}}.


We see that P( N1 ) = 2 , P( N 2 ) = 4 , P( N3 ) = 8 . Do you think there is a definite pattern? Can you form a bijection with binary sequences to find P( N n ) ? 2. Ordered decomposition of positive integers The number 4 can be expressed as a sum of one or more positive integers, taking order into account, in the following eight ways: 4=4

= 1+ 3 = 3 +1 = 2+2 = 1+1+ 2 = 1+ 2 +1 = 2 +1+1 = 1+1+1+1 Find the number of ways the positive integer n can be expressed in.
3. Find the number of parallelograms which are contained in the configuration of the equilateral triangle below and which have no sides parallel to BC. (Hint: Adjoin a new row at the base of the triangle.) A

B 4.

In a sequence of coin tosses, HT is used to denote the result when a head is followed by a tail. In the sequence THTTHHTHHTTTTTH for 15 coin tosses, we observe that there are exactly two HH, three HT, four TH and five TT subsequences. How many sequences of 15 coin tosses will contain exactly two HH, three HT, four TH and five TT subsequences?

___________________________ Chapter 3 The Bijection Principle Page 6 of 7

Raffles Institution H3 Mathematics 9810 Year 6 2012 __________________________________________

5.

6.

___________________________ Chapter 3 The Bijection Principle Page 7 of 7

You might also like