Jobs has an apple orchard and brought some of his harvest to the market to sell.

To his first customer, he sells half of all the apples plus half an apple.

To the second customer he sells half of the rest plus half an apple .

To the third,half of the remainder plus half an apple ,and so on.

To the seventh customer he sells half of what remains and another half an apple.

If Jobs has no apples left at the end, how many apples did he start out with?