Lotteries and truncated binomial coefficients