The last exception for two-colour Rado numbers
How long must a list 1 to n be before every red-blue colouring has a same-colour solution of x + y + c = k·z? For every k ≥ 3, this proof finds the last c (k odd or c even) where a known minimum length is not enough.
Colour the numbers 1, 2, …, n red or blue and look for a solution of x + y + c = k·z whose three numbers x, y, z are on that list and share one colour: for every k ≥ 3 and every c above c*(k) with k odd or c even, the smallest n that makes such a solution unavoidable is exactly LB(c, k) = ⌈(2⌈(c + 2)/k⌉ + c)/k⌉, while at c = c*(k) the list 1 to LB(c*(k), k) is not long enough, where c*(k) is k(k² + k − 4)/2 for odd k and k(k² − 2)/2 for even k.
Martinelli and Schaal (2007) proved that, for positive c and k, the smallest n that forces a same-colour solution is never below the formula LB(c, k) = ⌈(2⌈(c + 2)/k⌉ + c)/k⌉. Kim, Song and Hwang (2023) proved that the smallest n equals that formula for k ≥ 5 and every c ≥ 2k³ + 2k² − k with k odd or c even, asked exactly where the agreement starts, and conjectured that for k = 5 it starts at c = 66. This theorem gives the exact turning point for every k ≥ 3, and the 66 comes out as the case k = 5.
The turning point for k = 3
Take k = 3. The formula gives c*(3) = 3·(9 + 3 − 4)/2 = 12, so c = 13 is already past the turning point and c = 12 is the last exception. For both, LB works out to 8.
For c = 13 the equation is x + y + 13 = 3z. Seven numbers are not enough: colour 1, 2, 3, 4 red and 5, 6, 7 blue, and no solution inside 1 to 7 has a single colour.
With eight numbers there is no escape. Say 1 is red (if it is blue, swap the two colours). Now each colour is forced. 1 + 1 + 13 = 3·5, so 5 is blue. 1 + 7 + 13 = 3·7, so 7 is blue. 3 + 5 + 13 = 3·7 has 5 and 7 blue, so 3 is red. 3 + 8 + 13 = 3·8 has 3 red, so 8 is blue. 4 + 7 + 13 = 3·8 has 7 and 8 blue, so 4 is red. 5 + 6 + 13 = 3·8 has 5 and 8 blue, so 6 is red. But 1 + 4 + 13 = 3·6, and 1, 4 and 6 are all red. There is no way out.
For c = 12 the equation is x + y + 12 = 3z, and eight numbers can still be coloured: 1 red, 2 blue, 3 blue, 4 red, 5 blue, 6 red, 7 red, 8 blue. Counting a swap of x and y as the same solution, there are 11 solutions inside 1 to 8. You can check that each one uses both colours.
The colouring game, the formula and the turning point
The numbers 1 to n are each coloured red or blue. The colouring fails if some solution of x + y + c = k·z has all three of its numbers in one colour. The Rado number is the smallest n where every colouring has such a same-colour solution. Two formulas matter, the lower bound LB(c, k) and the turning point c*(k), and a value of c is called valid when k is odd or c is even.
- R is the Rado number
- A same-colour solution is unavoidable
- There is a same-colour solution
- c is valid for k
- The lower bound LB(c, k)
- The turning point c*(k)
- R is the Rado number
- A same-colour solution is unavoidable
- There is a same-colour solution
- c is valid for k
- The lower bound LB(c, k)
- The turning point c*(k)
For k ≥ 1, a list shorter than LB(c, k) is never long enough
Colour every number below ⌈(c + 2)/k⌉ red and every other number blue. Any two numbers x and y need a z too large to be red, and two blue ones need a z of at least LB(c, k). So on any list shorter than LB(c, k) this colouring has no same-colour solution, for every c and every k ≥ 1.
Nothing below LB is enough
If k ≥ 1 and n < LB(c, k), then some colouring has no same-colour solution of x + y + c = k·z up to n.
theorem RadoNu.lower {c : Nat} {k : Nat} {n : Nat} (hk : 0 < k) (hn : n < LB c k) : ¬Forced c k n- The two-block colouring
The two-block colouring avoids every solution
If k ≥ 1, x ≥ 1, y ≥ 1, z < LB(c, k) and x + y + c = k·z, then x, y and z are not all one colour in the two-block colouring.
theorem RadoNu.lower_col {c : Nat} {k : Nat} (hk : 0 < k) (x : Nat) (y : Nat) (z : Nat) (hx : 1 ≤ x) (hy : 1 ≤ y) (hz : z < LB c k) (e : x + y + c = k * z) : ¬(blockCol c k x = blockCol c k y ∧ blockCol c k y = blockCol c k z)- What rounding up means
A colouring that survives at c*(k)
At c = c*(k) an explicit colouring of 1 to LB has no same-colour solution, for every k ≥ 3. For odd k the colour of a number depends on its remainder when divided by k, with a size rule for multiples of k. For even k one number and one block of k − 1 consecutive numbers are blue and all others are red. Each recipe is checked by splitting into cases.
At c*(k), some colouring avoids every same-colour solution
For every k ≥ 3 there is a red-blue colouring with no same-colour solution of x + y + c*(k) = k·z among the numbers from 1 to LB(c*(k), k).
theorem RadoNu.T2.T2 (k : Nat) (hk : 3 ≤ k) : ∃ col, ∀ (x y z : Nat), 1 ≤ x → x ≤ LB (cstar k) k → 1 ≤ y → y ≤ LB (cstar k) k → 1 ≤ z → z ≤ LB (cstar k) k → x + y + cstar k = k * z → ¬(col x = col y ∧ col y = col z)The surviving colouring survives
Let k ≥ 3, and let x, y, z be from 1 to LB(c*(k), k) with x + y + c*(k) = k·z. Then x, y and z are not all one colour in the surviving colouring.
theorem RadoNu.T2.T2_col (k : Nat) (hk : 3 ≤ k) (x : Nat) (y : Nat) (z : Nat) (hx1 : 1 ≤ x) (hxN : x ≤ LB (cstar k) k) (hy1 : 1 ≤ y) (hyN : y ≤ LB (cstar k) k) (_hz1 : 1 ≤ z) (hzN : z ≤ LB (cstar k) k) (h : x + y + cstar k = k * z) : ¬(col k x = col k y ∧ col k y = col k z)
- The surviving colouring
- The surviving colouring for odd k
- The surviving colouring for even k
The odd colouring avoids every solution
Let k = 2j + 1 with j ≥ 1, let x, y ≥ 1 and z ≤ k(j + 2) − 1, and let x + y + k(k·j + 2j − 1) = k·z. Then x, y and z are not all one colour in the odd colouring.
theorem RadoNu.T2.odd_case {k : Nat} {j : Nat} (hk : k = 2 * j + 1) (hj : 1 ≤ j) (x : Nat) (y : Nat) (z : Nat) (hx1 : 1 ≤ x) (hy1 : 1 ≤ y) (hzN : z ≤ k * (j + 2) - 1) (h : x + y + k * (k * j + 2 * j - 1) = k * z) : ¬(colOdd k x = colOdd k y ∧ colOdd k y = colOdd k z)The even colouring avoids every solution
Let k = 2j with j ≥ 2, and write N for k(k − 2)/2 + 2k − 1. Let x and y be from 1 to N, let z ≤ N, and let x + y + k(k·j − 1) = k·z. Then x, y and z are not all one colour in the even colouring.
theorem RadoNu.T2.even_case {k : Nat} {j : Nat} (hk : k = 2 * j) (hj : 2 ≤ j) (x : Nat) (y : Nat) (z : Nat) (hx1 : 1 ≤ x) (hxN : x ≤ k * (k - 2) / 2 + 2 * k - 1) (hy1 : 1 ≤ y) (hyN : y ≤ k * (k - 2) / 2 + 2 * k - 1) (hzN : z ≤ k * (k - 2) / 2 + 2 * k - 1) (h : x + y + k * (k * j - 1) = k * z) : ¬(colEven k x = colEven k y ∧ colEven k y = colEven k z)- The odd colouring in terms of quotient and remainder
- The length of the surviving list
- LB at the turning point, in closed form
- LB at the turning point, odd case
- LB at the turning point, even case
- c*(k) as a multiple of k, odd case
- c*(k) as a multiple of k, even case
Moving the constant into z
If k ≥ 1 and x + y + k·m = k·z, then z = m + t for some t with x + y = k·t.
theorem RadoNu.T2.shift {k : Nat} {m : Nat} {x : Nat} {y : Nat} {z : Nat} (hk : 0 < k) (h : x + y + k * m = k * z) : ∃ t, z = m + t ∧ x + y = k * t- Two remainders add to 0 or k
- The number q for even k
- The square of an odd number
- The square of an even number
- Taking one copy out of a product
- Reading off a quotient
- Reading off a remainder
Reading the list backwards
Put N = LB(c, k) and replace each number x by N + 1 − x. The equation x + y + c = k·z becomes x + y = k·z + b with b = c − (k − 2)(N + 1). For k ≥ 3 and every valid c above c*(k), this b is at least 1, and N is at least as long as the stretch that the later chapters need for that b.
The mirror lemma
Let k ≥ 3, let c be valid and above c*(k), and let N = LB(c, k). Then c = (k − 2)(N + 1) + b for some b ≥ 1, with b even if k is even. If b ≥ k + 1, then N is at least ⌈(k·h + b)/2⌉ with h = ⌈(k + b)/2⌉. If b ≤ k, then N is at least (k·j + b)/2 with j the even-making index.
theorem RadoNu.lemmaA {k : Nat} {c : Nat} (hk : 3 ≤ k) (hc : cstar k < c) (hval : Valid c k) : ∃ b, 1 ≤ b ∧ c = (k - 2) * (LB c k + 1) + b ∧ (k % 2 = 0 → b % 2 = 0) ∧ (k + 1 ≤ b → n1 k b ≤ LB c k) ∧ (b ≤ k → N2 k b ≤ LB c k)- A colouring that avoids the mirrored equation
- The bound for the smallest red number
- The stretch needed when b is large
- The even-making index j₀: k + 1 or k + 2, the least j above k with k·j + b even when b is even if k is even
- The stretch needed when b is small
- Facts about the even-making index
- Twice the turning point
- The mirrored constant is at least 1
- The list is long enough when b is large
- A list that is too short puts c at or below c*(k)
- A multiple of an even number is even
- Neighbours have an even product
- Taking one copy out of a product
Colours fall like dominoes
Let k ≥ 3 and b ≥ 1. Suppose a colouring of 1 to N avoids every same-colour solution of x + y = k·z + b, and 1 is blue. If N ≥ ⌈(k + b)/2⌉, the smallest red number t exists and is at most ⌈(k + b)/2⌉. Each solution with two numbers of one colour forces the third to take the other colour, and following these forced colours shows that every number from t to H is red, for every H such that k·H + b is even and k·H + b ≤ 2N.
The spreading lemma
Under the standing assumptions, let k·H + b be even, with k·H + b ≤ 2N. Then every number from t to H is red.
theorem RadoNu.lemmaS {k : Nat} {b : Nat} {N : Nat} {t : Nat} {Hs : Nat} {col : Nat → Bool} (c : Ctx k b N t col) (hHe : (k * Hs + b) % 2 = 0) (hHN : k * Hs + b ≤ 2 * N) {z : Nat} (htz : t ≤ z) (hzH : z ≤ Hs) : col z = trueForcing the colour of z
In a good colouring, if x + y = k·z + b inside 1 to N and x and y share a colour, then z has the other colour.
theorem RadoNu.force_z {k : Nat} {b : Nat} {N : Nat} {col : Nat → Bool} (g : Good k b N col) {x : Nat} {y : Nat} {z : Nat} {c : Bool} (hx : 1 ≤ x ∧ x ≤ N) (hy : 1 ≤ y ∧ y ≤ N) (hz : 1 ≤ z ∧ z ≤ N) (h : x + y = k * z + b) (cx : col x = c) (cy : col y = c) : col z = !cForcing the colour of y
In a good colouring, if x + y = k·z + b inside 1 to N and x and z share a colour, then y has the other colour.
theorem RadoNu.force_y {k : Nat} {b : Nat} {N : Nat} {col : Nat → Bool} (g : Good k b N col) {x : Nat} {y : Nat} {z : Nat} {c : Bool} (hx : 1 ≤ x ∧ x ≤ N) (hy : 1 ≤ y ∧ y ≤ N) (hz : 1 ≤ z ∧ z ≤ N) (h : x + y = k * z + b) (cx : col x = c) (cz : col z = c) : col y = !cForcing the colour of a doubled number
In a good colouring, if x + x = k·z + b inside 1 to N, then x and z have opposite colours.
- The standing assumptions
- The smallest number with a property
A red number shows up early
Let k ≥ 3, b ≥ 1, and let a good colouring have 1 blue. If h = ⌈(k + b)/2⌉ is at most N, then the smallest red number t exists with 2 ≤ t ≤ h, and the standing assumptions hold for it.
- The diagonal point for j
- Diagonal points stay on the list
- Adding two diagonal points
- The stretch lies on the list
The starting pair of the spread
Under the standing assumptions, let k·H + b be even, with k·H + b ≤ 2N. Let q be whichever of t and t + 1 is even when H is even and odd when H is odd, and suppose q ≤ H. Then the diagonal point for q − 2 is red and the one for q is blue.
Blue diagonal points make red numbers
Under the standing assumptions, let k·H + b be even, with k·H + b ≤ 2N, and let M ≤ H. Call a number matching if it is even when H is even and odd when H is odd. Suppose the diagonal point for i is blue for every matching i from t to M. Then a number z ≥ t is red in two cases: z is matching and z ≤ M, or z is not matching and z + 1 ≤ M.
All the diagonal points are blue
Under the standing assumptions, let k·H + b be even, with k·H + b ≤ 2N. Then the diagonal point for j is blue for every j from t to H that is even when H is even and odd when H is odd.
Every colouring runs into a clash
Two blue numbers in a solution force the third to be red. In every case, two red numbers end up in a solution whose z is red as well, so the assumed colouring cannot exist. Which clash applies depends on how the smallest red number t compares with b and k. Together they cover every k ≥ 3 and every b ≥ 1 that is even whenever k is even, on a stretch whose length depends on k and b.
No good colouring when b is large
Let k ≥ 3 and b ≥ k + 1, with b even if k is even. No red-blue colouring is good for x + y = k·z + b up to ⌈(k·h + b)/2⌉, where h = ⌈(k + b)/2⌉.
theorem RadoNu.thm1 {k : Nat} {b : Nat} (hk : 3 ≤ k) (hb : k + 1 ≤ b) (hpar : k % 2 = 0 → b % 2 = 0) (col : Nat → Bool) : ¬Good k b (n1 k b) colNo good colouring when b is small
Let k ≥ 3 and 1 ≤ b ≤ k, with b even if k is even. No red-blue colouring is good for x + y = k·z + b up to (k·j + b)/2, where j is the even-making index.
Under the standing assumptions, two forced red numbers clash, with t as partner, when b = k·m + s, 2 ≤ s ≤ 2t − 2, m + 2 ≤ t and k(t + 1) + b ≤ 2N
The standing assumptions cannot hold if b = k·m + s with 2 ≤ s ≤ 2t − 2, m + 2 ≤ t and k(t + 1) + b ≤ 2N.
Clash with two forced red numbers, partner in the red stretch
The standing assumptions cannot hold if k·H + b is even, k·H + b ≤ 2N, b = k·m + s with 2 ≤ s ≤ 2t − 2, t ≤ m + 1, k + b ≤ N + 1 and m + 2 ≤ H.
Clash using a red number k steps up
The standing assumptions cannot hold if k·H + b is even, k·H + b ≤ 2N, t ≤ k, and some x with 1 ≤ x < t satisfies x + k ≤ H and k(t − 1) + b ≤ N + x.
Large b, with 1 blue
Let k ≥ 3 and b ≥ k + 1, with b even if k is even. No colouring with 1 blue is good for x + y = k·z + b up to ⌈(k·h + b)/2⌉, where h = ⌈(k + b)/2⌉.
Small b: for k ≥ 3 and 1 ≤ b ≤ k (b even if k is even), every colouring with 1 blue clashes within 1 to (k·j₀ + b)/2
Let k ≥ 3 and 1 ≤ b ≤ k, with b even if k is even. No colouring with 1 blue is good for x + y = k·z + b up to (k·j + b)/2, where j is the even-making index.
- Swapping the two colours is harmless
- Stepping up to the next multiple
- Room for the clash, main case
- Room for the clash, edge case
- Room for the clash, small b
- The needed stretches for k = 5
Putting the pieces together
Reading the list backwards turns the clashes into a same-colour solution of the original equation on 1 to LB(c, k), so LB(c, k) is enough for every valid c above c*(k) when k ≥ 3. With the two-block colouring, LB(c, k) is exactly the Rado number there, and at c*(k) it is not. So the formula holds for all valid c from a cutoff v onwards exactly when v is larger than c*(k), and for k = 5 that gives 66.
The last exception: for k ≥ 3, past c*(k) with k odd or c even, lists up to LB(c, k) are exactly long enough, and at c*(k) LB is not enough
Let k ≥ 3. For every c above c*(k) with k odd or c even, every red-blue colouring has a same-colour solution of x + y + c = k·z with x, y, z from 1 to LB(c, k), and some colouring has none with x, y, z from 1 to LB(c, k) − 1. Also, some colouring has no same-colour solution of x + y + c*(k) = k·z with x, y, z from 1 to LB(c*(k), k).
theorem RadoNuChallenge.rado_last_exception (k : Nat) (hk : 3 ≤ k) : (∀ (c : Nat), cstar k < c → k % 2 = 1 ∨ c % 2 = 0 → (∀ (col : Nat → Bool), ∃ x y z, (1 ≤ x ∧ x ≤ LB c k) ∧ (1 ≤ y ∧ y ≤ LB c k) ∧ (1 ≤ z ∧ z ≤ LB c k) ∧ x + y + c = k * z ∧ col x = col y ∧ col y = col z) ∧ ∃ col, ∀ (x y z : Nat), 1 ≤ x → x < LB c k → 1 ≤ y → y < LB c k → 1 ≤ z → z < LB c k → x + y + c = k * z → ¬(col x = col y ∧ col y = col z)) ∧ ∃ col, ∀ (x y z : Nat), 1 ≤ x → x ≤ LB (cstar k) k → 1 ≤ y → y ≤ LB (cstar k) k → 1 ≤ z → z ≤ LB (cstar k) k → x + y + cstar k = k * z → ¬(col x = col y ∧ col y = col z)Past the turning point, the formula is exact
For every k ≥ 3 and every valid c above c*(k), the Rado number is exactly LB(c, k).
theorem RadoNuChallenge.rado_eq_LB {k : Nat} {c : Nat} (hk : 3 ≤ k) (hc : cstar k < c) (hval : Valid c k) : IsRado c k (LB c k)At the turning point, the formula fails
For every k ≥ 3 and c = c*(k), a same-colour solution is not unavoidable up to LB(c, k). Some colouring of 1 to LB(c, k) has none.
theorem RadoNuChallenge.not_forced_cstar {k : Nat} (hk : 3 ≤ k) : ¬Forced (cstar k) k (LB (cstar k) k)Exactly which cutoffs work
Let k ≥ 3 and let v be any whole number from 0 up. The Rado number equals LB(c, k) for every valid c ≥ v exactly when v is larger than c*(k).
theorem RadoNuChallenge.nu_iff (k : Nat) (hk : 3 ≤ k) (v : Nat) : (∀ (c : Nat), v ≤ c → Valid c k → IsRado c k (LB c k)) ↔ cstar k < v
For k = 5, the agreement starts at 66
For k = 5, the Rado number equals LB(c, 5) for every valid c ≥ 66. The same is not true with 65 in place of 66.
theorem RadoNuChallenge.nu_5_eq_66 : (∀ (c : Nat), 66 ≤ c → Valid c 5 → IsRado c 5 (LB c 5)) ∧ ¬∀ (c : Nat), 65 ≤ c → Valid c 5 → IsRado c 5 (LB c 5)
The numbers for k = 3 to 10
c*(3) + 1 = 13, c*(4) + 2 = 30, c*(5) + 1 = 66, c*(6) + 2 = 104, c*(7) + 1 = 183, c*(8) + 2 = 250, c*(9) + 1 = 388 and c*(10) + 2 = 492.
theorem RadoNuChallenge.nu_small_values : cstar 3 + 1 = 13 ∧ cstar 4 + 2 = 30 ∧ cstar 5 + 1 = 66 ∧ cstar 6 + 2 = 104 ∧ cstar 7 + 1 = 183 ∧ cstar 8 + 2 = 250 ∧ cstar 9 + 1 = 388 ∧ cstar 10 + 2 = 492Past the turning point, LB is enough for valid c
For every k ≥ 3 and every valid c above c*(k), a same-colour solution of x + y + c = k·z is unavoidable up to LB(c, k).
- Shorter lists stay good
- Not good means a same-colour solution exists
The last exception: for k ≥ 3, past c*(k) with k odd or c even, lists up to LB(c, k) are exactly long enough, and at c*(k) LB is not enough
Let k ≥ 3. For every c above c*(k) with k odd or c even, every red-blue colouring has a same-colour solution of x + y + c = k·z with x, y, z from 1 to LB(c, k), and some colouring has none with x, y, z from 1 to LB(c, k) − 1. Also, some colouring has no same-colour solution of x + y + c*(k) = k·z with x, y, z from 1 to LB(c*(k), k).
The main theorem in terms of the Rado number
Let k ≥ 3. The Rado number is LB(c, k) for every valid c above c*(k). At c*(k), a same-colour solution is not unavoidable up to LB(c*(k), k), and any R that is the Rado number there is larger than LB(c*(k), k).
Past the turning point, the formula is exact
For every k ≥ 3 and every valid c above c*(k), the Rado number is exactly LB(c, k).
At the turning point, the formula fails
For every k ≥ 3 and c = c*(k), a same-colour solution is not unavoidable up to LB(c, k).
- The turning point is itself valid
- Longer lists stay unavoidable
Exactly which cutoffs work
Let k ≥ 3 and let v be any whole number from 0 up. The Rado number equals LB(c, k) for every valid c ≥ v exactly when v is larger than c*(k).
For k = 5, the agreement starts at 66
For k = 5, the Rado number equals LB(c, 5) for every valid c ≥ 66. The same is not true with 65 in place of 66.
- The numbers for k = 3 to 10
- One value spelled out