If a=5
a=bq+r
5=bq+r
if r=1
bq=4
b=2
q=2
a=5, b=2 , q=2, r=1
As we can see from the equation here a>b
If a=5
a=bq+r
5=bq+r
if r=-7
bq=12
q=2
b=6
a=5,,b=6,q=2, r=-7
If a=4
a=bq+r
4=bq+r
if r=-8
bq=12
q=2
b=6
a=4,,b=6,q=2, r=-8
Therefore here a<b , r is always negative and q has to be a small number