QUANTAVANE

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

First values
ng(n)how
11exact (exhaustive)
22exact (exhaustive)
33exact (exhaustive)
43exact (exhaustive)
54exact (exhaustive)
65exact (exhaustive)
75exact (exhaustive)
86exact (exhaustive)
96exact (exhaustive)
107exact (exhaustive)
117exact (exhaustive)
128exact (exhaustive)
138exact (exhaustive)
149exact (exhaustive)
159exact (exhaustive)
1610exact (exhaustive)
2011best known (ours)
2412best known (ours)
3014best 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.

Cells
CellNValueStatus
tri-distinct-443exact
tri-distinct-554exact
tri-distinct-665exact
tri-distinct-775exact
tri-distinct-886exact
tri-distinct-996exact
tri-distinct-10107exact
tri-distinct-11117exact
tri-distinct-12128exact
tri-distinct-13138exact
tri-distinct-14149exact
tri-distinct-15159exact
tri-distinct-161610exact
tri-distinct-171710best known
tri-distinct-181810best known
tri-distinct-191911best known
tri-distinct-202011best known
tri-distinct-212111best known
tri-distinct-222212best known
tri-distinct-232312best known
tri-distinct-242412best known
tri-distinct-252512best known
tri-distinct-262614best known
tri-distinct-272714best known
tri-distinct-282814best known
tri-distinct-292914best known
tri-distinct-303014best 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

References