Division algorithm

From Maths
Jump to: navigation, search
Grade: A*
This page requires some work to be carried out
Some aspect of this page is incomplete and work is required to finish it
The message provided is:
Tasks:
  • Move definition of integer division to own page Alec (talk) 16:48, 7 December 2017 (UTC)
  • Add algorithm - it's the crappy one that just subtracts until 0r<b actually holds, and adds one to q each iteration Alec (talk) 16:48, 7 December 2017 (UTC)
  • Move proof of uniqueness of divisor and remainder into own page Alec (talk) 16:48, 7 December 2017 (UTC)
  • Work on negative numbers Alec (talk) 16:48, 7 December 2017 (UTC)

Definition

Given two positive integers, aN and bN+, we wish to compute a÷b (with remainder), we say "a divided by b"[1], we call:

  • a the dividend (the "numerator" of the fraction ab)
  • b the divisor (the "denominator" of the fraction ab)

The outputs are two integers qN and rN such that:

  • a=bq+r with 0r<b

We call:

  • q the quotient
  • r the remainder

Important theorems

[Expand]

Theorem: For a given a,b the q and r are unique, regardless of how they are computed


See also

References

  1. Jump up The mathematics of ciphers, Number theory and RSA cryptography - S. C. Coutinho