Are $18$ and $19$ the only integers $n>0$ for which the prime-axis sum divides the prime-diagonal product in the $(2n+1)\times(2n+1)$ Ulam spiral?
Statement
Let , and then consider the Ulam spiral (starting with at the center, as usual):
Let denote the sum of the prime entries belonging to the central row and column, and (similarly) let denote the product of the prime entries belonging to the two main diagonals.
For any integer , the four entries of the central row and column at distance from the center are , , , , while the corresponding four diagonal entries are , , , .
If is odd, all four central-cross entries are even and greater than .
Hence, for every . Moreover, for every .
Therefore, if is a solution of , then is also a solution.
In particular, is a solution pair. This easily follows by observing …
Posed by Marco Ripà · nt.number-theory, prime-numbers
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-515132.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-515132.lean
import Mathlib /-! # Are $18$ and $19$ the only integers $n>0$ for which the prime-axis sum divides the prime-diagonal product in the $(2n+1)\times(2n+1)$ Ulam spiral? Source: https://mathoverflow.net/questions/515132 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_515132 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_515132