https://gowers.wordpress.com/2008/07/30/recognising-countable-sets/

Thanks Dr. Gowers’. These are invaluable insights into basics. Thanks for giving so much of your time.

https://gowers.wordpress.com/2008/07/30/recognising-countable-sets/

Thanks Dr. Gowers’. These are invaluable insights into basics. Thanks for giving so much of your time.

GENERATING FUNCTIONS and RECURRENCE RELATIONS:

The concept of a generating function is one of the most useful and basic concepts in the theory of combinatorial enumeration. If we want to count a collection of objects that depend in some way on n objects and if the desired value is say, , then a series in powers of t such as is called a generating function for . The generating functions arise in two different ways. One is from the investigation of recurrence relations and another is more straightforward: the generating functions arise as counting devices, different terms being specifically included to account for specific situations which we wished to count or ignore. This is a very fundamental, though difficult, technique in combinatorics. It requires considerable ingenuity for its success. We will have a look at the bare basics of such stuff.

We start here with the common knowledge:

….(2i) where sum of the products of the ‘s taken r at a time. …(2ii)

Incidentally, the ‘s thus defined in (2ii) are called the elementary symmetric functions associated with the ‘s. We will re-visit these functions later.

Let us consider the algebraic identity (2i) from a combinatorial viewpoint. The explicit expansion in powers of t of the RHS of (2i) is symbolically a listing of the various combinations of the ‘s in the following sense:

represents all the 1-combinations of the ‘s

represents all the 2-combinations of the ‘s

and so on.

In other words, if we want the r-combinations of the ‘s, we have to look only at the coefficients of . Since the LHS of (2i) is an expression which is easily constructed and its expansion generates the combinations in the said manner,we say that the LHS of (2i) is a Generating Function (GF) for the combinations of the ‘s. It may happen that we are interested only in the number of combinations and not in a listing or inventory of them. Then, we need to look for only the number of terms in each coefficient above and this number will be easily obtained if we set each as 1. Thus, the GF for the number of combinations is n times;

and this is nothing but . We already know that the expansion of this gives as the coefficient of and this tallies with the fact that the number of r-combinations of the ‘s is . Abstracting these ideas, we make the following definition:

Definition I:

The Ordinary Generating Function (OGF) for a sequence of symbolic expressions is the series

…(2iii)

If is a number which counts a certain type of combinations or permutations, the series is called the Ordinary Enumeration (OE) or counting series for for

Example 2:

The OGF for the combinations of five symbols a, b, c, d, e is

The OE for the same is . The coefficient of in the first expression is

(*) abcd+abce+ abde+acde+bcde.

The coefficient of in the second expression is , that is, 5 and this is the number of terms in (*).

Example 3:

The OGF for the elementary symmetric functions in the symbols is ….(2iv)

This is exactly the algebraic result with which we started this section.

Remark:

The fact that the series on the HRS of (2iii) is an infinite series should not bother us with questions of convergence and the like. For, throughout (combinatorics) we shall be working only in the framework of “formal power series” which we now elaborate.

*THE ALGEBRA OF FORMAL POWER SERIES*

The vector space of infinite sequences of real numbers is well-known. If and are two sequences, their sum is the sequence , and a scalar multiple of the sequence is . We now identify the sequence with with the “formal” series

….(2v)

where only means the following:

, .

In the same way, , where corresponds to the formal series:

and

we define: , and .

The set of all power series f now becomes a vector space isomorphic to the space of infinite sequences of real numbers. The zero element of this space is the series with every coefficient zero.

Now, let us define a product of two formal power series. Given f and g as above, we write where

, where .

The multiplication is associative, commutative, and also distributive wrt addition. (the students/readers can take up this as an appetizer exercise !!) In fact, the set of all formal power series becomes an algebra. It is called the algebra of formal power series over the real s. It is denoted by , where means the algebra of reals. We further postulate that in iff for all . As we do in polynomials, we shall agree that the terms not present indicate that the coefficients are understood to be zero. The elements of may be considered as elements of . In particular, the unity 1 of is also the unity of . Also, the element with belongs to , it being the formal power series with and all other ‘s zero. We now have the following important proposition which is the only tool necessary for working with formal power series as far as combinatorics is concerned:

Proposition : 2_4:

The element f of given by (2v) has an inverse in iff has an inverse in .

Proof:

If is such that , the multiplication rule in tells us that so that is the inverse of . Hence, the “only if” part is proved.

