highest common factor of 30 and 42

asked by guest
on Jan 31, 2025 at 2:43 pm



You asked:

Find the greatest common factor of the following numbers: 30,4230, 42.

MathBot Answer:

Method 1:

66 is the greatest common divisor of 3030 and 4242.


The greatest common divisor of two integers is the largest positive integer that divides both integers.

The greatest common divisor of integers bb and aa is written as gcd(b,a)\operatorname{gcd}(b,a).


The greatest common divisor can be computed by Euclid's algorithm, which is based on repeated application of the following fact:gcd(b,a)=gcd(a,r)\operatorname{gcd}(b, a) = \operatorname{gcd}(a, r) where rr is the remainder of bb divided by aa, and 0<ab0 < a \le b.


Euclid's algorithm for computing the greatest common divisor of 3030 and 4242:

gcd(42,30)=gcd(30,12)\operatorname{gcd}(42, 30) = \operatorname{gcd}(30, 12), since 1212 is the remainder when 4242 is divided by 3030.

gcd(30,12)=gcd(12,6)\operatorname{gcd}(30, 12) = \operatorname{gcd}(12, 6), since 66 is the remainder when 3030 is divided by 1212.

gcd(12,6)=6\operatorname{gcd}(12, 6) = 6, since 66 divides 1212.


Method 2:

The greatest common divisor of two integers is the largest positive integer that divides both integers.

The prime factorization of 3030 is 2×3×52 \times 3 \times 5.

The prime factorization of 4242 is 2×3×72 \times 3 \times 7.

The GCD is the minimum of the prime powers of the two numbers. Find the greatest common divisor by multiplying the prime number powers together, including only the lowest prime number power of those prime factors which are common to both numbers.

gcd(30,42)=2×3=6.\text{gcd}(30, 42) = 2 \times 3 = 6.