Combinatorics - Pigeonhole Principle

In summary: The first possibility is not possible because there is no common element, a1+a2+a3+a4 = 1.The second possibility is possible, but we have already used it up. The third possibility is possible, but we have already used it up. The fourth possibility is possible, and this is the answer.
  • #1
mattmns
1,128
6
I have two Pigeon Hole Principle questions that I am having trouble with.

First Question: In a room there are 10 people, none of whom are older than 60, but each of whom is at least 1 year old. Prove that one can always find two groups of people (with no common person) the sum of whose ages is the same.
-------

So I let [itex]a_i[/itex] = age of person i, i = 1,2,...,10.

Thus [itex]1 \leq a_i \leq 60[/itex] for i = 1,2,...,10

we can also assume that [itex]a_i \neq a_j \forall i \neq j[/itex] since if there were two (or more) that were equal then we would be done.

The book has the following hint: The number of sums that can be formed with 10 numbers is [itex]2^{10} - 1[/itex]. No sum can exceed 600

Now I understand how they got these hints. For the first, you can use the idea of a Powerset, and the number of elements in P(S) = 2^n (2^n - 1 if you subtract the empty set, n is the number of elements in S). And 600 is obvious since 60x10 = 600 the max (though we could do more to show that the sum is actually lower; it is easy to show that the sum cannot exceed 555 (and it is even lower than that) and also that the sum must exceed 55, (and is even higher than that)).

However, I am not sure of how to use the first hint. There is obvious overcounting, and also we are interested in two groups (or subsets if we want to stick with that idea) whose sums are equal. The 2^n - 1 includes the sum of all 10, which should not be in there, it also includes things that repeat, like a1+a2 = a1, a1+a2+a3 = a1+a2, etc. Do I need to then count these things (and then subtract them from 2^10 - 1), and if so what would be an efficient way (I can think of the brute force way, but I would not want to have to do that :smile:)? Any ideas?
-------------------
Second Question: Use the pigeonhole principle to prove that the decimal expansion of a rationl number m/n eventually is repeating.
------

Now I am guessing they are also including decimal expansions that terminate (for example 3/4 = .75)

Let us again look at the book's hint: What are the possible remainders when an integer is divided by n?

The answer to this question is: 1, 2, 3, ..., n-1

So we have n-1 possible remainders, but I don't yet see what we can do with this.

