finally solved Coin On The Table using caching
did some more mathy practice