alright /sci/, here's one
you have a chest that has a 20% chance of a gold bar or 80% to contain nothing
it also has a (100/n)% chance to have n amount of chests inside it, separate from the gold bar chance, where n is the current amount of iterations plus one (the first chest has n=2, the next "layer" of chests has n=3, the chests in the layer below that is n=4, etc.)
however, every time you open a chest, there's a 0.01% chance that it is a mimic that takes every gold bar you've collected so far, but not the amount of chests you have yet to open (mimics do not let you gain gold bars or more chests from them)
what's the ideal strategy to maximize amount of gold bars?