My answer to this question is 15, but my dad insists I am wrong. Who is right?
$2 can buy 1 bottle of beer.
4 bottle caps can be exchanged for 1 bottle beer.
2 empty bottles can be exchanged for 1 bottle of beer.
How many bottles of beer can you buy with $10?
I feel like some of the answers I've gotten so far... don't really make sense or really follow what I am trying to ask.
So I think I will clarify what I am trying to ask for.
YOU CAN (have to) TRADE / EXCHANGE bottle caps and empty bottles to get new bottles.
So how many can you buy with $10?
The answer he got is 20, which is correct. I just don't understand why.
I would show your dad the following table which should be easy to follow line by line:
$$ \begin{array}{|c|c|c|} \hline \text{Full Beers} & \text{Empty Bottles} & \text{Caps} & \text{Action}\\ \hline \color{red}{5} & 0 & 0 & \text{DRINK} \\ 0 & 5 & 5 & \text{Buy more}\\ \color{red}{3} & 1 & 1 & \text{DRINK}\\ 0 & 4 & 4 & \text{Buy more}\\ \color{red}{3} & 0 & 0 & \text{DRINK}\\ 0 & 3 & 3 & \text{Buy more}\\ \color{red}{1} & 1 & 3 & \text{DRINK}\\ 0 & 2 & 4 & \text{Buy more}\\ \color{red}{2} & 0 & 0 & \text{DRINK}\\ 0 & 2 & 2 & \text{Buy more}\\ \color{red}{1} & 0 & 2 & \text{DRINK}\\ 0 & 1 & 3 & \text{Insufficient funds}\\ \hline \end{array} $$
$$\color{red}{\text{Total beers} : 5+3+3+1+2+1=15}$$
Depending on how we interpret the rules there are some caveats to this solution:
$$ \begin{array}{|c|c|c|} \hline \text{Full Beers} & \text{Empty Bottles} & \text{Caps} & \text{Action}\\ \hline \ldots & \ldots & \ldots & \ldots \\ 0 & 1 & 3 & \text{Borrow cap}\\ 0 & 1 & 4 & \text{Buy more}\\ \color{red}{1} & 1 & 0 & \text{DRINK}\\ 0 & 2 & 1 & \text{Return cap}\\ 0 & 2 & 0 & \text{Buy more}\\ \color{red}{1} & 0 & 0 & \text{DRINK}\\ 0 & 1 & 1 & \text{Borrow bottle}\\ 0 & 2 & 1 & \text{Buy more}\\ \color{red}{1} & 0 & 1 & \text{DRINK}\\ 0 & 1 & 2 & \color{black}{\text{Buy more}}\\ \color{red}{1} & 0 & 0 & \text{DRINK}\\ 0 & 1 & 1 & \text{Borrow cap}\\ 0 & 1 & 2 & \color{black}{\text{Buy more}}\\ \color{red}{1} & 0 & 0 & \text{DRINK}\\ 0 & 1 & 1 & \text{Return bottle and cap}\\ 0 & 0 & 0 & \text{Insufficient funds}\\ \hline \end{array} $$
$$\color{red}{\text{Total beers} : 15 + 1 + 1 + 1 + 1 + 1 = 20}$$
For the general problem: each beer you drink can be used to buy $\frac{3}{4}$ more beers so in general we expect that if you start with $B$ beers then you will be able to drink a total of
$$B\left(1+\frac{3}{4}+\left(\frac{3}{4}\right)^2 + \ldots\right) = 4B \text{ beers}$$
A quick check on the computer gives us the formula $4B - 5 \text{ beers}$ (without bending the rules) and $4B$ when bending the rules (as in 3. above) holds for all $B\in [2,1000]$.