Dr Vasee can make four robots a day. Each of the robots can also make 1 other robot per day, starting the next day. So on the first day, we have four robots. On the second day, we have four more Dr Vasee made, plus four more made by each of the previous day's robots. Thus we have a total of 12 robots = [ (4 X 2) + 4]. Thus the formula for total robots on each day is:
Total Robots = ( PreviousDayTotal X 2) + 4
I am looking for an equation to directly calculate the total number robots after x days. For eg, how many robots are there at the end of day 25?
Please help me with the equation. It would be great if you can also tell me how you arrived at this equation.
One formula which describes the total amount after $n$ days would be$$\sum_{i = 1}^n 2^{i+1} = \sum_{i = 0}^{n - 1} 2^{i+2} = 2^2 \sum_{i = 0}^{n - 1} 2^i = 4(2^n - 1).$$
How did we find that formula?
As you did, I computed the total amount for the first few days ($4$, $12$, $28$ etc.) and just looked at the numbers to figure out their relation and then you can prove that idea by induction here.
You can also get an idea how to arrive at the left-hand side. If you start with $$x_n = 2x_{n-1} + 4 = 2(2x_{n-2} + 4) + 4 = 2(2(2x_{n-3} +4 ) +4) + 4 =\; ...$$
The smallest summand is $4 = 2^2$ (on the very right end), the next one $2 \cdot 4 = 2^3$ and so on. Thus you can derive an easy formula.