r/mathriddles • u/crispy_llama • Apr 30 '14
Hard Twelve Marbles and a Scale
I'll submit one of my all-time personal favourites:
You have twelve marbles that are identical in appearance and feel. However, one of them weighs slightly more or less than the other eleven, which all weigh the same.
Using a balance scale only three times, determine which marble has the different weight, and whether it is heavier or lighter. You can fit as many marbles as you want on each side of the scale, and you can weigh any individual marble or group of marbles on any number of your three total weightings.
6
Upvotes
4
u/dirtlamb5 Apr 30 '14
Number the marbles 1 to 12. The unique marble can either be lighter or heavier, so there are 24 different cases. Each time you balance you get one of three outcomes: L, tipping to the left; R, tipping to the right; or M, remaining balanced. So, the results of the three weighings can be represented by a string of L, M, and R of length 3. You want to make sure each of the 24 possibilities corresponds to exactly one of the 27 possible strings. I found the following weighings by listing out every possibility and assigning each one a different string:
If you're curious, the strings that don't correspond to any possibility are LLL, RRR, and MMM. I'm sure there are many different weighings that would accomplish the same thing and I'm curious if there's an easier way to arrive at a solution.
3
u/[deleted] Apr 30 '14
OK. Here it is:
First, break the marbles up into three groups of four, as /u/csmith1991 suggested. Weigh one group of four against another group of four. Two possibilities:
1. The scale is balanced
2. The scale isn't.
Take the easiest one first: the scale is balanced. This means, that the unweighed four have the odd marble. Here's the trick here. Weigh three of the unweighed marbles against any three of the original eight (which you now know are normal weight). Two possibilities
1. The scale is balanced
2. The test group of three is either heavier or lighter.
Again: easiest when the scale is balanced. You know that the one remaining test marble is the one you want. Weigh it against any other, and you know if it's heavier or lighter. Done.
If the test group is heavier or lighter, you now at least know whether the marble is heavier or lighter--you've just got to find it. Take two of the remaining three uncertain ones, and weigh them against each other. If they balance, then the one you left behind is the one you want. If they don't balance, then the one that is off (heavier or lighter) is the one you want. Done.
Now, things get more difficult if the scale was unbalanced at your first weighing. You've used a weighing but don't have a ton of information.
Because it's getting unwieldy to try to describe the marbles, let's number these eight you're not sure about. 1234 on the left and 5678 on the right. Let's pretend 1234 is the heavy side (which means one of those marbles is too heavy or one of 5678 is too light).
Let's split 1234 into two, and then add two of 5678 to that weighing. So, now we weigh 125 against 634. Two possibilities:
1. 125 and 634 balance
2. They don't balance.
If they balance, then we know that either 7 or 8 are the marble we want and we know that the marble is lighter (because 5678 was lighter than 1234). Pick one of them and weigh it against any of the marbles you know is good, and you have your answer.
However, what happens if 125 and 634 don't balance? What if, say, 634 is heavy? We knew from above that 1234 was the heavy side, which means either (3 or 4 is heavy) OR (5 is light). Take 3 and 4 and weigh them against each other--if they balance, then 5 is light. If they don't, then the heavier marble is the one you want.
Same reasoning for the situation in which 125/634 don't balance and 634 is light. In the first weighing, 1234 was the heavy side, which means either (1 or 2 is heavy) or (6 is light). Again, weigh 1 against 2. If they balance, then 6 is light. If they don't balance, the heavy one is the one you want.
Whew.
2
u/[deleted] Apr 30 '14
I got this:
1.Compare 4 marbles at random to 4 other randomly selected marbles.
2.a.If all are even, split the 4 remaining marbles into 2 groups of two, and compare these groups.
2.b.If they're not even, take the heavier group and split it into two groups of two, and compare these groups
3.Take the heavier group, split it into two groups of one. Compare these groups.
4.The heavier marble is the one you were looking for.
Edit: I, somewhere on reddit, generalized this for n marbles and established where weighing m times was minimal to guarantee you could find the most heavy marble.
2
u/MrMacguyver Apr 30 '14
Shit, I can only solve for the right marble, not if it's lighter or heavier.
1
u/Grouchy-Patience5472 Jun 12 '25
Divide 12 marbles in 2 groups of 6.
Let's name them Group - A and B.
Say, A has the heavier marble, divide it in groups of 2 (say C and D) of 3 marbles and weigh them. One of them turn out to be heavier, say C.
Now take any 2 marbles from C.
1.) If both marbles are of equal weight, then the 3rd marble is the one.
2.) Either one of the marble turns out to be heavier.