EDIT: Following Theo's comment, the equivalence holds since one can (must) rewrite $1/a$ as $(1+23k)/a$.
Provided that $$\frac{1}{25} \equiv \frac{1}{2}\pmod {23}$$ is true, why can I not rewrite it like usually possible?
$$\frac{1}{25}=\frac{1}{2}+23k ~\text{ for }~k \in \mathbb Z$$
$$\implies 2=25+50\cdot23k, \text{which is impossible.}$$
I guess that the factor 50 somehow may be ignored here, but I don't understand how (if at all). What's the clue here?