Linear-congruence-equations (en) Copyright (C) Paweł Maśluch, 2021. All rights reserved. Solving equations a*x = b (mod n) where x is non-negative integer (C++, Windows).