Take 1 ball from box #1,
take 2 balls from box #2,
...
take no balls from box #10.
Put all 45 balls on the scale.

If the fractal part of total weight is:
.0 : found box #10
.1 : found box #9...