Combinatorics 14
Combinatorics 14
Combinatorics 14
Lecture 13
Department of Mathematics
Indian Institute of Technology Delhi
Solution:
The problem is equivalent to finding: given a multiset
{∞ · x1 , ∞ · x2 , ∞ · x3 , ∞ · x4 }, how many finite submultisets does it
have of size 20?
4+20−1 23
Thus, there are 4−1 = 3 number of submultisets of size 20.
23
Therefore, the equation has 3 number of solution.
Problem 3
Find the number of solutions to x1 + x2 + x3 + x4 = 20 with x1 ≥ 0,
x2 ≥ 1, x3 ≥ 2 and x4 ≥ −1. integers?
Proof:
We prove the principal via contradiction.
If possible the statement ‘some hole contains at least two pigeons’ is
not true.
Then each hole contains at most one pigeon.
Then the total number of pigeons is at most 1 + 1 + · · · + 1 = n, a
contradiction.
This proves the pigeonhole principle.
Solution:
Label the 12 months with holes and label 13 people with pigeons.
By the Pigeonhole Principle, some hole contains at least two pigeons,
i.e., some month is shared by at least two people.
Problem 2
Suppose 5 pairs of socks are in a drawer. Picking 6 socks guarantees that
at least one pair is chosen.
Solution:
Consider the 5 pairs of socks are colored by 1, 2, 3, 4 and 5.
Label the 5 colors with 5 holes and label the socks with pigeons.
If we select 6 socks then, by the Pigeonhole Principle, some color
must be obtained by at least two socks.
Thus, picking 6 socks guarantees that at least one pair is chosen.
(Maths Dept., IIT Delhi) MTL180 - Discrete Mathematical Structures, Tutorial-1 7 / 11
Lemma
Suppose a1 , . . . , an are integers. Then some “consecutive sum”
ak + ak+1 + ak+2 + · · · + ak+m is divisible by n.
Proof:
Consider these n sums: s1 = a1 ; s2 = a1 + a2 ; s3 = a1 + a2 + a3 ; · · · ;
s n = a1 + a 2 + · · · + an
If one of them is divisible by n then we are done.
If not, then let ri be the reminder when si is divided by n for
1 ≤ i ≤ n, where 1 ≤ ri < n.
Here r1 , r2 , . . . , rn can take only n − 1 values (as 1 ≤ ri < n).
Label 1, 2, . . . , n − 1 by holes and label r1 , r2 , . . . , rn by pigeons.
Thus, by the the Pigeonhole Principle, some number must be
attended by at least two ri ’s, say ri and rj .
Without loss of generality, assume 1 ≤ i < j ≤ n, then ri = rj .
Then sj − si = ai + ai+1 + · · · + aj is divisible by n.
(Maths Dept., IIT Delhi) MTL180 - Discrete Mathematical Structures, Tutorial-1 8 / 11
Chinese Remainder Theorem
If m and n are relatively prime, and 0 ≤ a < m and 0 ≤ b < n, then there
is an integer x such that x = a (mod m) and x = b (mod n).
Proof:
Consider the integers a, a + m, a + 2m, . . . , a + (n − 1)m, each with
remainder a when divided by m. consider n integers
Proof:
We prove this via contradiction.
If possible, let the statement is not true.
Then the total number of objects in the boxes is at most
(r1 − 1) + (r2 − 1) + (r3 − 1) + · · · + (rn − 1) = ( ni=1 ri ) − n < X .
P
Corollary
Suppose r > 0 and X ≥ n(r − 1) + 1 objects are placed into n boxes.
Then some box contains at least r objects.
Proof:
Apply the previous theorem with ri = r for all i.
(Maths Dept., IIT Delhi) MTL180 - Discrete Mathematical Structures, Tutorial-1 11 / 11