Lottery Algorithm, Binomial Theorem - Discrete Mathematics