So how about the following question: If I have m/n, how do I get the decimal expansion of this number? (I am guessing we will keep on dividing somewhere and that is where the remainders will come into play, but I don't know how to get a decimal expansion.) Any help would be appreciated, thanks!
 
Last edited:
Physics news on Phys.org
  • #2
For the first one, I'm not sure what you mean by "it also includes things that repeat, like a1+a2 = a1, a1+a2+a3 = a1+a2, etc." All you need to do is find two subsets which have the same sum. Since there are more subsets than possible sums, this is where the pigeonhole principle comes in. And the requirement that the subsets have no members in common shouldn't be too hard to accommodate if you give it a moment of thought.

For the second, you get the decimal expansion of a rational number using long division. The key point is to notice what happens when some remainder comes up a second time. Actually, I don't think this proof uses the pigeonhole principle, so maybe they're looking for something else.
 
Last edited:
  • #3
Thanks for the response(s).

For the first, I meant that the number 2^n - 1 includes too much, but I was wrong (I was thinking wrong about what the count was representing), though I think the number should be 2^n - 2, to remove adding all n numbers together. So now the pigeonhole principle clearly applies and the problem is easily solved. The issue of common members is obvious, unless I am mistaken; if we have the same member in two sets, just remove it from both and the sums are still equal, repeat if there are more than 1 common member in each set.

For the second, I will look into the decimal expansion by long division, and see where that goes. Thanks!
 
  • #4
Wait, I am not so sure about the first anymore, but I still think the number is greater than 2^n - 2, so it would not be an issue.

Consider n = 4. {a1, a2, a3, a4}
We have the following possibilities.
a1 = a2, a1 = a3, a1 = a4, a1 = a2+a3, a1 = a2+a4, a1 = a3+a4, a1 = a2+a3+a4
a2 = a3, a2 = a4, a2 = a1+a3, a2 = a1+a4, a2 = a3+a4, a2 = a1+a3+a4
a3 = a4, a3 = a1+a2, a3 = a1+a4, a3 = a2+a4, a3 = a1+a2+a4
a4 = a1+a2, a4 = a1+a3, a4 = a2+a3, a4 = a1+a2+a3

Here there are actually 21 ways, not 2^4 - 1 = 15 (or 14 if you subtract 2).
 
  • #5
2^10-1 refers to the number of (non-empty) subsets of the ten people. Each of these subsets corresponds to some number between 1 and 600 via taking the sum of the ages of the people in the subset, and since there are more subsets than possible sums (more pigeons than holes), the pigeonhole principle states that some two subsets must have the same sum (you need to put two pigeons in the same hole).
 
  • #6
The question you need to ask is how many paired groups can you make from 10 people(note two things: you listed one restriction from the first post, the second thing is that you need to ask whether the size sum of the two groups need always be 10).

StatusX: you are forgetting one of the criterias above.
 
Last edited:
  • #7
Ahh, I feel better now, thanks for the clarification!
 
  • #8
For the 2nd question...find out what happens to the rationals
i/n, i=0-n-1.
 
  • #9
You have a set [tex]S_n[/tex]of [tex]n[/tex] elements. Let [tex]A_n[/tex] be the set of all possible combinations (groups to be summed) of the elements of [tex]S_n[/tex]. Let [tex]z_n[/tex] be the number of elements in [tex]A_n[/tex].

Now suppose you have a new set [tex]S_{n+1}[/tex] that consists of [tex]S_n[/tex] and a new element [tex]s_{n+1}[/tex]. [tex]z_{n+1}[/tex] is the number of elements in [tex]A_{n+1}[/tex].

The elements of [tex]A_{n+1}[/tex] are the elements of [tex]A_n[/tex], [tex]a_{n+1}[/tex] plus each element of [tex]A_n[/tex], and [tex]a_{n+1}[/tex] itself. So [tex]z_{n+1}=2 z_n +1[/tex]. From this, you can prove by induction that the number of combinations formed from the elements of [tex]S_n[/tex] is [tex]z_n=2^n-1[/tex].

You don't have to worry about whether anything repeats. This is the total number of groups of people. If each group had a distinct age sum, then the total number of possible age sums would have to be at least [tex]z_n[/tex]. You know that the age sums can vary from 10 to 600, which is 591 total. Now show how the pigeon-hole principle applies. Since 591 < 1023, you don't need to go reducing the number of possible age sums by saying, "600 doesn't work, so the new total is 590, etc." The moral of this problem is: don't go making problems too complicated before trying simple methods. (Thanks to the hint, this was a pretty simple problem).
 
  • #10
however you are not comparing 591 or 600 to 1023...
 
  • #11
neurocomp2003 said:
StatusX: you are forgetting one of the criterias above.
No he's not--if you have any two unrestricted (different) sets of people with the same sum, you can delete the shared people and the sums will still be equal.
 
  • #12
Orthodontist: but it then becomes whether, the two groups must union to all 10 people or not. If both groups union to 10 people then you do have to take the restriction into consideration...if not say two groups totalling 9 people...then statusX method would suffice.
 
  • #13
If the two groups must comprise all the people, the statement isn't true. In order for the sums to be equal in that case, if S is the sum of all 10 people, then if n is the sum of a subset of people satisfying the condition, you must have n = S - n, or n = S/2. This is only possible if S is even. The list of ages 1, 1, 1, 1, 1, 1, 1, 1, 1, 2 is a counterexample.
 
  • #14
yeah i realized that...my bad.
 

1. What is the Pigeonhole Principle?

The Pigeonhole Principle is a fundamental principle in combinatorics that states that if there are more objects than there are containers to put them in, then at least one container must contain more than one object.

2. How is the Pigeonhole Principle applied in combinatorics?

The Pigeonhole Principle is often used to prove the existence of certain patterns or arrangements in a given set of objects. It is also used to show that there are no solutions to certain problems, by demonstrating that there are more objects than there are possible solutions.

3. Can you give an example of the Pigeonhole Principle in action?

One example of the Pigeonhole Principle is the "birthday problem", which asks how many people need to be in a room before there is a greater than 50% chance that two people share the same birthday. The answer is surprisingly low - only 23 people are needed to have a greater than 50% chance of a shared birthday, due to the principle that there are only 365 possible birthdays but more than 23 people in a room.

4. What is the relationship between the Pigeonhole Principle and probability?

The Pigeonhole Principle is closely related to probability, as it deals with the likelihood of certain outcomes based on the number of possible options. It is often used in probability problems to determine the likelihood of certain events occurring, based on the number of possible outcomes.

5. Are there any limitations to the Pigeonhole Principle?

While the Pigeonhole Principle is a useful tool in combinatorics, it does have limitations. It cannot be used to determine the exact number of objects in a set, and it also assumes that all objects are equally likely to be placed in any given container. Additionally, it does not take into account any other constraints or conditions that may affect the distribution of objects. Therefore, it should be used with caution and in conjunction with other techniques in combinatorics problem-solving.

Similar threads

  • Calculus and Beyond Homework Help
Replies
12
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
371
  • Calculus and Beyond Homework Help
Replies
32
Views
2K
  • Calculus and Beyond Homework Help
Replies
14
Views
519
  • Calculus and Beyond Homework Help
Replies
4
Views
303
  • Calculus and Beyond Homework Help
Replies
16
Views
558
  • Calculus and Beyond Homework Help
Replies
1
Views
599
  • General Math
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
7
Views
1K
Replies
12
Views
878
Back
Top