Kummer developed the theory of algebraic integers in an attempt to save a flawed proof of Fermat's last theorem by Lamé, as explained <A HREF="https://books.google.nl/books?id=3wzSBwAAQBAJ&pg=PA402">here:</A> <IMG SRC="https://ilorentz.org/beenakker/MO/Kummer.png"/>