Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Euclidean algorithm
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Euclidean division === {{Main|Euclidean division}} At every step {{math|''k''}}, the Euclidean algorithm computes a quotient {{math|''q''<sub>''k''</sub>}} and remainder {{math|''r''<sub>''k''</sub>}} from two numbers {{math|''r''<sub>''k''β1</sub>}} and {{math|''r''<sub>''k''β2</sub>}} : {{math|1=''r''<sub>''k''β2</sub> = ''q''<sub>''k''</sub> ''r''<sub>''k''β1</sub> + ''r''<sub>''k''</sub>}}, where the {{math|''r''<sub>''k''</sub>}} is non-negative and is strictly less than the [[absolute value]] of {{math|''r''<sub>''k''β1</sub>}}. The theorem which underlies the definition of the [[Euclidean division]] ensures that such a quotient and remainder always exist and are unique.<ref>{{cite book|title=Abstract Algebra|last1=Dummit|first1=David S.|last2=Foote|first2=Richard M.|publisher=John Wiley & Sons, Inc.|year=2004|isbn=978-0-471-43334-7|pages=270β271}}</ref> In Euclid's original version of the algorithm, the quotient and remainder are found by repeated subtraction; that is, {{math|''r''<sub>''k''β1</sub>}} is subtracted from {{math|''r''<sub>''k''β2</sub>}} repeatedly until the remainder {{math|''r''<sub>''k''</sub>}} is smaller than {{math|''r''<sub>''k''β1</sub>}}. After that {{math|''r''<sub>''k''</sub>}} and {{math|''r''<sub>''k''β1</sub>}} are exchanged and the process is iterated. Euclidean division reduces all the steps between two exchanges into a single step, which is thus more efficient. Moreover, the quotients are not needed, thus one may replace Euclidean division by the [[modulo operation]], which gives only the remainder. Thus the iteration of the Euclidean algorithm becomes simply : {{math|1=''r''<sub>''k''</sub> = ''r''<sub>''k''β2</sub> mod ''r''<sub>''k''β1</sub>}}.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)