Buying a specific set of 27 tickets for the UK National Lottery will mathematically guarantee that you win something.
Buying 27 tickets ensures a win in the UK National Lottery
You can guarantee a win in every draw of the UK National Lottery by buying just 27 tickets, say a pair of mathematicians – but you won’t necessarily make a profit.
While there are many variations of lottery in the UK, players in the standard “Lotto” choose six numbers from 1 to 59, paying £2 per ticket. Six numbers are randomly drawn and prizes are awarded for tickets matching two or more.
David Cushing and David Stewart at the University of Manchester, UK, claim that despite there being 45,057,474 combinations of draws, it is possible to guarantee a win with just 27 specific tickets. They say this is the optimal number, as the same can’t be guaranteed with 26.
The proof of their idea relies on a mathematical field called finite geometry and involves placing each of the numbers from 1 to 59 in pairs or triplets on a point within one of five geometrical shapes, then using these to generate lottery tickets based on the lines within the shapes. The five shapes offer 27 such lines, meaning that 27 tickets bought using those numbers, at a cost of £54, will hit every possible winning combination of two numbers.
The 27 tickets that guarantee a win on the UK National Lottery
Their research yielded a specific list of 27 tickets (see above), but they say subsequent work has shown that there are two other combinations of 27 tickets that will also guarantee a win.
“We’ve been thinking about this problem for a few months. I can’t really explain the thought process behind it,” says Cushing. “I was on a train to Manchester and saw this [shape] and that’s the best logical [explanation] I can give.”
Looking at the winning numbers from the 21 June Lotto draw, the pair found their method would have won £1810. But the same numbers played on 1 July would have matched just two balls on three of the tickets – still a technical win, but giving a prize of just three “lucky dip” tries on a subsequent lottery, each of which came to nothing.
Stewart says proving that 27 tickets could guarantee a win was the easiest part of the research, while proving it is impossible to guarantee a win with 26 was far trickier. He estimates that the number of calculations needed to verify that would be 10165, far more than the number of atoms in the universe. “There’d be absolutely no way to brute force this,” he says.
The solution was a computer programming language called Prolog, developed in France in 1971, which Stewart says is the “hero of the story”. Unlike traditional computer languages where a coder sets out precisely what a machine should do, step by step, Prolog instead takes a list of known facts surrounding a problem and works on its own to deduce whether or not a solution is possible. It takes these facts and builds on them or combines them in order to slowly understand the problem and whittle down the array of possible solutions.
“You end up with very, very elegant-looking programs,” says Stewart. “But they are quite temperamental.”
Cushing says the research shouldn’t be taken as a reason to gamble more, particularly as it doesn’t guarantee a profit, but hopes instead that it encourages other researchers to delve into using Prolog on thorny mathematical problems.
A spokesperson from Camelot, the company that operates the lottery, told New Scientist that the paper made for “interesting reading”.
“Our approach has always been to have lots of people playing a little, with players individually spending small amounts on our games,” they say. “It’s also important to bear in mind that, ultimately, Lotto is a lottery. Like all other National Lottery draw-based games, all of the winning Lotto numbers are chosen at random – any one number has the same and equal chance of being drawn as any other, and every line of numbers entered into a draw has the same and equal chance of winning as any other.”
For more such insights, log into www.international-maths-challenge.com.
*Credit for article given to Matthew Sparkes*