5 caps 1 bottle of beer, leaving 1 cap 1 bottle of beer.
5 bottles for 2 bottles of beer, leaving 1 bottle and 2 bottles of beer.
-
At present, there are 5+ 1+2 = 8 beer caps 1+ 1+2=4 empty bottles 1+ 1+2 = 4.
Four lids can hold 1 bottle of beer.
Two bottles of beer for four bottles.
-
Up to now, the remaining empty bottles 1+2 = 1 1 beer caps 1+2=3 1+2=3.
Use 2 empty bottles for 1 bottle of beer, leaving 2 empty bottles and 4 caps for 1 bottle of beer.
Two empty bottles 1 bottle of beer, four caps 1 bottle of beer, two bottles of beer.
-
Up to now, there are11+1+2 =14 bottles of beer, leaving 2 empty bottles and 2 caps.
1 beer with two empty bottles, 1 beer with two lids.
After drinking 1 bottle of beer on credit, there are 2 empty bottles and 3 lids left.
14+ 1 = 15
Replace two empty bottles with 1 bottle of beer, and then drink the remaining four lids and 1 empty bottle.
15+ 1 = 16
-
1 bottle of beer has four bottle caps, leaving 1 empty bottle. After drinking two empty bottles and two bottle caps, credit 1 bottle.
Two empty bottles are still on credit, and there are two lids left.
-
So a * * * drank 16+1 = 17 bottles of beer, leaving two lids.