The solution was to move the 2 lines of code that are above the EXTENDED_EUCLID(b, n_a, n_d, n_x, n_y);
recursive call to the function MODULAR_LINEAR_EQUATION_SOLVER
, below the initial EXTENDED_EUCLID
call. Many thanks to President James K. Polk.
CLICK HERE to find out more related problems solutions.