To prove the “if” part, let have an inverse in . We will show that it is possible to find in such that . If such a g were to exist, then the following equations should hold in order that , that is,

So we have from the first equation. Substituting this value of in the second equation, we get in terms of the ‘s. And, so on, by the principle of mathematical induction, all the ‘s are uniquely determined. Thus, f is invertible in . QED.

Note that it is the above proposition which justifies the notation in , equalities such as

The above is true because the RHS has an inverse and

So, the unique inverse of is and vice versa. Hence, the expansion of as above. Similarly, we have

and many other such familiar expansions.

There is a differential operator in in , which behaves exactly like the differential operator of calculus.

Define:

Then, one can easily prove that is linear on , and further

from which we get the term “Taylor-MacLaurin” expansion

…(2vi)

In the same manner, one can obtain, from , which in turn is equal to

the result which mimics the logarithmic differentiation of calculus, viz.,

…(2vii)

The truth of this in is seen by multiplying the series on the RHS of (2vii) by the series for , and thus obtaining the series for .

Let us re-consider generating functions now. We saw that the GF for combinations of is .

Let us analyze this and find out why it works. After all, what is a combination of the symbols : ? It is the result of a decision process involving a sequence of independent decisions as we move down the list of the ‘s. The decisions are to be made on the following questions: Do we choose or not? Do we choose or not? Do we choose or not? And, if it is an r-combination that we want, we say “yes” to r of the questions above and say “no” to the remaining. The factor in the expression (2ii) is an algebraic indication of the combinatorial fact that there are only two mutually exclusive alternatives available for us as far as the symbol is concerned. Either we choose or not. Choosing “” corresponds to picking the term and choosing “not ” corresponds to picking the term 1. This correspondence is justified by the fact that in the formation of products in the expression of (2iv), each term in the expansion has only one contribution from and that is either or .

The product gives us terms corresponding to all possible choices of combinations of the symbols and — these are:

standing for the choice “not-” and “not-”

standing for the choice of and “not-”

standing for the choice of “not-” and .

standing for the choice of and .

This is, in some sense, the rationale for (2iv) being the OGF for the several r-combinations of .

We shall now complicate the situation a little bit. Let us ask for the combinations of the symbols with repetitions of each symbol allowed once more in the combinations.

To be discussed in the following article,

Regards,

Nalin Pithwa.

Reference:

Combinatorics, Theory and Applications, V. Krishnamurthy, East-West Press.

Amazon India Link:

https://www.amazon.in/Combinatorics-Theory-Applications-Krishnamurthy-V/dp/8185336024/ref=sr_1_5?keywords=V+Krishnamurthy&qid=1553718848&s=books&sr=1-5

Practice. Practice. Practice.

1) In how many ways, can a total of 16 be obtained by rolling 4 dice once?

2) Calculate the coefficient of in .

3) Observe the identity of answers to Problem 1 and 2. If you think it is a mere coincidence, experiment with other numbers in place of 16 and 4. If you do not think it is a mere coincidence, explain it and go to Problem 4. If you cannot explain its identity, experiment with other numbers.

4) Express the number of ways of obtaining a total of n by rolling p dice, as a certain coefficient in a suitable product of binomial expansion in powers of t. If you cannot do this problem, go to problem 3.

5) Verify that the number of increasing words of length 10 out of the alphabet with is the coefficient of in . Try to explain why this is so.

6) A child has a store of toy letters consisting of 4 A's, 3 B's, and 2 E's. (6a) How many different increasing four-letter words (given A<B<E) can it make? The child does not worry about the meanings of the words. (6b) Show that there exists a bijection between the set of increasing four-letter words of all possible lengths and the set of terms of the expansion . (6c) Can you obtain the answer to (6a) as certain numerical coefficient in a suitable expansion of products?

7) The Parliament of India, in which there are n parties represented, wants to form an all-party committee (meaning, a committee in which there is at least one member from each party) of members. Assuming (a) that there exist sufficient members available for the committee in each party and (b) that the members of each party are indistinguishable among themselves(!), find the number of distinct ways of forming the committee. Show that this number may be expressed as a suitable coefficient in the binomial expansion of

8) Find the number N of permutations of the multiset taken three at a time. If you have to express N as the coefficient or or (the choice is yours) in the expansion of one of

8a)

8b)

8c)

8d)

which one would you choose? Can you justify your choice without using the value of N?

9) A family of 3, another family of 2, and two bachelors go for a joy ride in a giant wheel in which there are three swings A, B, C. In how many ways can they be seated in the swings (assuming there are sufficient number of seats in each swing) if the families are to be together? List all the ways.

