Rearrange the digits in ⟨125034⟩ to meet the rules below.
⟨ ⁵ᵗʰ▨ ⁴ᵗʰ▨ ³ʳᵈ▨ ²ⁿᵈ▨ ¹ˢᵗ▨ ⁰ᵗʰ▨ ⟩
✅Match
median {p5, p3, p2} = 2
⟨⋯ 4 ⋯ 0 ⋯ 1 ⋯⟩
⟨⋯ ᵃb ⋯⟩, ab=15
⛔Avoid
⟨ ³ʳᵈa ¹ˢᵗb ⟩, max⟦a,b⟧ = 5
median {p3, p1, p0} = 1
#125034_v2.15
┌───┬───┬───┬───┬───┬───┐
│5th│4th│3rd│2nd│1st│0th│▒
╞═══╪═══╪═══╪═══╪═══╪═══╡▒
Step 1 │ 3 │ │ │ │ │ │▒
├───┼───┼───┼───┼───┼───┤▒
Step 2 │ 3 │ 4 │ │ │ │ │▒
├───┼───┼───┼───┼───┼───┤▒
Step 3 │ 3 │ 4 │ │ │ │ 5 │▒
├───┼───┼───┼───┼───┼───┤▒
Step 4 │ 3 │ 4 │ │ 0 │ │ 5 │▒
├───┼───┼───┼───┼───┼───┤▒
Step 5 │ 3 │ 4 │ │ 0 │ 1 │ 5 │▒
├───┼───┼───┼───┼───┼───┤▒
Step 6 │ 3 │ 4 │ 2 │ 0 │ 1 │ 5 │▒
└───┴───┴───┴───┴───┴───┘▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
Proof of 2026-11-17 WR
══════════════════════
Notation: if nth -> a, then we write [nth] = a.
To match ✅「⟨⋯ ᵃb ⋯⟩, ab=15」, we need
(1) [5th]=3 or [3rd]=5.
┌───┬───┬───┬───┬───┬───┐
│5th│4th│3rd│2nd│1st│0th│
╞═══╪═══╪═══╪═══╪═══╪═══╡
│ * │ │ * │ │ │ │
└───┴───┴───┴───┴───┴───┘
If [3rd]=5, then we will match ⛔「⟨ ³ʳᵈa ¹ˢᵗb ⟩, max⟦a,b⟧ = 5」, which is not allowed. Therefore, [5th]=3 instead:
┌───┬───┬───┬───┬───┬───┐
│ 5■│4th│3rd│2nd│1st│0th│▒
╞═══╪═══╪═══╪═══╪═══╪═══╡▒
Step 1 │ 3 │ │ │ │ │ │▒
└───┴───┴───┴───┴───┴───┘▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
--- Idle ---
┌───┬───┬───┬───┬───┬───┐
│ 1 │ 2 │ 5 │ 0 │ │ 4 │
└───┴───┴───┴───┴───┴───┘
------------------------------
Consider where to place 4. By ✅「⟨⋯ 4 ⋯ 0 ⋯ 1 ⋯⟩」, there are at least two digits to the right of it. So 4=[4th], [3rd] or [2nd].
┌───┬───┬───┬───┬───┬───┐
│5th│4th│3rd│2nd│1st│0th│
╞═══╪═══╪═══╪═══╪═══╪═══╡
│ 3 │ * │ * │ * │ │ │
└───┴───┴───┴───┴───┴───┘
Note that if 4=[3rd] or [2nd], then we cannot match ✅「median {p5, p3, p2} = 2」. Therefore, 4 has to be [4th]:
┌───┬───┬───┬───┬───┬───┐
│5th│ 4■│3rd│2nd│1st│0th│▒
╞═══╪═══╪═══╪═══╪═══╪═══╡▒
│ 3 │ │ │ │ │ │▒
├───┼───┼───┼───┼───┼───┤▒
Step 2 │ 3 │ 4 │ │ │ │ │▒
└───┴───┴───┴───┴───┴───┘▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
--- Idle ---
┌───┬───┬───┬───┬───┬───┐
│ 1 │ 2 │ 5 │ 0 │ │ │
└───┴───┴───┴───┴───┴───┘
------------------------------
Then, to avoid ⛔「⟨ ³ʳᵈa ¹ˢᵗb ⟩, max⟦a,b⟧ = 5」, we have 5=[0th]:
┌───┬───┬───┬───┬───┬───┐
│5th│4th│3rd│2nd│1st│ 0■│▒
╞═══╪═══╪═══╪═══╪═══╪═══╡▒
│ 3 │ 4 │ │ │ │ │▒
├───┼───┼───┼───┼───┼───┤▒
Step 3 │ 3 │ 4 │ │ │ │ 5 │▒
└───┴───┴───┴───┴───┴───┘▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
--- Idle ---
┌───┬───┬───┬───┬───┬───┐
│ 1 │ 2 │ │ 0 │ │ │
└───┴───┴───┴───┴───┴───┘
------------------------------
By ✅「⟨⋯ 4 ⋯ 0 ⋯ 1 ⋯⟩」, 0 is [3rd] or [2nd].
┌───┬───┬───┬───┬───┬───┐
│5th│4th│3rd│2nd│1st│0th│
╞═══╪═══╪═══╪═══╪═══╪═══╡
│ 3 │ 4 │ * │ * │ │ 5 │
└───┴───┴───┴───┴───┴───┘
If it is [3rd], then in view of ✅「median {p5, p3, p2} = 2」, we have
┌───┬───┬───┬───┬───┬───┐
│5th│4th│ 3▲│ 2▲│ 1▲│0th│
╞═══╪═══╪═══╪═══╪═══╪═══╡
│ 3 │ 4 │ 0 │ │ │ 5 │
├───┼───┼───┼───┼───┼───┤
│ 3 │ 4 │ 0 │ 2 │ │ 5 │
├───┼───┼───┼───┼───┼───┤
│ 3 │ 4 │ 0 │ 2 │ 1 │ 5 │
└───┴───┴───┴───┴───┴───┘
In view of ⛔「median {p3, p1, p0} = 1」, we reach a contradiction. Therefore, 0=[2nd] instead:
┌───┬───┬───┬───┬───┬───┐
│5th│4th│3rd│ 2■│1st│0th│▒
╞═══╪═══╪═══╪═══╪═══╪═══╡▒
│ 3 │ 4 │ │ │ │ 5 │▒
├───┼───┼───┼───┼───┼───┤▒
Step 4 │ 3 │ 4 │ │ 0 │ │ 5 │▒
└───┴───┴───┴───┴───┴───┘▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
--- Idle ---
┌───┬───┬───┬───┬───┬───┐
│ 1 │ 2 │ │ │ │ │
└───┴───┴───┴───┴───┴───┘
------------------------------
Finally, to match ✅「⟨⋯ 4 ⋯ 0 ⋯ 1 ⋯⟩」, we finish by
┌───┬───┬───┬───┬───┬───┐
│5th│4th│ 3■│2nd│ 1■│0th│▒
╞═══╪═══╪═══╪═══╪═══╪═══╡▒
│ 3 │ 4 │ │ 0 │ │ 5 │▒
├───┼───┼───┼───┼───┼───┤▒
Step 5 │ 3 │ 4 │ │ 0 │ 1 │ 5 │▒
├───┼───┼───┼───┼───┼───┤▒
Step 6 │ 3 │ 4 │ 2 │ 0 │ 1 │ 5 │▒
└───┴───┴───┴───┴───┴───┘▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
--- Idle ---
┌───┬───┬───┬───┬───┬───┐
│ │ │ │ │ │ │
└───┴───┴───┴───┴───┴───┘
Q.E.D.
#125034_v2.15