r/MathHelp • u/DerMatze1 • Oct 23 '21
How can I proof the statement that when I have 10a and 10b and Place them in a random order there‘s always a row consisting of 5 consecutive a’s and b‘s
Hey, would be great if you could help me out with this exercise:
I have 10 apples and 10 pears. If I arrange them in a random order there is always a row of 10 consecutive fruits consisting of 5 apples and 5 pears.
How do I proof that mathematically? I tried writing some of the outcomes down and can therefore confirm that the statement is true for those. But if I’m correct then there are 20!(10!*10!)/2 (92.378) possible ways to order them. That‘s way too many solutions to write down.
Help is much appreciated. Thanks in advance.
1
u/DerMatze1 Oct 23 '21
Thanks for all the answers. It seems like my translation from the source material lead to some confusion. Sorry for that (source is German).
To give you more details:
I need to place the 10 apples and 10 pears in a row. The order of the placement doesn‘t matter. Once I placed all 20 fruits there will always be a part of the row that consists of 5 apples and 5 pears. No matter in which order I placed those fruits in that row. I need to proof why.
I already tried it like this (apple 1, pear 2) 11111(1111122222)22222
(1212121212)1212121212
1122112(2112211221)122
But I can‘t list all 92k possible solutions, I need to somehow proof it otherwise. But I can‘t think of any formula or approach to show that the order doesn‘t matter and that there will always be a part consisting of 5 apples and 5 pears.
3
u/LollipopLuxray Oct 23 '21
Take any lineup.
Count the first 10 fruits. You will find k apples, and 10-k pears.
Then count the last 10 fruits. You will find 10-k apples, and k pears.
How do you get from one state to the other as you choose the 2nd 10 fruits x(xxxxxxxxxx)xxxxxxxxx and then the 3rd 10 fruits xx(xxxxxxxxxx)xxxxxxxx and so on?
2
2
u/LollipopLuxray Oct 23 '21
Take a random lineup. Determine how many apples and pears there are in the first 10 fruit. Then do the same with the last 10 fruit. I'm sure you can figure it out from there.
1
u/AutoModerator Oct 23 '21
Hi, /u/DerMatze1! This is an automated reminder:
What have you tried so far? (See Rule #2; to add an image, you may upload it to an external image-sharing site like Imgur and include the link in your post.)
Please don't delete your post. (See Rule #7)
We, the moderators of /r/MathHelp, appreciate that your question contributes to the MathHelp archived questions that will help others searching for similar answers in the future. Thank you for obeying these instructions.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/chien-royal Oct 23 '21
If I arrange them in a random order
Like, in a circle? Also, "random" should be replaced with "arbitrary". This problem is not about probability theory.
1
u/fermat1432 Oct 23 '21
I don't get this. Couldn't you get 10 apples followed by 10 pears?
3
u/Katterin Oct 23 '21
If I understand this correctly, a better way to state the problem would be that somewhere in the sequence of 20, there will be a subsequence of 10 that has 5 apples and 5 pears. In your example, it would be positions 6 through 15 - the last 5 apples and the first 5 pears.
1
2
u/Katterin Oct 23 '21
For each sequence of 20 items, there are 11 possible subsequences of 10 items: the first is position 1 to 10 of the full sequence, and the last one is position 11 to 20. Let’s consider the total number of apples and pears that could be in each subsequence. First, an example: let’s assume we had 10 pears in a row followed by 10 apples in a row. Then the subsequences would look like:
There are a couple of things that will always be true:
For any given subsequence, the number of apples must be equal to 10 minus the number of pears.
The number of apples and pears in subsequence 11 must always be the exact reverse of subsequence 1.
Every time I move down one subsequence, either the number of pears and apples remains the same, or it changes in either direction by 1. There is no other possibility.
In other words, if x is the number of apples in subsequence 1, I can start my table like this:
If x is 5, then the subsequence of 5 apples and 5 pears is easy to find at the beginning and end of the table. If x is greater than 5, then 10-x must be less than 5, and vice versa. In other words, if I have more than 5 apples at the top of the table, I have fewer than 5 apples at the bottom.
This gets us almost the way there. In light of the subreddit rules, can you get the rest of the way there using statement 3 above?