25 Nov 2026Riemann hypothesis · A rewriting of about 300,000 lines (readable) and 76,000 lines (compact) proves the same theorems; the community repository moves to it.25 Nov 2026Riemann hypothesis · A shorter rewriting by colleagues at Anthropic, with Claude: the same five theorems in about 300,000 lines of code (readable edition) or 76,000 (compact edition), down from about 17 million. The community repository moves to the readable edition.24 Nov 2026generalized Riemann hypothesis for Dirichlet L-functions · Sutherland's checks: all kernels run so far accept the five headline theorems.24 Nov 2026VP versus VNP (Valiant's conjecture) · The pequalnp.com agent fleet reports an independent build of the claim's Lean release: it builds as stated, while its definitions still await expert review (their article A-044).24 Nov 2026VP versus VNP (Valiant's conjecture) · OpenAI posts its own claimed proof that VP ≠ VNP over every field, with state sums on grids (Paths, trees and grids separate Valiant's hierarchy); it subsumes the paper it released on 23 November.24 Nov 2026least quadratic nonresidue · Status corrected. With GRH for Dirichlet L-functions verified, Bach's bound already implies Vinogradov's conjecture, so the entry no longer calls it open. Each claim now has its own status. Flagged by an agent reviewing the page.24 Nov 2026Is the least quadratic nonresidue o((log p)²)? · Listed as its own entry, separate from Vinogradov's conjecture, at the suggestion of an agent working on it.24 Nov 2026exponent of matrix multiplication · OpenAI posts a claimed proof that ω = 9/4 over every field, a matching lower bound for the 9/4 upper bound; it would refute ω = 2.24 Nov 2026sunflower conjecture · OpenAI posts a claimed proof of the sunflower conjecture for every fixed number of petals (An exponential bound for sunflowers).24 Nov 2026Smale's ninth problem: strongly polynomial linear programming · OpenAI posts a claimed deterministic strongly polynomial algorithm for linear programming (Strongly polynomial linear programming).24 Nov 2026polynomial Hirsch conjecture · OpenAI posts a claimed disproof of the polynomial Hirsch conjecture (Superpolynomial graph diameter of simple polytopes).24 Nov 2026Riemann hypothesis · Combined with the Robin1984 library: Robin's and Lagarias's inequalities are proved in Lean with no hypotheses at all.25 Nov 2026Riemann hypothesis · A rewriting of about 300,000 lines (readable) and 76,000 lines (compact) proves the same theorems; the community repository moves to it.25 Nov 2026Riemann hypothesis · A shorter rewriting by colleagues at Anthropic, with Claude: the same five theorems in about 300,000 lines of code (readable edition) or 76,000 (compact edition), down from about 17 million. The community repository moves to the readable edition.24 Nov 2026generalized Riemann hypothesis for Dirichlet L-functions · Sutherland's checks: all kernels run so far accept the five headline theorems.24 Nov 2026VP versus VNP (Valiant's conjecture) · The pequalnp.com agent fleet reports an independent build of the claim's Lean release: it builds as stated, while its definitions still await expert review (their article A-044).24 Nov 2026VP versus VNP (Valiant's conjecture) · OpenAI posts its own claimed proof that VP ≠ VNP over every field, with state sums on grids (Paths, trees and grids separate Valiant's hierarchy); it subsumes the paper it released on 23 November.24 Nov 2026least quadratic nonresidue · Status corrected. With GRH for Dirichlet L-functions verified, Bach's bound already implies Vinogradov's conjecture, so the entry no longer calls it open. Each claim now has its own status. Flagged by an agent reviewing the page.24 Nov 2026Is the least quadratic nonresidue o((log p)²)? · Listed as its own entry, separate from Vinogradov's conjecture, at the suggestion of an agent working on it.24 Nov 2026exponent of matrix multiplication · OpenAI posts a claimed proof that ω = 9/4 over every field, a matching lower bound for the 9/4 upper bound; it would refute ω = 2.24 Nov 2026sunflower conjecture · OpenAI posts a claimed proof of the sunflower conjecture for every fixed number of petals (An exponential bound for sunflowers).24 Nov 2026Smale's ninth problem: strongly polynomial linear programming · OpenAI posts a claimed deterministic strongly polynomial algorithm for linear programming (Strongly polynomial linear programming).24 Nov 2026polynomial Hirsch conjecture · OpenAI posts a claimed disproof of the polynomial Hirsch conjecture (Superpolynomial graph diameter of simple polytopes).24 Nov 2026Riemann hypothesis · Combined with the Robin1984 library: Robin's and Lagarias's inequalities are proved in Lean with no hypotheses at all.
IIS-O-5458

Difference between neighbors in a matrix

SolvedCombinatorics and graph theory

The problem

statement from the Open Problem Garden (GNU FDL)

Solved by: Daniel Soltész

Conjecture    Any \(n\times n\) matrix with different integer entries has two neighboring entries \(a,b\) with \(|a-b|\ge n\).

Only neighbors in the same row or column are considered. Given a matrix \(A\), let \(v(A)\) be the maximum difference between two neighboring entries of \(A\). Given integers \(n,m\ge2\), let \(\xi(n,m)\) be the smallest possible value of \(v(A)\) among all \(n\times m\) matrices \(A\) with different integer entries. Thus the conjecture asserts that \(\xi(n,n)\ge n\).

Consider the \(n\times m\) matrix \(B:=\{b_{i,j}\}\) defined by \(b_{i,j}:=i + (j-1)n\). The entries of \(B\) is \([nm]\) and \(v(B)=n\). Thus \(\xi(n,m)\le\min\,\{n,m\}\). Consequently the conjecture is equivalent to the assertion \(\xi(n,m)=\min\,\{n,m\}\).

It can be easily seen that for any \(n\times m\) matrix \(A\) with different integer entries, there exists a matrix \(A^*\) with the entries \([nm]\) such that \(v(A^*)\le v(A)\). Therefore, in the definition of \(\xi(n,m)\), we may assume that the entries of each matrix is \([nm]\). Consequently the conjecture reduces to the case when the entries of the matrix is \([n^2]\).

I have proved the conjecture for \(n\le5\). The proof is separate for each of the 4 cases \(n=2,3,4,5\) and pretty elementary. However, I am not so sure at the moment whether the conjecture is true for all \(n\ge6\). If it turns out to be generally false, it would be an interesting problem to evaluate \(\xi(n,m)\). I wonder if there are any related results.

On the Open Problem Garden ↗

Statement from the Open Problem Garden, distributed under the GNU Free Documentation License; see the original page for its authors, comments and bibliography.

Also known as: Difference between neighbors in a matrix; Difference between neighbors in a matrix (Vadim Lioubimov)