Let's consider the encoding function: $$y=ax \bmod 5$$ where $x$ is the number that corresponds to a certain letter in the alphabet. I'm trying to understand why for every number $n$, with $n>4$, I can find a number a such as $ax \equiv nx \bmod 5$.
First of all, I'm trying to understand why, given a certain $x$, if a ranges between $[0,\ldots,4]$ I cover all possible remainders (that is the remainders from $0$ to $4$). For example, if I take $x=3$, then:
$0=0*3 \rightarrow$ remainder is $0$
$3=1*3 \rightarrow$ remainder is $3$
$6=2*3 \rightarrow$ remainder is $1$
and so on...
But i don't know how to prove it... Can you help me?