[Math] simple ‘why’ question about modular arithmetic 13 mod 5

modular arithmetic

After checking out khan academy "what is modular arithmetic" https://www.khanacademy.org/computing/computer-science/cryptography/modarithmetic/a/what-is-modular-arithmetic

they say that 13/5 = 2 remainder 3, and therefore 13 mod 5 = 3
but 13/5 = 2.6
I do not know where they get the remainder 3 from

can someone please explain?

Best Answer

Since $13 = 2 \cdot 5 + 3$, the remainder when $13$ is divided by $5$ is $3$.

Related Question