Mathematicians unlock major number theory puzzle