Freedom Day

It's the 44 th of July, so to be very patriotic, you decide to invest </code>b_0$ in a stock today that doubles in value each day, and then drops the total account value by </code>r$ immediately after each doubling. For example, if r=40r = 40 and b0=100b_0 = 100 , you would have $$160$ in your account tomorrow. You find that after nn days, you have $$0$ in your account. How much money was in the account 0≤k≤n0 \leq k \leq n days after your initial investment? Report the answer with r=1280,n=8r = 1280, n = 8 , and k=5k = 5 .

Answer format: enter an integer.