10) n lines in a plane are in general position, that is, no two are parallel and no three are concurrent. What is the number of regions into which they divide the plane?

11) If is a sequence of numbers satisfying , find , given that and .

12) If is the number of ways in which we can place parentheses to multiply the n numbers on a calculator, find in terms of the ‘s where .

13) A graph is a set V of vertices a, b, c, , together with a set of edges . If is considered the same as , we say this graph is undirected. Otherwise, the graph is said to be directed, and we say ‘(a,b) has a direction from a to b’. The edge is called a loop. The graph is said to be of order .

If the edge-set E is allowed to be a multiset, that is, if an edge is allowed to occur more than once (and this may be called a ‘multiple edge’), we refer to the graph as a general graph.

and denote the numbers of undirected (respectively,directed) loopless graphs of order 5, with n edges, none of them a multiple edge, find the series and .

Cheers,

Nalin Pithwa.

1) In how many ways can 5 men and 5 women be seated in a round table if no two women may be seated side by side?

2) Six generals propose locking a safe containing top secret with a number of different locks. Each general will be given keys to certain of these locks. How many locks are required and how many keys must each general have so that, unless at least four generals are present, the safe cannot be opened?

3) How many integers between 1000 and 9999 inclusive have distinct digits? Of these, how many are even numbers? How many consist entirely of odd digits?

4) In how many ways can 9 distinct objects be placed in 5 distinct boxes in such a way that 3 of these boxes would be occupied and 2 would be empty?

5) In how many permutations of the word AUROBIND do the vowels appear in the alphabetical order?

6) There is an unlimited supply of weights of integral numbers of grams. Using n or fewer weights, find the number of ways in which a weight of m grams can be obtained. Prove that there is a bijection of the set of all such ways on the set of increasing words of length or ordered letters.

7) How many distinct solutions are there of (a) in positive integers and (b) in non-negative integers?

8) A train with n passengers aboard makes m stops. In how many ways can the passengers distribute themselves among these m stops as alighting passengers? if we are concerned only with the number of alighting passengers at each stop, how would the answer be modified?

9) There are 16 books on a bookshelf. In how many ways can 6 of these books be selected if a selection must not include two neighbouring books?

10) Show that there are distinct throws of a throw with n non-distinct dice.

11) Given n indistinguishable objects and n additional distinct objects —- also distinct from the earlier n objects — in how many ways can we choose n out of the 2n objects?

12) Establish the following relations:

12a)

12b)

12c)

12d)

13) Prove the following identity for all real numbers x:

14) Express in terms of , , …by using the ‘s. Express in terms of , , …by using the ‘s.

15) A circular loop is divided into p parts, p prime. In how many ways can we paint the loop with n colours if we do not distinguish between patterns which differ only by a rotation of the loop? Deduce Fermat’s Little theorem: is divisible by p if p is prime.

16) In problem 15, prove that is also divisible by 2p if . Where is the hypothesis that p is prime used in Problem 15 or in this problem?

17) How many equivalence relations are possible on an n-set?

18) The complete homogeneous symmetric function of n variables , , , of degree r is defined as the summation being taken over all ordered partitions of r, where the parts are also allowed to be zero. How many terms are there in ?

Test yourself ! Improve your mettle in math !

Regards,

Nalin Pithwa.

1) How many maps are there from an n-set to an m-set? How many of these are onto? How many are one-one? Under what conditions?

2) Consider the letters of the word DELHI. Let us form new words, whether or not meaningful, using these letters. The *length* of a word is the number of letters in it, e.g., the length of “Delhi” is 5; the length of “Hill” is 4. Answer the following questions when (a) repetition of letters is not allowed and (b) repetition of the letters is allowed:

(i) How many words can be formed of length 1,2,3,4,…?

(ii) How many words in (i) will consist of all the letters?

(iii) How many words of the words in (i) will consist of 1,2,3,4, …specified letters?

(iv) How many of the words in (i) will consist of only 1,2,3,4,…letters?

(v) How many of the words in (i) will be in the alphabetical order of the letters?

3) Repeat Problem 2 with the word MISSISSIPPI.

4) Suppose there are 5 distinct boxes and we want to sort out 1,2,3,…,n objects into these boxes.

4i) In how many ways can this be done?

4ii) In how many of these situations would no box be empty?

4iii) In how many of the above would only 1,2,3,4 … specified boxes be occupied?

