100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Class notes

Number Theory - Euclidean Algorithm

Rating
-
Sold
-
Pages
7
Uploaded on
21-11-2021
Written in
2020/2021

Euclidean Algorithm is a method use to determine Greatest Common Divisor of large numbers.

Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
November 21, 2021
Number of pages
7
Written in
2020/2021
Type
Class notes
Professor(s)
Self study
Contains
All classes

Subjects

Content preview

Euclidean Algorithm
Euclidean Algorithm - is a method use to determine Greatest Common Divisor of large numbers.

Greatest Common Divisor (GCD) - is the largest number that divides evenly into each number in a
given set of numbers. (also called Greatest Common Factor, GCF).

Quotient (q) 2
Divisor (x) 2 ⟌5 Dividend (y)
4
1 Remainder ( r)

Compare the division method above to the equivalent equation of its multiplication format;

5 = 2(2) + 1, y = q(x) + r

Euclidean algorithm uses this linear equation to solve for GCD of two numbers.

, e.g. Find the GCD of given numbers; 54 and 102.

The first step is the greater number is always the value of y, the lesser number will be the value of x in
the equation.
y = q(x) + r 102 = q(54) + r, next is to determine how many 54 in 102; 102/54 =1
102 = 1(54) + 48, then the value of r is the remainder; 102 - 54 = 48

Repeat the process using y = q(x) + r until the remainder (r) will be zero. But this time, the value of x
earlier will be the value y, then the remainder will be the value of x.

54 = q(48) + r, how many 48 in 54; 54/48 = 1
54 = 1(48) + 6, remainder; 54 - 48 = 6

Repeat the process, this time x = 6, y = 48;

48 = q(6) + r, how many 6 in 48; 48/6 = 8
48 = 8(6) + 0, remainder; 48 - 48 = 0

Since the remainder is 0, the GCD of 54 and 102 is 6. ( the last value of x or in other books stated the
last value of r before r = 0, which is also equal to 6) GCD(54,102) = 6
$3.49
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
Ninuio

Get to know the seller

Seller avatar
Ninuio Midway Colleges, Inc
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
4 year
Number of followers
0
Documents
19
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions