Discrete geometry · open
Distinct distances in the triangular grid.
Best known value: 14 (maximize), held by Quantavane (Arhan Canli) since 9 November 2026.
The problem
The triangular grid T_n is the set of points a + b*e^(i pi/3) with integers a, b >= 0 and a + b <= n - 1 (n(n+1)/2 points, a triangle of side n - 1 in the Eisenstein lattice); the squared distance between two of its points is da^2 + da*db + db^2. Let g(n) be the largest number of points of T_n whose pairwise distances are all different. Determine g(n); the headline cell is n = 30: find 15 or more points of T_30 with all distances distinct.
Why it is interesting
Erdos and Guy asked for the largest subset of the n x n square grid with all pairwise distances distinct, a discrete relative of Golomb rulers and of Erdos's distinct distances problem; for the square grid the answer is of order n^(2/3) up to logarithmic factors. In the Eisenstein lattice the possible squared distances are the Loschian numbers a^2 + ab + b^2 (OEIS A003136), which, like sums of two squares, have density zero, so the triangular grid has fewer available distances than the square grid of the same size and the extremal sets should be sparser. The first values g(n) for n <= 16 below are exact; how fast g(n) grows, and whether it is of order n^(2/3) as for the square grid, is open.
Is it new?
New. The sequence g(n) is not in the OEIS (the only match for its 16 known terms is A027923, an unrelated sequence defined by elementary symmetric functions that agrees on those terms by coincidence), and no paper on distinct-distance subsets of the triangular grid was found; the square-grid problem of Erdos and Guy is the closest.
Checked 9 November 2026, before the problem was added: 2 arXiv searches, 3 OEIS searches, and the keeper tables of the Open Problems Benchmark. Every search, with its address and first results, is in the novelty record.
First values
| n | g(n) | how |
|---|---|---|
| 1 | 1 | exact (exhaustive) |
| 2 | 2 | exact (exhaustive) |
| 3 | 3 | exact (exhaustive) |
| 4 | 3 | exact (exhaustive) |
| 5 | 4 | exact (exhaustive) |
| 6 | 5 | exact (exhaustive) |
| 7 | 5 | exact (exhaustive) |
| 8 | 6 | exact (exhaustive) |
| 9 | 6 | exact (exhaustive) |
| 10 | 7 | exact (exhaustive) |
| 11 | 7 | exact (exhaustive) |
| 12 | 8 | exact (exhaustive) |
| 13 | 8 | exact (exhaustive) |
| 14 | 9 | exact (exhaustive) |
| 15 | 9 | exact (exhaustive) |
| 16 | 10 | exact (exhaustive) |
| 20 | 11 | best known (ours) |
| 24 | 12 | best known (ours) |
| 30 | 14 | best known (ours) |
Exact values by exhaustive branch and bound over all subsets of T_n (tools/src/trigrid.c dist); larger n are our best known lower bounds.
Cells
The same question at each value of its parameter (N, the side of the triangular grid): 27 cells, 13 exact (an exhaustive search finished) and 14 best known (ours). Each cell has its certificate in the benchmark and is checked with the same checker.
| Cell | N | Value | Status |
|---|---|---|---|
| tri-distinct-4 | 4 | 3 | exact |
| tri-distinct-5 | 5 | 4 | exact |
| tri-distinct-6 | 6 | 5 | exact |
| tri-distinct-7 | 7 | 5 | exact |
| tri-distinct-8 | 8 | 6 | exact |
| tri-distinct-9 | 9 | 6 | exact |
| tri-distinct-10 | 10 | 7 | exact |
| tri-distinct-11 | 11 | 7 | exact |
| tri-distinct-12 | 12 | 8 | exact |
| tri-distinct-13 | 13 | 8 | exact |
| tri-distinct-14 | 14 | 9 | exact |
| tri-distinct-15 | 15 | 9 | exact |
| tri-distinct-16 | 16 | 10 | exact |
| tri-distinct-17 | 17 | 10 | best known |
| tri-distinct-18 | 18 | 10 | best known |
| tri-distinct-19 | 19 | 11 | best known |
| tri-distinct-20 | 20 | 11 | best known |
| tri-distinct-21 | 21 | 11 | best known |
| tri-distinct-22 | 22 | 12 | best known |
| tri-distinct-23 | 23 | 12 | best known |
| tri-distinct-24 | 24 | 12 | best known |
| tri-distinct-25 | 25 | 12 | best known |
| tri-distinct-26 | 26 | 14 | best known |
| tri-distinct-27 | 27 | 14 | best known |
| tri-distinct-28 | 28 | 14 | best known |
| tri-distinct-29 | 29 | 14 | best known |
| tri-distinct-30 | 30 | 14 | best known (headline) |
Exact cells: exhaustive branch and bound over the subsets of T_N (tools/src/trigrid.c, mode dist). Best known cells: randomized greedy construction and local search (tools/tri_distinct_search.py).
Best known value
14 for n = 30, held by Quantavane (Arhan Canli), 9 November 2026: the points in `refs/tri-distinct.txt`, found by randomized greedy construction with local search (tools/tri_distinct_search.py). Upper bound: the C(g, 2) squared distances are distinct nonzero Loschian numbers at most (n - 1)^2 = 841, and there are 236 of them, so C(g, 2) <= 236 and g(30) <= 22.
Bound on the other side: 22 (upper bound; C(g,2) <= 236, the number of nonzero Loschian numbers a^2 + ab + b^2 <= 841).
Check a solution
Text file: one point per line, 'a b' with a, b >= 0 and a + b <= 29 (lines starting with # are ignored). Score: the number of points (larger is better).
git clone https://github.com/arhancanli/quantavane-benchmark
cd quantavane-benchmark
python3 -I obb.py check tri-distinct FILE
The checker is ours, uses only the Python standard library, prints the exact value and accepts only valid certificates. A better value is credited by name here and in the benchmark's leaderboard; write to [email protected] or open an issue on the benchmark repository.
The problem file on GitHub All Originals