I am asked to find the inverse of the congruence class $\{x : x \equiv 5 \,\, (mod \,\, 13)\}$.
Below is my work:
Congruence class can be rewritten as $\{x : x - 13k = 5\}$
$1 = 13 - 12 *1$ $5 = 5 * 13 - 60 * 1$
$-60 \equiv -60 + 6(13) \equiv 18 \equiv 5^{-1} \,\, (mod \,\, 13)$
So in other words, is the inverse to this congruence class $\{x : x \equiv 18 \,\, (mod \,\, 13)\}$? What I am confused by is that I can always add a different multiple of $13$ to $-60$ so I can also have $\{x : x \equiv 31 \,\, (mod \,\, 13)\}$. How do I know which one is the right inverse?