Fermat's Last Theorem. The greatest mathematical problem that has captivated mathematicians around the world for 350 years. In 1951, postwar Japan, a young mathematician named Andy Homura attempts to solve the “Devil's Proof”. His life and the history of mathematics change with the arrival of a genius, a young girl named Rama. The proof that Homura bets his entire life on begins.