4iv) In how many would only 1,2,3,4…boxes be occupied?

4iv) If the objects are indistinguishable from one another, how would the answers to (i) to (iv) change, it at all?

If there is an added restriction that each box can hold only one object and no more, what will be the answers to (i) to (v)?

5) Repeat Problem 4 with 9 boxes.

6) Repeat Problem 4 with 5 non-distinct (=indistinguishable identical) boxes.

7) Repeat Problem 6 with 9 boxes.

8) How many 5-letter words of binary digits are there?

9) Ten teams participate in a tournament. The first team is awarded a gold medal, the second a silver medal, and the third a bronze medal. In how many ways can the medals be distributed?

10) The RBI prints currency notes in denominations of One Rupee, Two Rupees, Five Rupees, Ten Rupees, Twenty Rupees, Fifty Rupees, and One hundred rupees. In how many ways can it display 10 currency notes, not necessarily of different denominations? How many of these will have all denominations?

11) In how many ways can an employer distribute INR 100/- as Holiday Bonus to his 5 employees? No fraction of a rupee is allowed. Also, do not worry about question of equity and fairness!

12) The results of 20 chess games (win, lose, or draw) have to be predicted. How many different forecasts can contain exactly 15 correct results?

13) How many distinct results can we obtain from one throw of four dice? five dice? Can you generalize this?

14) In how many ways can 8 rooks be placed on a standard chess board so that no rook can attack another? How many if the rooks are labelled? How would the answer be modified if we remove the restriction that “no rook can attack another”?

15) Show that there are 7 partitions of the integer 5, and 33 partitions of the integer 9. How many of these have 4 parts ? How many have the largest part equal to 4? Experiment with other partitions and other numbers.

Cheers,

Nalin Pithwa.

**Question 1:**

Show that in any group of 6 people there will always be a subgroup of 3 people who are pairwise acquainted or a subgroup of 3 people who are pairwise strangers.

**Solution 1:**

Let be a group of 6 people. Suppose that the people known to A are seated in room Y and the people NOT known to A are seated in room Z; A is not in either room. Then, there are necessarily at least 3 people in either room Y or in room Z; (a) Suppose B, C, D to be in room Y. Either these 3 people are mutual strangers (and so the given theorem is true), or, at least two of them (say, B and C) know each other. In the latter case, A, B and C form a group of 3 mutual acquaintances — and again, the theorem is true. (b) In (a), replace room Y by Z and interchange the notion of ‘”acquaintances” and “strangers”‘.

**Question 2:**

Show that in any group of 10 people there is always (a) a subgroup of 3 mutual strangers or a subgroup of 4 mutual acquaintances, and (b) a subgroup of 3 mutual acquaintances or a subgroup of 4 mutual strangers.

**Solution 2:**

(a) Let A be one of the ten people; the remaining 9 people can be assigned to two rooms: those who are known to A are in room Y and those who are not known to A are in room Z. Either room Y has at least 6 people or room Z has at least 6 people. For, (i) suppose room Y has at least 6 people. Then, by previous problem number 1, there is either a subgroup of 3 mutual acquaintances or a subgroup of 3 mutual strangers (thus, the theorem is true) in this room. In the former case, A and these 3 people constitute 4 mutual acquaintances (ii) Suppose room Z has at least 4 people. Either these 4 people know one another or at least 2 of them, say B and C, do not know each other. In the former case, we have a subgroup of 4 mutual acquaintances. In the latter case A, B and C constitute 3 mutual strangers.

(b) In the previous scenario, let people who are strangers become acquaintances, and let people who are acquaintances pretend they are strangers. The situation is symmetric.

**Question 3:**

Show that in any subgroup of 20 people there will always be either a subgroup of 4 mutual acquaintances or a subgroup of 4 mutual strangers.

**Solution 3:**

Suppose A is one of these 20 people. People known to A are in room Y and people not known to A are room Z. Either room Y has at least 10 people or room Z has at least 10 people. (i) If Y has at least 10 people, then by part B of problem number 2 here, there is either a subgroup of 3 mutual acquaintances or a subgroup of 4 mutual strangers — as asserted — in this room. In the former case, A and these mutual acquaintances will form a subgroup of 4 mutual acquaintances. (ii) Switch ‘”acquaintances” and “strangers”‘ in (i).

**Question 4:**

