Jump To Content

LearnHub




CAT 2009: Pigeon - Hole Principle

Ask The Experts



In this lesson, we will be taking something called "Combinatorics". It is generally the nemesis of many students, especially the ones who do not understand why do we need to arrange something, and that too in some weird way. Well I have sympathy for you, but no matter how chaotic our lives be, we still like to maintain some order, and therein comes the concept of ordering, arranging, partitioning and so on. And all of it come together to make a branch of mathematics called Combinatorics.

It will be injustice to combinatorics, if I write just once lesson, so I will try to write a few more, for the moment, I will pick up one of the darling principles of Combinatorics, known as Pigeon-Hole Principle.

Theorem 1: if n+1 pigeons fly to n holes, there must be a pigeonhole containing at least two pigeons

Well this theorem, look apparently simple and trivial, but its extremely powerful. Lets take a test of it.

Example 1: Let A be any set of nineteen integers chosen from the arithmetic progression 1,4, . . . ,100. Prove that there must be two distinct integers in A whose sum is 104.

Now how do we go about this? remember n and n+1. The hint is to make n+1=19. Something clicked?

see we have 34 numbers of the form 3k+1, from 1 to 100. If we do not want a sum of 104, we will break them in the sets of 2 integers whose sum is 104

{4,100},{7,97}..{49,55} and {1}, {52}. Clearly we have 16 two element sets and 2 one element set.

So if we make a set of 19 integers, we will have to pick both the integers from atleast one of the two element sets, which will give us a sum of 104.

We are done here.

If you still have doubts, let me explain again, suppose you are four friends ( boys) and there are three girls. And each one of you like a girl out of the three. So at least one of the girls will be liked by two boys.

Lets solved a more involved example, wherein we need not prove a thing, but find a thing. Some people may be feeling cat does not want us to prove but find. Here is how we do that.

Example 2: Let there be n balls with Ram. he decides to colour one ball with colour 1, two balls with colour 2 and so on upto, fifty balls with colour 50. At the end of it , all n balls are used, and no ball is coloured twice. Ram then draws balls from the lot at random, without replacement. What is is the minimum number of balls that he must draw in order to gurantee drawing 10 balls of the same color?

What the hell is his problem. Why coloring and then taking out. Stupid chap. Let us help him with the math now.

see if he picks all the balls with colors which are less than 10 it will come upto (1+2+3..+9)=45.

Now for the worst case he will pick 9 balls each from rest of the balls, which is 41 * 9

so total is 41*9+45=41*10+4=414. (avoid multiplying, be watchful)

now if he picks one more ball, atleast one of the set will be of 10. so we are done

he needs to draw 414+1=415 balls.

I would like to thank Mr. David Santos, as I have used his book on number system to make this lesson, but I have tried to add my own flavor to it.

