Least Common Multiple Calculator
Least Common Multiple Calculator
LCM Matrix Table

LCM Table Generator

Create an interactive 2D table grid of pairwise LCM values across a custom range.

LCM Table Generator Inputs

Table size up to 15

Calculation Result Verified Result
Answer
--
Calculation Output

Step-by-Step Explanation

Calculating initial values...

How LCM Table Generator Works?

The LCM Table Generator works by building an N by N grid and filling every cell with the least common multiple of its row number and column number.

1. Reads the grid dimension

A dimension of 10 produces rows and columns numbered 1 through 10.

2. Computes each cell

Cell (6, 8) holds LCM(6, 8) = 24, found through the GCD division.

3. Mirrors across the diagonal

Cell (6, 8) and cell (8, 6) carry the same value, since LCM is commutative.

4. Fills the diagonal with the row number

LCM(n, n) = n, so the diagonal reads 1, 2, 3 and upward.

LCM Table Generator Formula

The LCM Table Generator fills cell (i, j) with LCM(i, j) = i × j ÷ GCD(i, j) for every row i and column j.

cell(i, j) = i × j ÷ GCD(i, j)

Formula Terms

i, j
Row and column index, each running from 1 to N.
Cell count
N² cells in total, of which N(N+1) ÷ 2 are distinct.
Symmetry
The grid is symmetric about the diagonal, so half of it can be mirrored.

Worked Example

  1. 1Input: grid dimension 10.
  2. 2Row 1 repeats the column numbers, since LCM(1, j) = j.
  3. 3Cell (4, 6) holds 12, because GCD(4, 6) = 2 and 24 ÷ 2 = 12.
  4. 4The diagonal reads 1 through 10.
  5. 5The largest entry is LCM(9, 10) = 90.

LCM Table Generator Conversion Table

The table below shows the size of the generated grid for 6 dimensions.

Dimension NCellsDistinct values to computeLargest entry
5251520
6362130
7492842
8643656
101005590
1214478132
15225120210

Symmetry halves the work: a 15 by 15 grid holds 225 cells yet needs only 120 computed values.

What is LCM Table Generator?

The LCM Table Generator is a grid builder that produces a complete multiplication-style table of pairwise least common multiples.

A full grid shows patterns a single answer hides. Coprime rows produce plain products, so row 7 of a 10 by 10 grid reads 7, 14, 21, 28, 35, 42, 7, 56, 63, 70.

The largest entry in an N by N grid is almost always LCM(N − 1, N), since consecutive integers are coprime. For N = 10 that value is 90.

What are the uses of LCM Table Generator?

The LCM Table Generator has 4 main uses.

  • Printing a classroom reference

    A 12 by 12 grid covers the pairs most exercises use.

  • Spotting coprime patterns

    Cells equal to i × j mark pairs with GCD 1.

  • Checking many answers at once

    One grid replaces dozens of separate lookups.

  • Teaching symmetry

    Matching cells either side of the diagonal demonstrate commutativity.

Related LCM Calculators

View All →