Let n be a positive integer and a, b be invertible integers modulo n such that a≡b−1(modn). What is the remainder when ab is divided by n?
a≡b−1(modn)a⋅b≡b−1⋅b(modn)ab≡1(modn)
The required remainder is 1.