4.3. The Euclidean Algorithm
One of the basic techniques of number theory is the Euclidean
algorithm, which is a simple procedure for determining the greatest common
divisor of two positive integers.
Greatest Common Divisor
Recall that nonzero b is defined
to be a divisor of a if a = mb for some m, where a, b, and m are integers.
We will use the notation gcd(a, b) to mean the greatest common divisor of
a and b. The
positive integer c is said to be the greatest
common divisor of a and b if
An equivalent definition is the following:
gcd(a, b) = max[k, such that
k|a and k|b]
Because we require that the greatest common divisor be
positive, gcd(a, b) = gcd(a, b) = gcd(a, b) = gcd(a, b). In general, gcd(a,
b) = gcd(|a|,
|b|).
Also, because all nonzero integers divide 0, we have gcd(a, 0) = |a|.
We stated that two integers a
and b are relatively prime if their only common
positive integer factor is 1. This is equivalent to saying that a and b are relatively
prime if gcd(a, b)
= 1.
|
STUDY TOOLS, DETAILS OF ELECTRONICS AND NON ELECTRONICS SOFTWARES.TECHNO QUERIES & STORIES ABOUT FAMOUS PERSONALITIES .
Monday, 18 March 2013
The Euclidean Algorithm
Subscribe to:
Post Comments (Atom)
-
Finding the Greatest Common Divisor The Euclidean algorithm is based on the following theorem: For any nonnegative integer a and any...
-
7.2. Traffic Confidentiality We mentioned in Chapter 1 that, in some cases, users are concerned about security from traffic analysis....
No comments:
Post a Comment