Question #247185

Find a div b and a mod b when:

(a) a = 30303, b = 333

(b) a = −765432, b = 38271



1
Expert's answer
2021-10-06T15:22:31-0400

(a)


a div b=30303 div 333=91a\ \text{div}\ b=30303\ \text{div}\ 333=91

333(91)=30303333(91)=30303

amodb=30303mod333=0a\mod b=30303\mod 333=0

(b)


a div b=765432 div 38271=21a\ \text{div}\ b=−765432\ \text{div}\ 38271=-21

38271(21)+38259=76543238271(-21)+38259=−765432

amodb=765432mod38271=38259a\bmod b=−765432\bmod 38271=38259


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS