From here, I have learned
However, I can't figure out why can it replace $1$ with $xc$, there is no such property here
From here, I have learned
However, I can't figure out why can it replace $1$ with $xc$, there is no such property here
Steps:
$1*b \equiv 1*b \mod n$. (Reflexivity)
$1*b = b$. (Basic algebra: Multiplicative identity)
$b \equiv 1*b \mod n$. (Meaning of equality. $1*b$ and $b$ are the same thing.)
$xc \equiv 1 \mod n$ (Given)
$(xc)*b \equiv (1)*b \mod n$. ($ka \equiv kb \mod n$)
$(xc)*b = xcb = xbc=(xb)c;$ (Basic algebra: associativity and commutivity of multiplication.)
$(xb)c \equiv b \mod n$. (Meaning of equality: $(xb)*c = (xc)*b$ and $b=(1)*b$ and we already kknow $(xc)*b \equiv (1)*b \mod n$.)
$xb \equiv 1 \mod n$. (Given)
$(xb)c \equiv (1)c$ ($ka \equiv kb \mod n$)
$1*c = c$. (Basic algebra: multiplicative identity)
$(xb)c \equiv c \mod n$. (Meaning of equality)
$b \equiv (xb)c \mod n$. (Symmetry: $a \equiv b \mod n \implies b \equiv a \mod n$)
$(xb)c \equiv c \mod n$. (Just repeating the line above the last one again.)
$b \equiv c \mod n$ (Transitivity: $a \equiv b \mod n; b\equiv c \mod n\implies a \equiv c \mod n$.
The property you are using is on the webpage linked. It is in the second set of bullet points. It reads:
If $a \equiv b\pmod{n}$ and $k$ is an integer, then $ka\equiv kb\pmod{n}$.
From $1\equiv xc \pmod{n}$ we can conclude $1b \equiv xcb \pmod{n}$.