You own a standard two-pan balance scale and exactly four solid weights: 1 kg, 3 kg, 9 kg, and 27 kg. By placing weights either on the object's pan or the opposite pan, how many distinct whole-number kilogram weights from 1 kg up to 40 kg can you measure?
40
Every integer from 1 to 40 can be uniquely expressed in balanced ternary (base-3 with coefficients -1, 0, and +1) using powers of 3: 3^0, 3^1, 3^2, and 3^3. Therefore, every whole-number weight from 1 kg up to 1 + 3 + 9 + 27 = 40 kg can be weighed.
About this riddle
Math riddles hide a calculation inside a short story. Pull out the numbers, work out what is being asked, and watch for a trick such as a unit change.
Difficulty: Hard. More like this: Math riddles with answers or try Target 24 for a different kind of puzzle.
More math riddles
A bicyclist climbs a steep hill at a steady 10 miles per hour, then immediately turns around and descends the exact same route at 30 miles per hour. What was their average speed for the entire round trip?
An old grandfather clock chimes once at 1:00, twice at 2:00, three times at 3:00, and so on. How many total chimes will ring out between 1:00 AM and 12:00 PM (noon) inclusive?
Noah gets 6 baskets on Monday and 7 baskets on Tuesday, then gives away 2. How many baskets are left?
I have four coins in my pocket that total 41 cents. None of them are quarters. What are the four coins?
One green hat costs 2 dollars. How many dollars do 7 green hats cost?
Pick any real number. Double it, add 14, divide the whole result by 2, and then subtract your starting number. What number will you always hold in your hand?

