Bachet's weights problem asks for the minimum number of weights (which can be placed in either pan of a two-arm balance) required to weigh any integral
number of pounds from 1 to 40 (Bachet 1624, p. 215; Steinhaus 1999, p. 52).
Bachet's solution is 1, 3, 9, and 27: 1, , 3,
,
,
,
,
, 9,
,
,
,
,
,
,
,
, and so on.
Each weight has three placements, contributing ,
,
or
to the difference between the pans. With
weights there are at most
distinct positive differences, since reversing the
pans pairs each positive difference with a negative one and the all-unused placement
gives zero. Three weights therefore give at most 13 positive differences. In balanced
ternary, the weights 1, 3, 9, and 27 give every integer
from
to
. More generally, if
powers of 3 cover
with
,
adding the weight
gives three adjacent intervals
of attainable differences, with no gaps. This establishes both coverage and optimality
for the 1-to-40 problem (Numberphile 2021, 17:44-19:19).