211k views
2 votes
For the given values of n and d, find integers q and r such that

n = dq + r
and
0 ≤ r < d.
n = 26, d = 50

q=
r=

User Chakrapani
by
8.4k points

1 Answer

4 votes

Answer:

  • q = 0
  • r = 26

Explanation:

You want integers q and r such that 26 = 50q +r, and 0 ≤ r < 50.

Q

Solving for q, we have ...

(26 -r)/50 = q

For r in the range 0–49, possible values of q are in the range ...

(26 -0)/50 ≥ q > (26 -49)/50

0.52 ≥ q > -0.46

The only integer in that range is ...

q = 0

R

Then the value of r is ...

26 = 50·0 +r

r = 26

<95141404393>

User Navid Golforoushan
by
8.8k points

Related questions