The Euclidean algorithm and modular inverses | Hacker News Reader