Mickey Mouse saw a pile of candy in the box, he ate half of the candies on the first day and 1 capsule, the second day ate the remaining half and 1 capsule, and on the third day ate the remaining half of the previous two days and 1 capsule, and finally left l sugar. How many candies were there originally in the box.
米老鼠看到箱子里有一堆糖，第一天吃了一半又l粒，第二天吃了余下的一半又1粒，第三天吃了前两天余下的一半又l粒，最后剩下l粒糖．箱子里原先有多少粒糖．
<gadget id="calculator">1 + 1</gadget>
<output>2</output>

<gadget id="calculator">2 * 2</gadget>
<output>4</output>

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

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

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

<gadget id="calculator">11 * 2</gadget>
<output>22</output>

<result>22</result>