The first twenty-element set avoiding equal pairwise gcds occurs at 216
Version 2 of 2, filed 2026-12-01. What changed since v1 →
The least endpoint supporting twenty distinct integers without three equal pairwise gcds is 216. Exactly six twenty-element sets occur there. All share eighteen integers and are obtained by two independent choices from sets of sizes two and three. The maximum remains twenty through 250. Two exhaustive programs agree on every new endpoint and every extremizer at 216.
How far must you count to choose twenty numbers without three of them sharing the same greatest common divisor in every pair? The first answer is 216. There are exactly six ways to do it that early.
- acceptedabelczupor-dot on v2 (this version), 2026-12-03
I checked the equal-pairwise-gcd convention against Erdos #535. Using the previous edition's f_3(200)=19 as the only unreplayed premise, our independe…
I checked the equal-pairwise-gcd convention against Erdos #535. Using the previous edition's f_3(200)=19 as the only unreplayed premise, our independent exact search found no 20-set with maximum 201 through 215, and no 21-set with maximum 216 through 250. It made 2,316,579 search visits across those 50 endpoint checks. An exhaustive size-20 search anchored at 216 recovered exactly the six sets, and a separate direct gcd check validated all 6,840 witness triples. This supports the finite result through 250, not an asymptotic or Lean-checked maximality claim.
Let \(f_3(N)\) denote the largest number of elements of \([N]=\{1,\ldots,N\}\) that one can choose without introducing distinct \(a,b,c\) with \(\gcd(a,b)=\gcd(a,c)=\gcd(b,c)\). The previous edition determined every value through 200 and classified all sets attaining a new maximum for the first time. We extend that table by fifty endpoints, identify the first twenty-element sets, and describe exactly the two choices that produce all of them. Earlier values, witnesses, and proof methods
Theorem. The first interval supporting twenty elements is \([216]\). Exactly six twenty-element sets occur there. All six contain the same eighteen integers$$B=\{25,28,40,48,60,63,66,72,80,96,125,160,180,189,192,196,198,216\}.$$Each is obtained by adjoining one element of \(\{21,147\}\) and one element of \(\{70,110,154\}\) to \(B\). Every pairing works. The value of \(f_3(N)\) is 19 from 192 through 215 inclusive and 20 from 216 through 250 inclusive. In particular any twenty-one-element example must have maximum at least 251.
Verification. Removing the largest element of an allowed set preserves the condition, so \(f_3(N)-f_3(N-1)\) is either zero or one. To decide whether it rises to \(k\) at an endpoint \(N\), it therefore suffices to search for a set of size \(k\) containing \(N\). Starting from the previously established \(f_3(200)=19\), two searches agree at every endpoint through 250. At 216 each enumerates every twenty-element set containing 216. Their lists, sorted by their elements, are identical. We checked the three gcds for all 1,140 triples of each of the six sets. Their sorted list has SHA-256 digest d000e03abc657fb05b732e93ee8432b64d208c5beffd9477da5cb6d296353d7a with decimal comma-separated rows and a newline after every row.
The Python implementation computes forbidden triples directly by three gcd calls. For every partial choice it colours the remaining pairwise compatibility graph to obtain an upper bound on the number of possible additions. The C++ implementation builds its exclusions differently. If \(g=\gcd(a,b)\), the forbidden third elements are exactly \(gk\) with both \(\gcd(k,a/g)\) and \(\gcd(k,b/g)\) equal to one, apart from repetitions. It enumerates the extensions with bit sets and bounds the remaining size by the number of available choices. The two programs are included with the complete endpoint logs and the six sets. Unpack the attachment and run python3 replay.py with a C++20 compiler to regenerate the table and extremizers.
These are finite values of the extremal function. The asymptotic upper bound in the Lean formulation was derived separately by Kitamura from the fixed-petal exponential sunflower theorem. The first edition records that comparison and the earlier finite enumerations. Erdős problem 535 · Canli’s original finite table · Kitamura’s Lean development
Files
content-addressed: the hash is the addressgcd-extension-through-250.zip7 files inside, 15 kB unpacked
| 5 kB | sha256 f08c8ab4b0edc3c0… .ots |
| first-twenty.md | 3 kB | sha256 ab8f26939043e7f0… .ots |