LCM Table Generator
Create an interactive 2D table grid of pairwise LCM values across a custom range.
LCM Table Generator Inputs
Step-by-Step Explanation
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.
A dimension of 10 produces rows and columns numbered 1 through 10.
Cell (6, 8) holds LCM(6, 8) = 24, found through the GCD division.
Cell (6, 8) and cell (8, 6) carry the same value, since LCM is commutative.
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.
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
- 1Input: grid dimension 10.
- 2Row 1 repeats the column numbers, since LCM(1, j) = j.
- 3Cell (4, 6) holds 12, because GCD(4, 6) = 2 and 24 ÷ 2 = 12.
- 4The diagonal reads 1 through 10.
- 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 N | Cells | Distinct values to compute | Largest entry |
|---|---|---|---|
| 5 | 25 | 15 | 20 |
| 6 | 36 | 21 | 30 |
| 7 | 49 | 28 | 42 |
| 8 | 64 | 36 | 56 |
| 10 | 100 | 55 | 90 |
| 12 | 144 | 78 | 132 |
| 15 | 225 | 120 | 210 |
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.