Let p and q be 2 positive integers. A positive integer r is said to have the **(p,q) – Ramsey property, **if in any group of r people either there is a subgroup of p people known to one another or there is a subgroup of q people not known to one another. {By **Ramsey’s theorem, **all sufficiently large integers r have the (p,q)-Ramsey property.} The smallest r with the (p,q)-Ramsey property is called the **Ramsey number **R(p,q). Show that (a) R(p,q) = R (q,p). (b) , and (c) R(p,2)=p.

**Solution 4:**

(a) By parts (b) of the previous three questions, we have proved part a of the proof here.

(b) This is obvious.

(c) In any group of p people, if all of them are not known to one another, there will be at least 2 people who do not know each other.

**Question 5:**

Prove that .

**Solution 5:**

Question 1 and its proof in this blog article imply that .

To prove that , it is sufficient to consider a seating arrangement of 5 people about a round table in which each person knows only the 2 people on either side. In such a situation, there is no set of 3 mutual acquaintances and no set of 3 people not known to one another.

**Question 6:**

Show that if m and n are integers both greater than 2, then

.

(this recursive inequality gives a non-sharp upper bound for R(m,n)).

**Solution 6:**

Let , and . Consider a group of r people. Let L be the set of people known to person 1 and M be the set of people NOT known to person 1. The two sets together have people, so either L has at least p people or M has at least q people. (a) If L has people, then, by definition, it contains a subset of people known to one another or it contains a subset of n people unknown to one another. In the former case, the people and person 1 constitute m people known to one another.

Thus, in their case, a group of people necessarily includes m mutual acquaintances or n mutual strangers. That is, .

(b) By the usual symmetry argument, the same conclusion follows when M contains q people.

**Question 7:**

*(Remark: A pretty property of Ramsey numbers related to combinatorics).*

Show that if m and n are integers greater than 1, then — a non-recursive upper bound.

**Solution 7:**

When , or , (i) holds with equality (see problem 4 in this blog article). The proof is by induction on . As we have just seen, the result is true when . Assume the result true for . Then,

and

Now, Pascal’s identity gives:

so that

But, from the previous question and its solution, we get

*PS: As Richard Feynman, used to say, you will have to “piddle” with smallish problems as particular cases of these questions in order to get a grip over theory or formal language of this introduction.*

PS: Additionally, you can refer to any basic Combinatorics text like Brualdi, or Alan Tucker or even Schaum Series outline ( V K Balakrishnan).

**Question 1:**

Find the number of proper divisors of 441000. (A proper divisor of a positive integer n is any divisor other than 1 and n):

**Solution 1:**

Any integer can be uniquely expressed as the product of powers of prime numbers (Fundamental theorem of arithmetic); thus, . Any divisor, proper or improper, of the given number must be of the form where , , , and . In this paradigm, the exponent a can be chosen in 4 ways, b in 3 ways, c in 4 ways, d in 3 ways. So, by the product rule, the total number of proper divisors will be .

**Question 2:**

Count the proper divisors of an integer N whose prime factorization is:

**Solution 2:**

By using the same reasoning as in previous question, the number of proper divisors of N is , where we deduct 2 because choosing all the factors means selecting the given number itself, and choosing none of the factors means selecting the trivial divisor 1.

**Question 3:**

Find the number of ways of factoring 441000 into 2 factors, m and n, such that , and the GCD of m and n is 1.

**Solution 3:**

Consider the set associated with the prime factorization of 441000. It is clear that each element of A must appear in the prime factorization of m or in the prime factorization of n, but not in both. Moreover, the 2 prime factorizations must be composed exclusively of elements of A. It follows that the number of relatively prime pairs m, n is equal to the number of ways of partitioning A into 2 unordered nonempty, subsets (unordered as mn and nm mean the same factorization; recall the fundamental theorem of arithmetic).

The possible unordered partitions are the following:

,

and

Hence, the required answer is .

**Question 4:**

Generalize the above problem by showing that any integer has factorizations into relatively prime pairs m, n ().

**Solution 4:**

Proof by mathematical induction on k:

For , the result holds trivially.

For , we must prove that a set of k distinct elements, has sets. Now, one partition of Z is

All the remaining partitions may be obtained by first partitioning W into two parts — which, by the induction hypothesis, can be done in ways — and then, including in one part or other — which can be done in 2 ways. By the product rule, the number of partitions of Z is therefore

. QED.

*Remarks: Question 1 can be done by simply enumerating or breaking it into cases. But, the last generalized problem is a bit difficult without the refined concepts of set theory, as illustrated; and of course, the judicious use of mathematical induction is required in the generalized case. *

Cheers,

Nalin Pithwa.