To solve this problem, we can work backwards. Let's denote the original amount of water in the tank as "x" liters.
After the first month, half of the water evaporates, which leaves us with x/2 liters of water.
Then, an extra liter of water is added, which gives us (x/2) + 1 liters.
Following the same pattern, after the second month, we have ((x/2) + 1) / 2 liters of water.
After the third month, we have (((x/2) + 1) / 2) / 2 liters of water.
After the fourth month, we have ((((x/2) + 1) / 2) / 2) / 2 liters of water.
And finally, after the fifth month, we have (((((x/2) + 1) / 2) / 2) / 2) / 2 liters of water, which is given as 4 liters.
Now, let's write this equation and solve for x:
(((((x/2) + 1) / 2) / 2) / 2) / 2 = 4
Simplifying the equation:
((x/2) + 1) / 2^5 = 4
Multiplying both sides by 2^5 to get rid of the denominator:
(x/2) + 1 = 4 * 2^5
Simplifying further:
x/2 + 1 = 128
Subtracting 1 from both sides:
x/2 = 127
Multiplying both sides by 2 to isolate x:
x = 2 * 127
x = 254
Therefore, the original amount of water in the tank was 254 liters.