Open RodionGork opened 8 years ago
As pointed by GlideThestral, when A and M are not coprime the solution still may exist if B is divisible by their GCD.
As pointed by GlideThestral, when A and M are not coprime the solution still may exist if B is divisible by their GCD.