Least Common Multiple Calculator
Least Common Multiple Calculator
Factor Tree

LCM Prime Factor Tree Calculator

Build prime factor branching trees for each number before finding the LCM.

LCM Prime Factor Tree Calculator Inputs

Integers to split into prime branches

Calculation Result Verified Result
Answer
--
Calculation Output

Step-by-Step Explanation

Calculating initial values...

How LCM Prime Factor Tree Calculator Works?

The LCM Prime Factor Tree Calculator works by branching each number into two factors repeatedly until every branch end holds a prime.

1. Splits the number once

48 branches into 6 and 8.

2. Splits composite branches again

6 becomes 2 and 3, while 8 becomes 2 and 4, then 4 becomes 2 and 2.

3. Collects the leaves

The leaves of 48 read 2, 2, 2, 2, 3, which is 2⁴ × 3.

4. Merges the leaf sets

Highest leaf counts across both trees multiply into the LCM.

LCM Prime Factor Tree Calculator Formula

The LCM Prime Factor Tree Calculator counts leaves: each prime enters the answer as many times as it appears in the tree that holds it most often.

LCM = product of p^max(leaf count of p)

Formula Terms

Leaf
Prime at the end of a tree branch.
Leaf count
Number of times one prime appears in a single tree.
Branch split
Division of a composite node into two factors, repeated until primes remain.

Worked Example

  1. 1Input: 48 and 180.
  2. 2Tree of 48 leaves: 2, 2, 2, 2, 3.
  3. 3Tree of 180 leaves: 2, 2, 3, 3, 5.
  4. 4Leaf maxima: four 2s, two 3s, one 5.
  5. 5LCM = 16 × 9 × 5 = 720.

LCM Prime Factor Tree Calculator Conversion Table

The table below lists the leaf sets of 7 numbers and the tree depth needed.

NumberFirst splitLeavesDepth
486 × 82, 2, 2, 2, 34
18018 × 102, 2, 3, 3, 53
606 × 102, 2, 3, 52
10010 × 102, 2, 5, 52
844 × 212, 2, 3, 72
22515 × 153, 3, 5, 52
97prime970

A prime input such as 97 produces a tree of depth 0, since no split is possible.

What is LCM Prime Factor Tree Calculator?

The LCM Prime Factor Tree Calculator is a branching solver that builds a factor tree for each input and combines the leaf primes into a least common multiple.

Different first splits lead to the same leaves. Starting 48 as 6 × 8 or as 4 × 12 both end with 2, 2, 2, 2, 3, which demonstrates the uniqueness of prime factorisation.

Tree depth measures how composite a number is. The value 48 needs depth 4, while 60 finishes at depth 2.

What are the uses of LCM Prime Factor Tree Calculator?

The LCM Prime Factor Tree Calculator has 4 main uses.

  • Teaching factorisation to beginners

    Branching needs no exponent notation at the start.

  • Showing split independence

    Two different first splits of 48 produce identical leaf sets.

  • Preparing exponent form

    Counting four 2s converts the leaf list into 2⁴.

  • Identifying primes

    A number with no valid split, such as 97, is prime by construction.

Related LCM Calculators

View All →