lottery math