
TL;DR
This paper explores coin-weighing problems using a 5-way scale, demonstrating that it can identify two fake coins among 2^k coins in fewer weighings than a 3-way scale.
Contribution
It introduces a novel strategy for 5-way scales that outperforms 3-way scale strategies in finding two counterfeit coins efficiently.
Findings
5-way scale provides more information per weighing
Strategy finds two fake coins among 2^k coins in k+1 weighings
5-way scale strategy is more efficient than 3-way scale methods
Abstract
In this paper, we discuss coin-weighing problems that use a 5-way scale which has five different possible outcomes: MUCH LESS, LESS, EQUAL, MORE, and MUCH MORE. The 5-way scale provides more information than the regular 3-way scale. We study the problem of finding two fake coins from a pile of identically looking coins in a minimal number of weighings using a 5-way scale. We discuss similarities and differences between the 5-way and 3-way scale. We introduce a strategy for a 5-way scale that can find both counterfeit coins among coins in weighings, which is better than any strategy for a 3-way scale.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCurrency Recognition and Detection · Benford’s Law and Fraud Detection · Image Processing and 3D Reconstruction
The 5-Way Scale
Tanya Khovanova
Joshua Lee
Abstract
In this paper, we discuss coin-weighing problems that use a 5-way scale which has five different possible outcomes: MUCH LESS, LESS, EQUAL, MORE, and MUCH MORE. The 5-way scale provides more information than the regular 3-way scale. We study the problem of finding two fake coins from a pile of identically looking coins in a minimal number of weighings using a 5-way scale. We discuss similarities and differences between the 5-way and 3-way scale. We introduce a strategy for a 5-way scale that can find both counterfeit coins among coins in weighings, which is better than any strategy for a 3-way scale.
1 Introduction
Coin problems have been a fascination for mathematicians for a long time [1]. In most of them there are many coins that look identical and a balance scale with two pans. Usually all real coins weigh the same and all counterfeit coins weigh the same, though lighter than real coins. The clasical balance scale used in past models has three different outcomes: LESS, EQUAL, and MORE. If the left pan is lighter, we denote the outcome as LESS. If the right pan is lighter, we denote the outcome as MORE. If the two pans are of equal weights, the outcome is EQUAL.
In this paper we assume that the scale is more refined; that is, it has five different outcomes: MUCH LESS, LESS, EQUAL, MORE, and MUCH MORE. The LESS and MORE outcomes correspond to the weight difference between one fake coin and one real coin, while MUCH LESS and MUCH MORE to a larger difference.
In the most classical problem [1] it is known that one coin is fake and lighter than the rest and the goal is to find it in the smallest number of weighings. For the new scale this problem is not interesting, as MUCH MORE or MUCH LESS outcomes are never possible with the same number of coins on both pans. In other words, the 5-way scale doesn’t give any advantage; it can only be used as a 3-way scale.
In this paper we study the problem of finding two counterfeit coins among many identical-looking coins. We introduce the problem in Section 2.
In Section 3 we find a natural information-theoretic bound. In Section 4, we study the first weighing and consider the outcome that gives us the least information.
In Section 5 we study a special case when the two counterfeit coins are separated into two different piles. In Section 6 we give a strategy using weighings for the case of separated coins when we have two piles of equal sizes . This allows to create a strategy for our general case in Section 7 which is better than any strategy for a 3-way scale: it uses weighings for coins.
2 Problem Formulation
We assume that the coins are identical and there are two types of coins: real and counterfeit. Real coins weigh the same. Counterfeit coins also weigh the same, but lighter than real ones.
We consider a new type of scale with five possible outcomes for each weighing: MUCH LESS, LESS, EQUAL, MORE, and MUCH MORE. We put the same number of coins on the pans. LESS means that the number of counterfeit coins on the left pan is one more than the number of counterfeit coins on the right pan. MUCH LESS means that the left pan has at least two more counterfeit coins than the right pan. MORE and MUCH MORE are similarly defined. EQUAL means that there are an equal number of counterfeit coins on both pans.
As this scale is more precise than the usual 3-way scale in the standard coin problems, the number of coins that we can process in a given number of weighings is at least the same. Indeed, if we treat MUCH LESS as LESS and MUCH MORE as MORE, then the 5-way scale becomes a 3-way scale.
The problem of finding one counterfeit coin is not interesting, as we never can get MUCH LESS or MUCH MORE. Therefore, we assume that we have at least 2 counterfeit coins, and at least 2 real coins. We note that the case of counterfeit and real coins is equivalent to the case of counterfeit and real coins.
In this paper we study the simplest case of two counterfeit coins:
There are identical-looking coins, two of them are counterfeit. What is the smallest number of weighings so that we are guaranteed to find both counterfeit coins on a 5-way scale?
3 The Information Theoretic Bound
The standard way to find a lower bound for the number of coins that can be processed in a given number of weighings is to count outcomes. Here is the argument for a 3-way scale.
Each weighing has 3 outcomes. That means, there are a total of possible outcomes after weighings. We need to find our two counterfeit coins after these weighings. What is the maximum number of coins we can process?
Suppose we found our two coins. That means one of possible outcomes led us to these pair of bad counterfeit coins pretending to be real. From this observation follows an information theoretical bound of , as each outcome must point to a different pair of coins. That means , or
[TABLE]
Computational results show that the bound is very close to the actual number of how many coins we can process for a 3-way scale [2, 3, 4]. Given that we can ignore the distinction between MUCH LESS and LESS, any strategy that works for a 3-way scale, also works for a 5-way scale.
But our scale is spiffier. Does that mean we can move the bound up? A similar argument replacing 3 with 5 shows that we can process not more than
[TABLE]
coins.
This is a larger number than the bound for the 3-way scale. But is our new bound tight? For the rest of the paper our goal is to find a strategy for a 5-way scale that is better than any strategy for a 3-way scale.
Let us consider an example. Suppose we have five coins with two counterfeits among them. How many weighings do we need? There are 10 possibilities for pairs of counterfeit coins. Our bound proves that one weighing is not enough. Can we do it in two weighings?
First compare two coins against two coins. If if the outcome is MUCH LESS or MUCH MORE, then, hooray, we found the two counterfeit coins. This is the beauty of the 5-way scale. There is no way to find two counterfeit coins out of five in one weighing using a regular 3-way scale.
Can our luck continue? If the first weighing is LESS or MORE, then we know that one counterfeit coin is outside, and the other is on the lighter pan. Indeed, comparing the two coins on the lighter pan would lead us to our second counterfeit coin.
If the first outcome is EQUAL, then we know that one counterfeit coin is on each pan, and one real coin must be outside. Denote the coins on the left side as 1 and 2, the right side as 3 and 4, and the coin outside as 5. In the second weighing we compare 1 and 3 with 2 and 5: if it is MUCH LESS, then our counterfeit coins are 1 and 3; if it is LESS, they are 1 and 4; if it is EQUAL, they are 2 and 3; if it is MORE, they are 2 and 4. Therefore, our strategy allows us to find our two counterfeit coins from five using only two weighings!
The total number of possibilities for two counterfeit coins among 5 coins is 10. In contrast with our 5-way scale, we can’t find the two counterfeit coins in two weighings using a 3-way scale.
Now we want to find a strategy that is better than the bound in Eq. (1) for any number of coins. We start by analyzing the first weighing.
4 The First Weighing
Consider the first weighing where we compare coins against coins. We calculate the information produced by each outcome, that is, the number of possible pairs of fake coins. By symmetry, we only need to consider three cases.
If it is MUCH LESS, then both fake coins are on the left pan, corresponding to different possibilities. 2. 2.
If it is LESS, then one fake coin is on the left pan and the other one is not on the scale, corresponding to possibilities. 3. 3.
If it is EQUAL, then either each pan has one fake coin or both fake coins are not on the scale, corresponding to possibilities.
The maximum out of the three expressions above is provided by the last one as shown in the next lemma.
Lemma 1**.**
.
Proof.
The first value is not more than the third as . Now we want to show that the second value is not more than the third.
Both and are integers, and for any integer , so
[TABLE]
[TABLE]
[TABLE]
[TABLE]
as desired. ∎
The EQUAL outcome is the one that gives us the least information. But how much info?
Now we want to find the minimum possible value for Case (3). We have that after the first weighing, if it is EQUAL, then the remaining possibilities are
[TABLE]
where is the number of coins on each side of the scale. The next step is to make our life more complicated by assuming that is not an integer, but a real number. As a function of , Eq. (2) is a parabola and it reaches its minimum where the derivative, , is zero. That is the minimum for a real is at .
The real told us that we need to divide all the coins into approximately three equal parts. If , then EQUAL leaves us with approximately bits of information. Though we have five different outcomes, with the first weighing we cannot divide the number of possibilities into five equal parts. In the best division, the largest pile of information is one third: We can’t reduce the number of possibilities by more than a third.
This is unfortunate. In the worst case the 5-way scale behaves similar to a 3-way scale. If every weighing behaved like this then the final answer would be close to the bound in Eq. (1), and the 5-way scale wouldn’t be much better than a 3-way scale.
Let’s not despair yet and see how information is distributed if the first weighing has coins on each pan:
- •
MUCH LESS or MUCH MORE: one pile of size with two counterfeit coins, about possibilities.
- •
LESS or MORE: two piles of size with one counterfeit coin each, possibilities.
- •
EQUAL: either one pile of size contains both coins, which corresponds to about possibilities or two other piles of size contain one fake coin each, corresponding to possibilities. Summing up we get possibilities
We just discovered a situation that requires our attention:
- •
One fake coin in one pile and one fake coin in another pile.
We will call this case the case of separated coins and sstudy it in the next section.
5 Separated coins
Suppose one fake coin is in pile and the other in , where and are disjoint. The two piles and are not assumed to have equal size. We denote the size of a pile as .
We divide into three piles denoted , , and , where , and into three piles , , and , where . We are interested in how much we can reduce the number of possibilities for the case two separated coins using one weighing.
In our weighing we compare versus . From now on we write two or more piles together to indicate the union of those piles.
MUCH LESS means one fake coin is in pile and one in , thus reducing the total number of possibilities by .
LESS means that one coin is in and another in , or one coin in and another in . We have two disjoint cases, with possibilities reduced by and correspondingly.
EQUAL yields either one coin in and the other in , or one coin in and the other in , or one coin in and the other in . We got three disjoint groups with reductions , and .
Our and range between 0 and . We want to find the minimum of
[TABLE]
We used a program to get us the answer we unfortunately expected: the minimum of is achieved for . In the best case we can divide the number of possibilities by 3.
Again, the possibilities are not divided evenly and EQUAL is the worst case.
If we had a 3-way scale, the strategy for the first weighing were the same. And in the worst case we would have divided our information by 3.
Are we doomed? Maybe we can’t do better than a 3-way scale. Though we can divide the information into five groups, we can’t divide it evenly. It seems that the worst case is the same as the worst case for the 3-way scale.
6 Separated Coins Strategy
In this section we suggest a strategy for separated coins when two piles of coins are of the same size , which is a power of 2.
In this section we will encounter another case, which we call the doubly separated coins. In this case we have four piles , , , and , all of size . It is known that there is one coin in each of and or there is a coin in each of and .
Let be the maximum number of weighings in the strategy below to find both counterfeit coins in the separated case, where each pile has coins. Let be the maximum number of weighings needed to find both counterfeit coins in the strategy below in the doubly separated case, where each pile has coins.
Let us calculate and for small .
First, we observe that : we do not need any weighings if the fake coins are separated into two piles of size 1 each.
Next, let’s calculate . We have four coins labeled 1, 2, 3, and 4, so that one fake coin is in the pile 12 and the other in the pile 34. We can find the fake coins in two weighings: first comparing 1 versus 2, then 3 versus 4. An exhaustive search shows that we can’t find both coins in one weighings. That means .
Next we want to calculate . In this case we have four coins total, and the two fake coins are either 1 and 2 or 3 and 4. In one weighing, comparing 12 versus 34, we can find the fake coins. That is, .
Now we are ready to show you a cool strategy for separated coins, where each of the piles is size , where . We split the first pile containing one fake coin into four equal groups labeled as 1, 2, 3, and 4. We do the same with the second pile and labels 5, 6, 7, 8.
First weigh 12 vs 56. The result cannot be MUCH LESS or MUCH MORE.
Case 1. Suppose the first weighing shows LESS. This must mean that we are reduced to a problem where one fake coin is in 12, and the other is in 78. This is the case of separated coins with twice fewer coins. Thus, in this case we need weighings. The outcome MORE has similar results.
Case 2. If the scale shows EQUAL in the first weighing, then either one coin is in 12 and the other is in 56, or that one coin is in 34 and the other is in 78. This corresponds to the case of doubly separated coins with coins in each pile: we need weighings.
This means
[TABLE]
Now consider the case of doubly separated coins, where each pile is of size , and . We split each pile into two so that is 1 and 2, is 5 and 6, is 3 and 4, and is 7 and 8. Now weigh 15 vs 37.
Case . If the weighing is MUCH LESS, then one fake coin is in 1 and the other is in 5. We have a case of separated coins where each pile has coins: we need total of weighings. Similarly, if the weighing is MUCH MORE, then one fake coin is in 3 and the other in 7.
Case . If the weighing is LESS, one coin is in 1 and one coin is in 6, or one coin is in 2 and the other is in 5. We have a case of doubly separated coins with piles half as large. Thus, we need weighings.
Case . If the weighing is EQUAL, then 15 can’t contain a fake coin. Therefore, either one coin is in 2 and the other is in 6, or one coin is in 4 and the other is in 8. Again, we have a case of doubly separated coins with piles half as large and need weighings in total. It follows that
[TABLE]
By continuing this process, we either get to separated coins with each pile of size 2, or to doubly separated coins with each pile of size 1. Looking at the starting conditions of and and using induction, we get
[TABLE]
We produced a strategy that solves the separated coins case for the total of coins in weighings. This strategy is better than any strategy on a 3-way scale.
Notice that the first weighing for separated coins is not very effective. Depending on the outputs LESS, MORE, or EQUAL, it divides information into 1/4, 1/4, and 1/2 respectively. But the worst case of EQUAL corresponds to the case of doubly separated coins.
Let us see how the information is divided in the doubly separated case. We start with four piles , , , and of size . There is one fake coin in either and , giving possibilities, or and , giving another possibilities, the total being .
If the first weighing is MUCH LESS or MUCH MORE we get to the case of separated coins with pile sizes , for a total of possibilities each. Other weighing outcomes direct us back to doubly separated coins with sizes reduced by a factor of 2. That means they divide the information by 4. That is, five different outcomes divide the information into portions 1/8, 1/8, 1/4, 1/4, and 1/4. This is way better than a 3-way scale.
7 The Strategy
Now that we have a strategy that works fast for separated coins, we want to extend it to the general case of 2 fake coins in a group of coins. Let denote the maximum number of weighings necessary to find both coins in one pile of size . We assume that .
Let us split the pile into four equal piles, labeling them 1, 2, 3, and 4. First weigh 1 versus 2.
Case 1. If the weighing is LESS or MORE, we weigh 3 versus 4 to enter the scenario in Section 6 with four piles of size each. They can be processed in weighings. That means all given coins can be processed in weighings.
Case 2. If the weighing is MUCH LESS or MUCH MORE, our strategy allows us to find the coins in weighings.
Case 3. If the first weighing is EQUAL, then either there is exactly one counterfeit coin in each of 1 and 2, or both coins are in 3 and 4. Next, we weigh 2 versus 3 to reduce the problem to the following cases
- •
LESS—one counterfeit coin in each of 1 and 2. We need weighings in total.
- •
EQUAL—both counterfeit coins are in 4. We need weighings in total.
- •
MORE—one counterfeit coin in each of 3 and 4. We need weighings in total.
- •
MUCH MORE—both counterfeit coins are in 3. We need weighings in total.
That means after two weighings in Case 3, we either reduce the pile by a factor of 4, or split the half of the pile into two equal piles each containing one fake coin, which we know how to process by Section 6. In particular, in the worst case we have
[TABLE]
where is defined in Section 6.
We can use an exhaustive search to see that , and . It follows that . Similarly, . Continuing by induction, we get that
[TABLE]
for .
Thus we can always solve a problem of finding two fake coins among coins in weighings using a 5-way scale.
Let us see how the information is divided in the first weighing of our strategy. At the beginning we had or about possibilities. If the first weighing is MUCH LESS or MUCH MORE the number of possibilities is divided by 16. If it is LESS or MORE, then one coin is in the pile of size , and the other in the pile of size . So the information is divided by about 4. So EQUAL is the worst case with 3/8 of the initial information.
In the first weighing, we are not doing better than a 3-way scale. But later we get to the case of doubly separated coins, which allows us to become much more effective.
8 Conclusion
Working on this project was an emotional rollercoaster. We started with a small example of 5 coins that gave us hope that a 5-way scale was noticeably better than a 3-way scale. Then we started analyzing the first weighing in different situations and were extremely discouraged. It looked like a 5-way scale couldn’t do better than a 3-way scale. We were so discouraged that for some time we were not looking into what the second weighing might do. That was a mistake, as later weighings make the strategy we found faster and better. Despite the fact that the 5-way scale can’t divide the possibilities evenly, there is a strategy for a 5-way scale that is much better than any strategy with a 3-way scale.
We gave our example of a fast strategy only for a specific number of coins . We leave it to the reader and future researchers to see if this strategy can be extended to any number of coins.
9 Acknowledgments
This project was part of the PRIMES-USA program. We are thankful to the program for allowing us the opportunity to conduct this research.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] R. K. Guy and R. J. Nowakowski, Coin-Weighing Problems, Amer. Math. Monthly , v.102, n.2, pp.164–167 (1995).
- 2[2] K. Knop, Two counterfeit coins, (In Russian) Kvant, 1, (2013), 49–54.
- 3[3] K. Knop, O. Polubasov, Two counterfeit coins revisited, (In Russian) available at http://www.kknop.com/math/ff.pdf , (2015)
- 4[4] A. Li, On the conjecture at two counterfeit coins, Disc. Math., 133 (1994) 301–306.
