Iterated block sorting and a maximum over primes
An iterated block sort of the positive integers fixes the first t entries at stage t and sorts the remaining length-t blocks, decreasingly at prime stages and increasingly otherwise. Kurkov conjectured that the eventual value at position p_{n-1}+1 equals A_n = max_i p_i(n+1-i), a quantity linked to the Erdős–Freud–Hegyvári lcm permutation problem.
The proof counts the entries at most a threshold B at block boundaries, using a partial-block recurrence, a backward bound and a transfer-of-margins lemma. These reduce the identity to arithmetic inequalities. Explicit prime-counting bounds handle n ≥ 10^6, and a finite computation covers the remaining range. Separately, a Lean 4 proof verifies a formal statement of the identity, re-deriving the prime bound internally and checking the finite ranges with compressed certificates.
The identity b(p_{n-1}+1)=A_n holds for all n≥2 except n=5, where b(8)=16 and A_5=15. Each b(p+1) is a strict record, and the running maximum M(x) is asymptotic to x^2/(4 log x).
| n | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|
| p_{n-1}+1 | 3 | 4 | 6 | 8 | 12 | 14 | 18 | 20 |
| A_n | 4 | 6 | 10 | 15 | 22 | 33 | 44 | 55 |
| b(p_{n-1}+1) | 4 | 6 | 10 | 16 | 22 | 33 | 44 | 55 |
