Division algorithm
From Maths
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:
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 0≤r<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)
Contents
[hide]Definition
Given two positive integers, a∈N and b∈N+, 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 q∈N and r∈N such that:
- a=bq+r with 0≤r<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
- Jump up ↑ The mathematics of ciphers, Number theory and RSA cryptography - S. C. Coutinho