The Last Theorem by Arthur C. Clarke

In this science fiction novel, a young mathematician named Ranjit Subramanian proves Fermat's Last Theorem, a mathematical puzzle that had remained unsolved for centuries. His achievement gains global recognition, but it coincides with the arrival of an alien race known as the Grand Galactics, who are intent on preventing humanity from becoming a threat to the universe. As Ranjit navigates personal and professional challenges, the story explores themes of scientific discovery, human resilience, and the potential for peaceful coexistence with extraterrestrial beings. The narrative weaves together elements of mathematics, space exploration, and the quest for knowledge, ultimately highlighting the power of human ingenuity and cooperation.