# Calculating Total Amount of Money Based on Weight

Dealing with US Dollars...

Assuming we know the weights of half-dollars, quarters, dimes, nickels, and pennies.

Also assuming the weights remain constant (don't change from one quarter to another quarter).

If we have a bag of these coins (could include any coin), and we weigh them to get a total weight, can we know how much money we have in the bag?

If we cannot know exactly, how close of an estimate can we get?

-
It depends on the specific weights, and whether you have bounds for the minimum/maximum number of coins of each type. In general, what you will have a single diophantine equation of the form $a\mathbf{h} + b\mathbf{q} + c\mathbf{d}+d\mathbf{n}+e\mathbf{p}=k$, where $k$ is the weight, $\mathbf{h}$, $\mathbf{q}$, $\mathbf{d}$, $\mathbf{n}$, $\mathbf{p}$ the weight of half-dollars, quarters, dimes, nickels, and pennies, resp., and $a$, $b$, $c$, $d$, and $e$ being the unknowns (which must be nonnegative integers). By itself, it will usually have many solutions. – Arturo Magidin Jan 3 '11 at 0:49
Makes sense...thanks! – Sev Jan 3 '11 at 11:18