Suppose there are n left on the ninth day, and you want to eat (n/2)+ 1, then on the ninth day, n-(n/2)- 1= 1 will lead to n = 4;;
Similarly, suppose there are n left on the eighth day. If you want to eat (n/2)+ 1, then n-(n/2)- 1=4, and the solution is n= 10, and there are 10 left on the eighth day.
And so on, there are (10+ 1)x2=22 on the seventh day, (22+ 1)x2=46 on the sixth day, (46+ 1)x2=94 on the fifth day.
The next day there was (382+ 1)x2=766. On the first day, there were (766+ 1)x2= 1534 peaches.
You can verify it yourself.