Mathematician explains the 'simple' loophole used to win the lottery