Prove that $a\bmod b = a-b$ if $\frac{a}{2}\lt b\leq a$.
I know that $a\bmod b = a - qb$ for some $q\in \mathbb{Z}$ but I can't see how does the constraint $\frac{a}{2}\lt b\leq a$ help with $q = 1$
Prove that $a\bmod b = a-b$ if $\frac{a}{2}\lt b\leq a$.
I know that $a\bmod b = a - qb$ for some $q\in \mathbb{Z}$ but I can't see how does the constraint $\frac{a}{2}\lt b\leq a$ help with $q = 1$