Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Euclidean algorithm
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
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>}}.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Euclidean algorithm
(section)
Add topic