User blog:VoidSansXD/The water bottle function

RULES:

the

1.)  A 100% empty water bottle is placed on the table.  Put a drop of water into the bottle ONCE every week.

2.)  Every time the water bottle fills up, open the first door.  Also, empty the water bottle.

3.)  Close the first door as soon as you fill the water bottle again.  Empty it as well.

4.)  Once the amount of times you close/open the first door is equal to the number of drops required to fill the bottle, open a second door, empty the water bottle, and close the first door.

5.)  Once you open/close the first door the amount of times there are drops in the water bottle again, close the second door.

6.)  Once you open/close the second door the amount of times there are drops in the water bottle, open a third door, close the second door, and close the first door.

7.)  Once you open/close the second door the amount of times there are drops in the water bottle, close the third door.

8.)  Once the third door is opened/closed the amount of times there are drops in the water bottle, open a fourth door, and close all of the doors before it.

9.)  Pattern repeats

In W(n){x, y}, n is the size of each drop in cm, x is the size of the water bottle in cm, and y is the number of doors.

Once you open the final door, the cycle stops, and that's your answer.

Examples:

W(1){2, 2} = 4.

W(1){5, 3} = 125.

W(1){10, 5} = 100,000