You are an ancient merchant, and you need to weigh out many different items of many different weights. To do so, you'll design a scale to weigh objects. Unlike a standard scale, your scale will have four different pans, at your choice of four distances from the fulcrum.
You will also select four different standardized masses, of weights of your choice.
Your goal is to be able to weigh out every possible integer weight from 1 gram up to N grams, for the largest possible value of N.
To "weigh out" a weight means that there must be some arrangement of the weight and your standardized masses on the pans of your scale such that the scale exactly balances. Also, assume that your scale exactly balances when all four pans are empty.
If your scale only had 2 pans equidistant from the fulcrum, the optimal value of N would be 40. With 4 pans, how much higher can you go?
Edit: There was a bug in the computer program I used to find my best solution. I have fixed it, and am refinding a best solution.