Understanding Lottery Math