# Find the least number of objects from a jar when those have two colors

I've been going in circles with this question which belongs to certainty about something. The original source of this problem is unknown. I found it in a textbook who doesn't have an author but rather a collection of riddles about combinatorics and different problems.

The problem is as follows:

A porcelain jar is filled with a set of sphere candies. The baker made them in a peculiar condition, so that one half of the ball shaped candy has a color different from its other half. 24 of those candies has one side colored blue (due a blueberry flavor) and the other half is colored green (due a pear flavor), 30 has one half green and the other half red (due strawberry flavor), 28 has one half red and the other white (due mint flavor), 40 has one half white and other half orange (due orange flavor) and 35 candies has one half orange and the other half blue. How many of these candies must be taken out from the jar at random and at least to affirm that 7 candies share the same color? (Assume that you are not allowed to have a peek inside the jar).

The choices given are:

1. 13
2. 14
3. 15
4. 16

I don't understand "to affirm that 7 candies share the same color". Does it mean I should count other colors whose one half also coincides with the first group?

I'm aware that when there is some uncertainty about something, the procedure is to assume the most difficult to happen scenario or event, and from then on ruling out possibilities until we can assure that our next pick will guarantee what we need.

Examples I saw show this for objects which share entirely one color or shape. But what if they have split colors?

Should I understand that they ask to match the identical ones or match the objects (the candies in this case) which have the same set of colors i.e red and white, with ones which one side red and other which have the other have white, but may have its opposing side with a different color? Can somebody clarify this for me?

In my attempt to solve this problem what I tried to do was this:

Since they ask for 7 candies, then the hardest possibly to happen scenario might be:

6 white and orange +
6 green and red +
1 of any of the remaining group
(could be blue and green or red and white or orange and blue)

Should I count the other half as color to meet the asked condition for 7 candies sharing the same color?

Supposedly the answer is 16 but I don't know how to get there. How to justify this?

The question seems to ask that you need to ensure that in the N candies, you always find some 7 candies have same shared colors, and find the minimum N.

The answer should be 16 due to you can take 3 candies in each type (total 5 types) by considering the worst case. This cause you have all colors with 6 candies shared for each. And plus any candy you will get a 7th shared color for any. Thus the total minimum candies is 3 × 5 + 1 = 16

• I tried to follow your steps but I still don't understand why should it be 3 candies from each of those 5 types and not as I described it?. Can you please offer a detailed explanation or tell what part in my reasoning was not correct?. Wouldn't the worst case scenario be almost reaching 6 of the same colors in both sides and the next pick not getting that color but instead of other?, but with that other having a totally different color combination from the preceding group?. Oct 25, 2019 at 10:25
• @ChrisSteinbeckBell Check the candy distribution, there are just 5 colors will be involved 2 candy types for each(type1:B+G, type2:G+R, type3:R+W, type4:W+O, type5:O+B), so the worst case you just picked 3 candies for each type. This leads to you get total 15 candies and all 5 colors will appear in 6 candies for each. Thus plus one more candy you can assure that you will find a color involved in 7 candies out of total 16 candies. Oct 25, 2019 at 10:36
• I did added in my question the source of my confusion. I don't know if I made myself better clear with that statement, I hope you can help me with that as I'm confused of what's exactly been asked here. Again, why should it be the worst case five of each type and not just six?. What makes $3$ the rationale to choose? Can you add this in a clarification please?. Because this is the part where I'm stuck. Oct 25, 2019 at 11:02
• @ChrisSteinbeckBell The question ask to affirm there must have 7 candies sharing the same color. So the unluckiest case is you draw 3 candies for each type, and there are 5 types, each type has 2 different color, so that every color(B,G,R,W,O) appears only in 6 candies separately. And plus any one candy no matter what the type is, you can get 2 colors sharing in 7 candies. If the answer is 13, then I can make a counterexample that I pick 3(B+G), 3(G+R), 3(R+W), 3(W+O), and 1(O+B), however I still can't get a same color sharing in 7 candies, only 6. Oct 25, 2019 at 14:56
• I'm so sorry to ask again, but can you add some picture or drawing to understand this?. The more I look at it, I can't find exactly a justification for using only 3 and not 6. The way how I see it is okay, he worst case is grabs $6$ but because the objects are split in color then take half of that value hence is $6$, so if the objects would have had three colors then I would consider to use $2$ instead?. But what if it had been $5$ colors?. Nov 2, 2019 at 0:07

I think that where you're getting confused is in the framing of the question. The question is asking for the fewest number of candies we need to take in order to guarantee that 7 candies share a colour.

The scenario you gave results in 7 candies sharing a colour after picking 13 candies out. However, if I can find a scenario where after picking 13 or more candies out of the bag, we do not have 7 candies sharing a colour, then 13 cannot be the correct answer.

If I pick out 15 candies:

• 3 blue/green
• 3 green/red
• 3 red/white
• 3 white/orange
• 3 orange/blue

And then we count the number of candies that have each colour, we get:

• Blue candies: 6 (3 blue/green + 3 orange/blue)
• Green candies: 6 (3 blue/green + 3 green/red)
• Red candies: 6 (3 red/white + 3 green/red)
• White candies: 6 (3 white/orange + 3 red/white)
• Orange candies: 6 (3 orange/blue + 3 white/orange)

So we now know that any answer less than or equal to 15 can't be correct, as we have given a scenario involving 15 candies which does not result in 7 candies sharing a colour.

Given the multiple choice question, we know that the answer must be 16. If we pick out any further candy, no matter the colour, there will be 7 candies of both of the colour groups involved. For example if we now pick out an orange/blue candy, there will be 7 candies sharing orange and 7 candies sharing blue.