Suppose you have two lengths of rope. One piece is \(36\) inches long and the other is \(24\) inches. You want to cut both pieces into strips of equal length that are as long as possible. How should you cut the pieces?
You can use the concept of the greatest common divisor to solve this because you are dividing the lengths of rope into smaller pieces (factors) of \(48\) and \(32\), and you are looking for the longest (greatest) possible length that is common to both original pieces. So, since the greatest common divisor of \(48\) and \(32\) is \(1\), you should cut each piece to be \(12\) inches long.
Here you are using the concept of the greatest common divisor to split something into smaller sections. There are many other applications of the greatest common divisor and this article will explain what the greatest common divisor is and two different methods of finding it.
Meaning of the Greatest Common Divisor
So what is a greatest common divisor anyway?
The greatest common divisor of a group of integers, often abbreviated to GCD, is defined as the greatest possible natural number which divides the given numbers with zero as the remainder.
To cover the case when both of your integers is zero, \(\text{GCD}(0, 0)\) is defined to be \(0\).
The greatest common divisor has many practical applications ranging from Simplifying Fractions and number theory to encryption algorithms.
The greatest common divisor (GCD) is also called the greatest common factor (GCF) or the highest common factor (HCF).
Let's take a look at a quick example.
What is \( \text{GCD}(4, 12)\)?
Answer:
The GCD of \(4\) and \(12\) is \(4\), since \(4\) is the largest natural number that divides \(4\) and \(12\) at the same time.
One more quick example.
What is \(\text{GCD}(-36, 16)\)?
Answer:
You know that the divisors of \(-36\) are \(\pm 36, \pm 18, \pm 9, \pm 3, \pm 2, \pm 1\). The divisors of \(16\) are \(16, 8, 4, 2, 1\). Remember that when you are choosing the GCD you always take the largest natural number that divides both, so the GCD is always a positive number. Looking at the lists of divisors, you can then see that \(\text{GCD}(-36, 16) = 2\).
What kinds of things are true about the GCD?
Greatest Common Divisor Rules
For integers \(a, b\) and \(c\), the GCD has the following properties:
Identity Property: \(\text{GCD} (a,0)=|a|\).
The Commutative Property: \(\text{GCD} (a,b)=\text{GCD} (b,a)\).
Since \(\text{GCD} (2, 3) = 1 \) you can now say that
\[ \text{GCD} (24, 36) = 12.\]
Notice that before you can find the GCD, you need to know what divisors (or factors) the numbers have, especially what common divisors they have. Remember that a factor of a number \(a\) is a number \(b\) that divides into \(a\) with no remainder.
There are two main ways to find the Greatest Common Divisor (GCD):
finding all common divisors (also called the common factor method); and
using the Euclidean algorithm.
The Common Factor Method
For this method, you use inspection to write out all the divisors or factors of the numbers given choose the largest one. This will be your greatest common divisor. This is easiest to see using an example.
Suppose we want to find the GCD of \(12, 46\) and \(78\).
Answer:
By inspection, you can list all the factors of the three numbers:
The factors of \(12\) are \(1, 2, 3, 4, 6, 12\).
The factors of \(46\) are \(1, 2, 23, 46\).
The factors of \(78\) are \(1, 2, 3, 6, 13, 26, 39, 78\).
Since the largest number that appears on all three lists is \(2\), you would write \(\text{GCD} (12,46,78)=2\).
Let's take a look at another example.
Find the greatest common divisor of \(15\) and \(36\).
Answer:
You can start by writing out all the divisors of both \(15\) and \(36\):
The divisors of \(15\) are \(1, 3, 5, 15.\)
The divisors of \(36\) are \(1, 2, 3, 4, 6, 9, 12, 18,36.\)
Now you can see that there are two divisors that are common to both \(15\) and \(36\) are \(1\) and \(3\).
You pick the one that is bigger, so \(3\) is the greatest common divisor of \(15\) and \(36\).
Now in order to find the GCD for bigger numbers, finding the common divisors method will become a very long and tedious process. That is why you use the Greatest Common Divisor Algorithm, also known as the Euclidean Algorithm.
Greatest Common Divisor Algorithm
The Euclidean algorithm is a computational process that computes the GCD of two positive integers. It uses remainders to find the greatest common divisor between the two numbers.
First let's look at the process of long division. Take two positive integers, \(a\) and \(b\) such that \(a>b\). Euclidean division is a process to write \(a\) and \(b\) in the form
\[a=qb+r\]
where \(q\) is a positive integer called the quotient, and \(0\leq r<b\) is called the remainder.
Let's look at a quick example of long division.
Taking the integers \(44\) and \(17\) and performing long division gives
If you like you can use the Euclidean Algorithm to find the GCD of two of the numbers and then use it again to find the GCD of all three.
Find the greatest common divisor of \(32\), \(254\) and \(372\).
Answer:
First you would use the Euclidean Algorithm to find \(\text{GCD} (32,254) = 2\). Then you can use the Euclidean Algorithm again to see that \(\text{GCD} (2,372) =2\).
Finding the GCD of two polynomials is very similar to finding the GCD of two numbers. It requires Factoring Polynomials, and sometimes long division of polynomials. For more information on those topics see Operations with Polynomials and Factoring Polynomials.
Greatest Common Divisor - Key takeaways
The greatest common divisor of a set of numbers is the largest natural number by which all the numbers in the set can be divided by.
The GCD can be found by finding all the factors of the set of numbers and identifying the largest factor that is common to all the numbers in that set. Alternatively, the GCD can be determined using the Euclidean Algorithm. This means for two integers \(a\) and \(b\), writing \(a\) in the form \(a=bq+r\) and repeating this process until \(r=0\). Both methods give you the same answer.
The GCD satisfies the following properties:
Identity Property: \(\text{GCD} (a,0)=|a|\).
The Commutative Property: \(\text{GCD} (a,b)=\text{GCD} (b,a)\).
How we ensure our content is accurate and trustworthy?
At StudySmarter, we have created a learning platform that serves millions of students. Meet
the people who work hard to deliver fact based content as well as making sure it is verified.
Content Creation Process:
Lily Hulatt
Digital Content Specialist
Lily Hulatt is a Digital Content Specialist with over three years of experience in content strategy and curriculum design. She gained her PhD in English Literature from Durham University in 2022, taught in Durham University’s English Studies Department, and has contributed to a number of publications. Lily specialises in English Literature, English Language, History, and Philosophy.
Gabriel Freitas is an AI Engineer with a solid experience in software development, machine learning algorithms, and generative AI, including large language models’ (LLMs) applications. Graduated in Electrical Engineering at the University of São Paulo, he is currently pursuing an MSc in Computer Engineering at the University of Campinas, specializing in machine learning topics. Gabriel has a strong background in software engineering and has worked on projects involving computer vision, embedded AI, and LLM applications.
Vaia is a globally recognized educational technology company, offering a holistic learning platform designed for students of all ages and educational levels. Our platform provides learning support for a wide range of subjects, including STEM, Social Sciences, and Languages and also helps students to successfully master various tests and exams worldwide, such as GCSE, A Level, SAT, ACT, Abitur, and more. We offer an extensive library of learning materials, including interactive flashcards, comprehensive textbook solutions, and detailed explanations. The cutting-edge technology and tools we provide help students create their own learning materials. StudySmarter’s content is not only expert-verified but also regularly updated to ensure accuracy and relevance.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept
Privacy & Cookies Policy
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.