# Two colours cover at most 29 points in any seven-colouring of 78

Colour the integers from 1 through 78 so that every four-term arithmetic progression uses at least three colours. If a seven-colouring exists, any two of its colours together occur on at most 29 positions. We also give a prescription of just 27 positions in two colours for which nine colours are necessary and sufficient on the full interval. Erasing any one of the 27 prescriptions allows an eight-colouring.

## Theorem 6. The two largest classes

Earlier results place the maximum class size at 16 in a seven-colouring and the sum of its two largest classes at most 30. A sum of 30 could therefore occur only with sizes 16 and 14 or with sizes 15 and 15. We exhaust both possibilities. If a class has size 16, every other class now has size at most 13. If the largest class has size 15, every other class has size at most 14. The minimum palette on the unrestricted interval remains either seven or eight. [Earlier class theorem](https://isitsolved.com/journal/39a010b1757a) · [Canli’s seven-colouring of 77](https://github.com/arhancanli/quantavane-erdos-results/tree/6a4c61d4b873f9cccc66c903993d319d3d2c1250/160) · [Schluer’s finite bounds](https://github.com/scottschluer/erdos160/tree/c5745c8e359e4f0602382c18bc512c0e9559207b/results/erdos160-small-values)

A candidate class meets every progression at most twice. Two candidates are compatible when they are disjoint and no progression lies in their union. These conditions suffice to extend the two prescribed classes if arbitrarily many additional colours are available. Assign a different fresh colour to each remaining position. A progression with just one fresh position must already have both prescribed colours, and a progression with two fresh positions has a third colour at one of its other positions.

| Class sizes | Compatible pairs up to reversal and exchange of equal classes | Pairs admitting seven colours |
|---|---:|---:|
| 16 and 14 | 238,587 | 0 |
| 15 and 15 | 328,251 | 0 |

Two enumerations divide the 78 sites differently. One splits the sites by parity, and one uses the left and right intervals of length 39. In each, a candidate cannot contain three points of any progression. Once two points of a forbidden triple are selected, the third is removed. Every subset avoiding these exclusions appears in the increasing or decreasing traversal corresponding to its two halves. Reflection allows the first half to be at least as large as the second, provided the reflected sets are restored. The two programs agree on the individual sets, including all 25,631 of size 16 and all 2,107,254 of size 15.

For the mixed sizes the first pair enumeration fixes each of the 12,869 size-16 representatives and generates its size-14 partners directly. Selecting two members of a progression for the first class forbids selecting both remaining points for the partner. The second enumeration streams 39,898,661 parity representatives of size 14, including both orientations when the two parity counts agree. It compares each representative with the full size-16 table, testing disjoint positions and disjoint sets of progressions met twice. After reversal is accounted for, the complete pair lists agree entry by entry.

For the equal sizes one method stores each member of the full size-15 table as a set of 1,053 features. These are the 78 occupied-site indicators and 975 indicators for progressions met twice. Two candidates fit exactly when the feature sets are disjoint. A binary search tree groups the sets by feature membership. A query can discard a group if every member contains a feature of that query. The leaf test takes the full intersection. A separate method first removes candidates sharing an occupied position by intersecting bit masks for groups of eight sites. It then tests the progression intersections of the survivors. The two complete unordered lists agree up to simultaneous reflection. Random sampling is used only to choose the tree’s splitting feature. It removes no candidates.

For each retained pair the two colours already used are reserved exactly for their prescribed sets. The other 48 positions have five fresh colours. One exhaustive solver tracks which pairs of free positions may be equal. A progression may contain at most one equal pair. The other solver reads the progression colours directly and prunes a branch whenever the number of distinct colours already present plus its number of blank positions falls below three. At equality every blank must avoid each colour already present. Both solvers try each available unused colour up to renaming and return a word only after checking every progression. Each rejected the entire table for both class-size patterns. The archive regenerates the pair lists and runs both solvers. Its shorter controls include admissible eight-colour completions for each pattern.

## Theorem 7. A minimal prescription forcing nine colours

Prescribe colour 0 on the following 16 positions.

    7  9  15  17  20  36  38  41  45  48  50  66  69  70  76  77

Prescribe colour 1 on the following 11 positions.

    1  4  8  13  14  28  32  33  62  65  67

Every other site may use any colour, including 0 or 1. This prescription extends to a valid nine-colouring. No eight-colouring extends it. For each of its 27 single-clue deletions the archive supplies a valid eight-colouring. Hence every proper subset of these clues extends to eight colours. The result gives inclusion minimality within this prescription. The smallest possible number of clues in any obstruction remains undetermined.

For the eight-colour lower bound, a propositional variable assigns a colour to a blank site, with exactly one choice per site. For each progression and each unordered pair of palette colours, a clause requires at least one of its sites to lie outside that pair. The clause is already true if a prescribed site lies outside the pair. A blank can lose colour 0 or 1 in advance only when assigning it that colour leaves some progression with too few blank sites to reach three distinct colours. The six other colour names can be ordered by first occurrence, since they are absent from the prescription. This yields an equisatisfiable finite formula. CaDiCaL produced an LRAT refutation. A separate LRAT checker verified the refutation against the formula regenerated from the 27 clues. The upper-bound witnesses were checked independently on all 975 progressions. [CaDiCaL](https://github.com/arminbiere/cadical) · [LRAT checker](https://github.com/marijnheule/drat-trim/blob/master/lrat-check.c)

The archive also gives a size-16/14 prescription and a size-15/15 prescription for which the exact palette is nine. In each, an attempt to place either prescribed colour on any further site already violates a progression, regardless of how the remaining sites are filled. Separate LRAT refutations and nine-colour witnesses certify both values. The proof of the global 29-position bound uses exhaustive native programs. The LRAT certificates cover the three specific prescriptions.
