Can the modular inverse be a negative value or only the positive ones are the allowed?

30 Views Asked by At

I searched for that and found opposite opinions some say that yes the negative are acceptable and others say that only the positive are the acceptable. for example: 27^-1 (mod 392) which of the following sets is true {...,-813 ,-421,-29,363,755,1147,...} {363,755,1147,...}