next up previous contents
Next: Example Up: Euclid's Algorithm Previous: Euclid's Algorithm

Integer Division

Euclid's algorithm is a sequence of integer divisions. Given two numbers a and b, where b is smaller than a, we may divide

\begin{displaymath}a= q\cdot b + r
\end{displaymath}

where q is an integer called the quotient and r is an integer called the remainder which must satisfy $0 \le r < b$.

Suppose a=97 and b=13. Then $97=7\cdot 13+ 6$, which means q=7and r=6.



David J. Wright
2000-09-11