.
Find all integers n, 0 < n < 163, such that n is its own inverse modulo 8.
~~~~~~~~~~~~~~~~~
n is own inverse modulo 8 means
n*n = 1 mod 8.
We consider numbers n modulo 8, so, it is enough to consider
the congruence classes from {1 mod 8} to {7 mod 8}.
n= 1: n*n = 1*1 = 1 mod 8. Hence, n= 1 works.
n= 2: n*n = 2*2 = 4 mod 8. Hence, n= 2 does not work.
n= 3: n*n = 3*3 = 1 mod 8. Hence, n= 3 works.
n= 4: n*n = 4*4 = 16 = 0 mod 8. Hence, n= 4 does not work.
n= 5: n*n = 5*5 = 1 mod 8. Hence, n= 5 works.
n= 6: n*n = 6*6 = 36 = 4 mod 8. Hence, n= 6 does not work.
n= 7: n*n = 7*7 = 49 = 1 mod 8. Hence, n= 7 works.
ANSWER. Among the congruence classes mod 8, classes 1, 3, 5 and 7 work as own inverses mod 8.
the rest of classes do not work as own inverses mod 8.
Solved.
/\/\/\/\/\/\/\/\/\/\/\/
Do we need to explain the obvious fact that every mathematical problem requires using
the relevant units of measurement?
In this problem we operate with equivalence classes (residues), these classes are from
{0 mod 8} to {7 mod 8}.
Therefore, references to numbers greater than 8 are inappropriate and only show/demonstrate
the general mathematical illiteracy of the person who compiled this problem.