When I was in grade 4, my mother would send me to our village shop in Khyber Pakhtunkhwa, Pakistan, to buy vegetables or other grocery items. I would always ask the shopkeeper to let me do the weighing myself, because I loved the puzzle of the iron weights. Due to my interest, curiosity, and love for calculating and playing with weights, soon he allowed me to weigh for other customers too, especially when the amount was tricky. Sometimes the trick was to put a weight on the same pan as the vegetables. I did not know it then, but I was doing number theory, and even using negative numbers years before I met them in school. This puzzle took me straight back to that shop in my village.
Saturday, October 24, 2026
The Market Scales Puzzle
1. The two-pan scale: four weights for 1 to 40 grams
The answer is 1, 3, 9 and 27 grams. Here is how I found them, one weight at a time, the way I used to think at the village shop.
Step 1: Understand the two pans. The herbs sit on one pan. A weight can go on the opposite pan (it adds to the weight), on the same pan as the herbs (it takes away), or stay off the scale. So weights on the opposite pan count as plus (+), and weights with the herbs count as minus (−).
Step 2: The first weight is 1 g. We must be able to weigh 1 g, so the simplest start is a 1 g weight. Now we can weigh: 1. Total so far = 1.
Step 3: Choose the second weight. The next amount we need is 2. Make the new weight as big as possible while still reaching 2 by taking away the 1 g: new weight − 1 = 2, so the new weight is 3 g. Now we can weigh 2 = 3 − 1, 3 = 3, and 4 = 3 + 1. We can weigh 1 to 4. Total so far = 1 + 3 = 4.
Step 4: Choose the third weight. The next amount we need is 5. New weight − 4 = 5, so the new weight is 9 g. Now: 5 = 9 − 3 − 1, 6 = 9 − 3, 7 = 9 − 3 + 1, 8 = 9 − 1, 9 = 9, 10 = 9 + 1, 11 = 9 + 3 − 1, 12 = 9 + 3, 13 = 9 + 3 + 1. We can weigh 1 to 13. Total so far = 13.
Step 5: Choose the fourth weight. The next amount is 14. New weight − 13 = 14, so the new weight is 27 g. With 27 on the opposite pan, we can take away up to 13 (giving 14) or add up to 13 (giving 40). We can weigh 1 to 40. Total = 1 + 3 + 9 + 27 = 40.
Step 6: See the pattern. Each new weight = 2 × (total so far) + 1: 2 × 1 + 1 = 3, 2 × 4 + 1 = 9, 2 × 13 + 1 = 27. This is always 3 times the last weight, so the weights are powers of 3: 3⁰, 3¹, 3², 3³.
Step 7: Weigh any amount. Start with the biggest weight and decide its pan, then fix the difference with the smaller weights. For 20 g: put 27 on the opposite pan. That is 7 too much, so I need to take away 7. Put 9 with the herbs: now it is 27 − 9 = 18, which is 2 too little. Add 3 on the opposite pan: 21, which is 1 too much. Put 1 with the herbs: 20. So 20 = 27 − 9 + 3 − 1.
Check: opposite pan 27 + 3 = 30; herb pan 20 + 9 + 1 = 30. Balanced!
Why exactly 40? Each weight has 3 choices: with the herbs (−), off the scale (0), or on the opposite pan (+). Four weights give 3 × 3 × 3 × 3 = 81 arrangements. One is “all off,” and the other 80 come in mirror pairs (swap the pans), which leaves 40 different amounts. There is no room for 41. The table below shows how to weigh every amount from 1 to 40.
2. The one-pan scale: five weights for 1 to 31 grams
Now each weight has only 2 choices, such as on or off in computing. The weights must be 1, 2, 4, 8 and 16 grams. Five weights give 2⁵ = 32 combinations, and without “none” that is 31. With my computing background, I see this at once: it is exactly like the binary number system. The second photo shows an old British scale whose weights (2 lb, 1 lb, then ounces) seem to follow the same doubling idea.
Why this felt so familiar. In my computing studies, I spent many hours doing arithmetic in binary by hand: changing decimal numbers into binary, changing them back, and adding binary numbers. A computer stores a number in bits, and each bit is either 1 (on) or 0 (off), just like a weight that is either on the pan or not. The place values of five bits are 16, 8, 4, 2, 1, which are exactly my five weights. Even the method I learned for changing decimal into binary is the shopkeeper’s method: take the biggest weight that fits, subtract it, and repeat. For 22 g: 16 fits (6 left), 8 does not fit, 4 fits (2 left), 2 fits (0 left), and 1 is not needed. Reading the fits and misses in order gives 1 0 1 1 0. Binary addition works like the scale too. Two 1 g weights equal one 2 g weight, so in binary 1 + 1 = 10, and we carry, just as 60 seconds carry into one minute in Babylonian numbers. Five bits make 32 patterns, from 00000 to 11111, and 11111 = 16 + 8 + 4 + 2 + 1 = 31, the heaviest amount. Five bits, five weights, 31 grams: the scale and the computer are the same idea.
All 32 five-bit patterns. Each column is one weight (16, 8, 4, 2, 1 g); 1 = on the pan, 0 = off
3. The connection to ancient Egypt
Egyptian scribes, as in the Rhind Papyrus, multiplied by doubling. To find 13 × 12, they wrote 1 → 12, 2 → 24, 4 → 48, 8 → 96. Then they ticked the rows that make 13 (8 + 4 + 1) and added: 96 + 48 + 12 = 156. Choosing which rows to tick is exactly like choosing which weights to put on a one-pan scale. The scribe was writing 13 in binary 3,500 years before computers. The two-pan scale is the clever next step, because it allows subtraction too. That is balanced ternary, with digits −1, 0 and +1. In the 1950s, Moscow State University even built a computer, Setun, that used balanced ternary instead of binary.
4. Number theory and bases
In my earlier posts, I wrote about base 60 and base 10. This puzzle shows what a base really is: a set of weights. Our base-10 system is a set of weights 1, 10, 100, 1000, and each digit tells how many of each weight to use. Binary uses weights 1, 2, 4, 8 with digits 0 or 1. Balanced ternary uses 1, 3, 9, 27 with digits −1, 0, +1. A deep fact of number theory hides here too: every whole number can be written in exactly one way in each of these systems. That is why the shopkeeper never had two answers for the same weight.
5. Taking it further with my students
I would start with a real balance and some washers, not a worksheet, so students can feel the problem in their hands like I did. Then I would ask: How far can you weigh with 3 weights? With 5? (13 and 121.) Can you see the pattern? Why does it stop at exactly 40? Students who like coding can write a program that turns any number into balanced ternary. I would also ask a real-life question: my village shopkeeper had more than four weights. Why? Because a busy shop needs speed more than elegance. So, the “best” answer in mathematics depends on what you need it for. Finally, I would ask students about the weights and measures used in their families’ home countries, because every market in the world holds some mathematics. Mine was in a small shop in KP, Pakistan, and I was learning number theory there long before I knew its name.
Subscribe to:
Post Comments (Atom)
Numbers with Personality Reflection
In my school in Pakistan, numbers had no feelings. A number was something you added, carried, or wrote in the answer box. Alice Major’s essa...
-
When I was in grade 4, my mother would send me to our village shop in Khyber Pakhtunkhwa, Pakistan, to buy vegetables or other grocery items...
-
In my government school in Pakistan, we never had a man leaving Albuquerque. We had a train leaving Peshawar for Karachi, a shopkeeper who b...
-
In my government school in Pakistan, algebra began with one sentence on the blackboard: “Let the number be x.” From that day, algebra meant ...





Balanced ternary, and a computer based on this system -- I'd never heard about that! I love the idea that number bases are, essentially, sets of weights, and that a merchant may have more weights than absolutely necessary to help things go faster, rather than necessarily using the most elegant mathematical solution. Well done Izhar!
ReplyDelete