A seemingly impossible math problem is solved through the magic of physics, AD&D, simulation science and Betty Crocker.