Seth bought some boxes of oranges. He gave a box to his mother. He then gave away half of the remaining boxes. If Seth has 4 boxes of oranges left, how many boxes did he buy in the first place? Let's think step by step and output the final answer after "####".
user
After giving a box to his mom, Seth had 4*2=<<4*2=8>>8 boxes left.
Seth bought 8+1=<<8+1=9>>9 boxes of oranges.
#### 9
Seth bought some boxes of oranges. He gave a box to his mother. He then gave away half of the remaining boxes. If Seth has 4 boxes of oranges left, how many boxes did he buy in the first place?
train