There are 26 packages, labeled A to Z, and each is known to weigh some whole number of pounds in the range of 1 to 26. It is possible that two or more packages weigh the same amount.
(a) Determine the weight of each package with a two-pan balance and exactly four weights of your design.
(b) Now do it with exactly three weights.