Ask The Experts




  1. monali tanna saidMon, 03 Nov 2008 16:50:21 -0000 ( Link )

    it was fabulous

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  2. muna saidMon, 17 Nov 2008 10:03:11 -0000 ( Link )

    yes it was amazing

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  3. Blues saidWed, 19 Nov 2008 18:27:32 -0000 ( Link )

    Sorry Suresh Bala Iam not able to understand can u be more clearer…in last example it gets messed up

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  4. oLahav saidThu, 20 Nov 2008 16:55:34 -0000 ( Link )

    By the way, great lesson Surresh!

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    2 Total Votes

    Post Comments

  5. phoenixrohan saidThu, 04 Dec 2008 12:42:17 -0000 ( Link )

    I didn’t get the answer to the 1st problem clearly. Can some1 explain it to me?

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  6. oLahav saidThu, 04 Dec 2008 15:11:25 -0000 ( Link )

    Ok, we have the set of integers 1, 4, 7, ... , 97, 100. The form of these integers is 1+3k where k is between 0 to 33, so we have a total of 34 of these integers. Now, we want to break these set into pairs that sum up to 104, and if we have less than 18 groups, then choosing 19 elements mean that we have at least 1 full group in our set, so we have at least one pair that sums of up 104.

    As demonstrated above, we have the pairs (4, 100), (97, 7), ... (we have 16 of these) and 2 single integers, 1 and 52, which don’t add with with anything to 104. Now, if we choose 19 elements trying to avoid the pairs so that we don’t have a sum of 104, we first choose the 2 singles, then 1 element from each pair. Now we have 18 elements that have no sums of 104 in them. But we need one more element, so we must choose it from one of the pairs. Thus in our 19-element set, we must have at least one pair of integers summing up to 104.

    Does this make sense?

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    6 Total Votes

    Post Comments

  7. Avirup saidSun, 07 Dec 2008 13:13:49 -0000 ( Link )

    Damn good explanation but I didn’t get the second explanation.

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  8. nawneet saidSat, 13 Dec 2008 13:05:31 -0000 ( Link )

    THANKS

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  9. neeleshs1 saidSat, 13 Dec 2008 15:21:57 -0000 ( Link )

    it was really mindblowing

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  10. vikram431 saidTue, 16 Dec 2008 19:27:29 -0000 ( Link )

    good problem buddy….....thanks for ur sincere efforts

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  11. kalpesh_sharma saidTue, 23 Dec 2008 07:49:00 -0000 ( Link )

    Good job bro… Thanks

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  12. anildasari saidFri, 26 Dec 2008 12:47:10 -0000 ( Link )

    simply superb.please write few more lessons.

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  13. dhirajdj123 saidTue, 30 Dec 2008 07:12:29 -0000 ( Link )

    Question-—-you have 3 kinds of balls(S,B,L)small,big,large. u paint them (one ball can be painted with 1

    colour only ) randomly with 4 colours (R,G,Y,W)red,green,yellow,white. suppose u put ””N”” balls into 5

    boxes B1,B2,B3,B4,B5. now what should be the least value of N be so that u pickup atleast 3 same balls?

    Answer-—suppose u put 3 balls in each box in the beginning without colour in mind (N=15). now if u put

    another ball in any of the boxes u are sure 2 have atleast 2 balls of the same size in some box. now u put4

    more balls in each box(N=60),if now u put another ball in any ox u are sure 2 have atleast 2 same balls in a

    box. now double this(N=120) and u are sure 2 have atleast 2 same balls in some container and now if u

    put another ball in any container u will be sure of having atleast 3 same balls in some box. so the answer to

    the above question is (N=121)..........i.e((53)4)*2+1=121

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  14. thayi_b4u2009 saidFri, 02 Jan 2009 17:31:24 -0000 ( Link )

    superb

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  15. dessai_saurabh saidSat, 10 Jan 2009 17:55:00 -0000 ( Link )

    awesome man..ppl like u make our cat easier

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  16. santhemaster saidTue, 13 Jan 2009 12:43:43 -0000 ( Link )

    superb

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  17. Invincible Ishan saidThu, 15 Jan 2009 12:09:20 -0000 ( Link )

    thanx 4 this lesson!

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  18. santosh gupta saidTue, 20 Jan 2009 08:23:24 -0000 ( Link )

    u r special sir comes in a different angle

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  19. Sureshbala saidFri, 30 Jan 2009 13:11:23 -0000 ( Link )

    Thank you Santosh…Hope you are doing well….

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  20. hazel_spark saidSun, 08 Feb 2009 16:59:33 -0000 ( Link )

    gr8 lesson… atleast now i noe something abt combinatorix… thanks a lot…:)

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  21. bschool_23 saidSat, 14 Mar 2009 14:24:18 -0000 ( Link )

    dis is awesome..thanx a ton to Suresh !

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  22. funduu saidSat, 30 May 2009 17:46:55 -0000 ( Link )

    superb dude!!!!!!!

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  23. surej saidSun, 31 May 2009 13:48:33 -0000 ( Link )

    it’s great yar

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  24. tanni_chats saidMon, 22 Jun 2009 07:01:59 -0000 ( Link )

    i hve a problm..thr are 27 students who go for swimming on sum days from monday to friday in a certain week…if each pupil goes for swimming atleast twice show that there must be 2 pupils who go swimming exactly the same days///.... please help

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    3 Total Votes

    Post Comments

  25. dieselboy saidTue, 04 Aug 2009 15:15:51 -0000 ( Link )

    Good Job ! Hope you continue really long with this great work !

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  26. jha_avin saidTue, 11 Aug 2009 17:42:12 -0000 ( Link )

    cotent errased as it was replied by mistake.

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  27. sahitya_bits saidFri, 21 Aug 2009 12:27:03 -0000 ( Link )

    how did we get 3k+1 in the first example?

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    2 Total Votes

    Post Comments

  28. rachits21792 saidFri, 09 Oct 2009 10:48:53 -0000 ( Link )

    superb prob sir….... theorem will definatly help us

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  29. meetnaren saidFri, 09 Oct 2009 16:49:35 -0000 ( Link )

    To the question by Tanni_chats: a pupil can go for swimming on 2,3,4 or 5 days. No. of ways of going for 5 days – 1 No. of ways of going for 4 days – 5 No. of ways of going for 3 days – 10 No. of ways of going for 2 days – 10

    Total – 26

    The 27th pupil will have to select any one of these combinations and hence will end up going on the same days as another pupil.

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  30. venkivety saidMon, 26 Oct 2009 06:14:13 -0000 ( Link )

    gud lesson sir…. really ..... I know You are different….

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

Your Comment
Textile is Enabled (View Reference)