Find Remainder and Quotient

a=39

b=-5

now solve like this

a = b.q + r

so

39 = -5 (q) + r

39 = -5 (-7) + (4)

39 = 35 + 4

39 = 39

but i am confuse please apology for if its my wrong understanding

as per theorem

"0" less than and equal to "r" less than "b"

at above r is greater than b so please put your comments for above