Daniel B. answered 07/19/23
PhD in Computer Science with 42 years in Computer Research
Here is the proof that m-1 is its own inverse mod m:
(m-1)*(m-1) mod m = (m² - 2m + 1) mod m = 1
I did not understand the question at the beginning of your post.
But let me just say that
m - (m-1) mod m = 1, which is not congruent to (m-1) mod m, except for m = 2.