Even though he didn't share all the details, a math professor figured it out.