Talk:Modular inverse
Handle a < 0 ?
The problem is perfectly well defined for a < 0, but many of the implementations (e.g. the C version and translations thereof) do not handle this case correctly. Is this a bug in the implementations or in the problem specification.
— Steven G. Johnson (talk) 16:38, 14 November 2013 (UTC)