Teaser 1892: Puzzling present

From The Sunday Times, 20th December 1998 [link]

I have received an astonishing letter from a fellow puzzle-setter. He writes:

“I am sending you a puzzle in the form of a parcel consisting of an opaque box containing some identical marbles, each weighing a whole number of grams, greater than one gram. The box itself is virtually weightless. If I told you the total weight of the marbles, you could work out how many there are.”

He goes on:

“To enable you to work out the total weight of the marbles I am also sending you a balance and a set of equal weights, each weighing a whole number of grams, whose total weight is two kilograms. Bearing in mind what I told you above, these weights will enable you to calculate the total weight of the marbles and hence how many marbles there are.”

I thought that he was sending me these items under seperate cover, but I had forgotten how mean he is. He went on:

“I realise that I can save on the postage. If I told you the weight of each weight you would still be able to work out the number of marbles. Therefore I shall not be sending you anything.”

How many marbles were there?

This puzzle is included in the book Brainteasers (2002). The puzzle text above is taken from the book.

[teaser1892]