congruence function

Solves mx+by=1 for x and y