FINAL TOOLBOX
02 // Visual Math & Finance SolversGCD(A,B) × LCM(A,B) = A × B

Visual LCM & GCD (HCF) Prime Factor Venn & Tree Solver

Given prime factorizations $A = \prod p_i^{a_i}$ and $B = \prod p_i^{b_i}$, the Greatest Common Divisor takes minimum exponents $\gcd(A,B) = \prod p_i^{\min(a_i,b_i)}$, the Least Common Multiple takes maximum exponents $\text{lcm}(A,B) = \prod p_i^{\max(a_i,b_i)}$, and $\gcd(A,B) \times \text{lcm}(A,B) = A \times B$.

GCD(A,B) × LCM(A,B) = A × B

Inputs & Parameters (2)

2±1720
2±1720
RECURSIVE FACTOR TREE FOR N = 84847123422PRIME VENN: N=84 & M=126/2GCD42/3LCM(84, 126) = 252teal nodes = prime factors84 = 2 × 2 × 3 × 7
Prime Factorization (84)
2^2 × 3 × 7
4 prime leaves in tree
Total Divisors τ(84)
12 divisors
Smallest prime factor = 2
GCD(84, 126) [HCF]
42
Shared factors: 2×3×7
LCM(84, 126)
252
Check: 42 × 252 = 10,584

20-Row Comparison Table

Compare across:
#First Integer (A) Prime Factor Count Ω(N)LCM(N, M)Prime Factors of N
01221262
024022,5202 × 2 × 2 × 5
037861,6382 × 3 × 13
04115114,4905 × 23
0515392,1423 × 3 × 17
06191124,066191
07229128,854229
08267311,2143 × 89
09304219,1522 × 2 × 2 × 2 × 19
10342182,3942 × 3 × 3 × 19
11380223,9402 × 2 × 5 × 19
12418226,3342 × 11 × 19
1345578,1905 × 7 × 13
14493162,11817 × 29
1553197,4343 × 3 × 59
16569171,694569
17607176,482607
18644145,7962 × 2 × 7 × 23
19682242,9662 × 11 × 31
20720185,0402 × 2 × 2 × 2 × 3 × 3 × 5
Was this tool helpful?

Key Analytical Takeaways

  • 01The shared prime factors in the overlap of $A$ and $B$ multiply to form $\gcd(A,B)$ (also called Highest Common Factor, HCF).
  • 02Multiplying the shared $\gcd$ primes by the remaining unshared primes of both numbers yields $\text{lcm}(A,B)$.
  • 03When $\gcd(A,B) = 1$, the two integers share no prime factors and are called coprime (relatively prime), so $\text{lcm}(A,B) = A \times B$.

Frequently Asked Questions

What is the difference between GCD, GCF, and HCF?+

Greatest Common Divisor (GCD), Greatest Common Factor (GCF), and Highest Common Factor (HCF) are three names for the exact same value: the largest positive integer that divides both A and B with zero remainder.

How is LCM used when adding fractions?+

The Least Common Denominator (LCD) of two fractions a/b and c/d is simply the LCM of their denominators b and d.

What does it mean when GCD(A, B) equals 1?+

When two integers share no common prime factors, their GCD is 1; they are called coprime (or relatively prime), and their least common multiple is simply their product A × B.