There are 1 weight each of 1 gram, 2 gram, 4 gram, 8 gram and 16 gram. How many objects of different weights can be weighed with a balance if weights are only allowed on one side of the balance?
有1克、2克、4克、8克、16克的砝码各1个．若只允许在天平的一侧放砝码，那么用天平能称出多少种不同重量的物体．
<gadget id="calculator">5 * 4 * 3</gadget>
<output>60</output>

<gadget id="calculator">3 * 2</gadget>
<output>6</output>

<gadget id="calculator">60 / 6</gadget>
<output>10</output>

<gadget id="calculator">5 + 10 + 10 + 5 + 1</gadget>
<output>31</output>

<result>31</result>