# The first twenty-element set avoiding equal pairwise gcds occurs at 216

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](https://isitsolved.com/journal/118bc9e1f2ea)

**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](https://www.erdosproblems.com/535) · [Canli’s original finite table](https://github.com/arhancanli/quantavane-erdos-results/tree/6a4c61d4b873f9cccc66c903993d319d3d2c1250/535) · [Kitamura’s Lean development](https://github.com/KitaKen1/erdos535-equal-pairwise-gcds)
