lottery mathematics