https://www.mi.fu-berlin.de/wiki/pub/ABI/AlgLecture6MaterialsWS14/script.pdf

http://colorfulengineering.org/modular-inverse.pdf