A and B take turns to take candy from a package. A first takes 1 piece, B then takes 2 pieces, then A takes 4 pieces, B then takes 8 pieces, ..., and so on. When the number of candies in the package is less than the number of pieces that should be taken, all the candies in the package will be taken away. If A has taken a total of 90 pieces of candy, how many pieces of candy are there in the initial package.
甲，乙二人先后从一个包裹中轮流取糖果，甲先取1块，乙接着取2块，然后甲再取4块，乙接着取8块，…，如此继续．当包裹中的糖果少于应取的块数时，则取走包裹中所有糖果，若甲共取了90块糖果，则最初包裹中有多少块糖果．
<gadget id="calculator">2 ** 1</gadget>
<output>2</output>

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

<gadget id="calculator">2 ** 5</gadget>
<output>32</output>

<gadget id="calculator">2 ** 7</gadget>
<output>128</output>

<gadget id="calculator">1 + 4 + 16 + 64 + 5 + 2 + 8 + 32 + 128</gadget>
<output>260</output>

<result>260</result>