OEIS A320043: A Pell Counterexample to a Square-Value Conjecture
The question: when does a row sum become a square?
Imagine filling a rectangular box with identical cubes. All cubes are aligned with the box, have integer side length, and are as large as possible. Their side is the largest whole number dividing both and , written , so the box needs cubes. For , the three boxes use , and cubes: the middle box needs just one cube of side two. Adding these three counts gives , which is not a square. The question asks when the sum for a whole row is a square. This interpretation requires equal cubes; allowing unequal cubes would be a different problem.
For a positive integer , arrange entries in a row. At position put
and add the row:
Here is the largest positive integer dividing both and . For instance, , and . In the COMMENTS of OEIS A320043, a conjecture posed in 2018 said that these were the only square values, apart from .
The conjecture has a very large counterexample. One additional square is . The useful idea is not to add more than seven hundred million terms one by one. Instead, look at the row when is prime. Then and are coprime, so every gcd denominator is and the row becomes an elementary sum of a cubic polynomial.
Why prime rows simplify
Let be prime and take . If an integer divides both and for , it divides their sum ; since is prime and , it must be . Thus
Expanding and using the formulas for , , and gives
This is the turning point: a triangle defined with gcds becomes a simple quartic expression on a prime row.
For ,
so . Substituting into the prime-row identity gives
The paper also gives a Lucas primality certificate. It factors and uses powers of modulo together with four gcd conditions to rule out every smaller possible order. Hence is prime. These are finite integer calculations, rather than a visual guess that the number “looks prime.”
Which prime rows can be squares?
A Pell solution immediately substitutes into the row formula. For the converse, take a prime and suppose . Then . Since does not divide , primality forces ; write and cancel to obtain the Pell equation .
The positive solutions of this Pell equation can be generated by descending. If with , set
This preserves and produces a smaller solution; repeating eventually reaches . The inverse map is
so every nonnegative solution comes from
Thus , , and . This is an integer recurrence; no decimal approximation to is needed.
The relevant recurrence values are:
| conclusion | ||
|---|---|---|
| 1 | 7 | prime |
| 2 | 97 | prime |
| 3 | 1351 | |
| 4 | 18817 | |
| 5 | 262087 | |
| 6 | 3650401 | |
| 7 | 50843527 | |
| 8 | 708158977 | prime |
The Pell solutions increase strictly, so nothing else below can qualify; give and . This conclusion only concerns indices with a prime successor. A full classification of square values with composite successors, and the unrestricted least new square index, are outside the paper’s scope.
Write , , and , so is the rational part of . Since , the even-indexed terms give the sequence; the recurrence makes every later odd-indexed term even. If is odd, expanding shows that , so a prime term cannot have an index with an odd factor. Finally, and give the residue modulo by induction.
Two more identities in the triangle
The same table has structure beyond its square row sums. Multiplying a whole row instead of adding it always produces a perfect cube. If
then the row product is . For a prime , : multiplying the positive integers below is enough. The middle entry of every odd-length row equals one.
For composite successors, the gcd denominators no longer all disappear. The paper groups entries with the same gcd: after dividing out that common factor, each group becomes a smaller coprime counting problem. Summing those groups gives a formula over the divisors of the successor. The exact formula and its proof are in the mathematical appendix.
What the result does—and does not—say
The boundaries matter. The paper does not classify every square index, does not prove that Pell prime terms are infinite, and does not formalize Greathouse’s stronger search bound. The existing formal proof rules out the three-index exclusion and uses a checked numerical witness. Its public conclusion does not state the later classification and minimality results. Those remain separate written results, each linked to its contribution task.
A short narrated tour of the counterexample: one prime row, one Pell recurrence, one residue chain, and the questions that remain open.
The film compresses the story into a narrated arc; the academic deck below expands the formulas, table, and evidence boundary.
Sources
- Original question: S. Spezia, OEIS A320043, COMMENTS revision 43; the conjecture first appeared in revision 31 (2018-12-16).
- Earlier Pell-prime ordering: H. L. Zhu, Acta Arithmetica 146 (2011), 195–202, p. 200, DOI 10.4064/aa146-2-6.
- Earlier prime records: G. L. Honaker Jr., OEIS A177879; T. L. Tiffin, A277434. Greathouse excluded the large candidate in 2016; T. Andrews supplied its explicit factor in 2019.
- The product formula is due to S. Spezia (2024); related A119619 formulas are credited to S. Steinerberger (2006), J. Krizek (2016) and R. Oudra (2021).
- Pell sequences and candidate terms: OEIS A001075, A011943, and A277434; triangle and product sources: A322550 and A119619.
- Public version 2 record: Mathesis paper page, by Haobo Ma and Wenlin Zhang; affiliations follow the public record.
- Lean source: SpeziaA320043SquareValuesRefutation.lean.
Join the formalization
The linked tasks distinguish the already checked refutation from the precise public statements still to expose or formalize. Contributions to those statements help later readers build on this work; see the contribution guide.
Paper version 2: 10.5281/zenodo.24058057.
The mathematical appendix contains the complete statements, written arguments and exact formal coverage.
Exact statements, proofs and formal evidence
These are the precise results behind the story. Written proofs are attributed to the paper and its cited literature; the single Lean result has its narrower public conclusion. Symbols follow the story.
The original exclusion claim is false. The concrete witness supplied by the paper is
For a prime , every common divisor of and , with , divides both and , so it equals one. Expanding the sum using the first three power-sum formulas gives . Put and . The complete factorization is . Modular exponentiation gives ; for , respectively, the residues are , , , and . Each residue minus one is coprime to . For any prime divisor of , these conditions force the order of modulo to contain every prime power in , hence to equal . As that order divides , and therefore . Thus is prime. Finally and , so the row identity gives . This is the argument of manuscript Theorem 1; the witness is also constructed inside the existing formal refutation.
It is false that every integer and satisfying must have . This is the universal exclusion that the existing formal proof refutes.
For a prime ,
When this holds, the nonnegative square root of is . The paper proves this as Proposition 2; its formalization request is issue 94. The result has a written proof and is linked to the version DOI; it remains separate from the frozen Lean theorem.
A Pell solution gives . Conversely choose the nonnegative integer root when the row is a square. Then . Since is prime, and . Write and cancel to obtain . The row is positive, so , and its nonnegative root is .
Among indices for which is prime, the smallest square index outside is . Corollary 3 checks the primality or a proper factor of through ; the formalization request is issue 95.
The Pell descent above lists all positive solutions: for , , and . These inequalities follow from , and . The norm remains one, so descent ends at ; the inverse generates every solution. The increase strictly. The factor table in the story factors through , while , and are prime. The square criterion therefore leaves exactly indices , and in this prime range. Separately gives index and gives the nonsquare . This proves precisely the prime-successor minimality asserted.
Define
For a prime , is a square exactly when is a prime term of this sequence. If , then for some , and . This is the paper’s Corollary 4; its formalization request is issue 96.
The identity gives . The recurrence for makes odd-indexed terms even; after they exceed two, hence are composite. Together with the criterion and the small primes, this proves the equivalence. For positive and odd , expanding shows that its rational part is divisible by : each even-degree term retains a positive odd power of . Thus and . A prime can have no odd divisor of other than one, so . Finally and preserve residue seven modulo thirty.
Let . Then and . Successive reductions modulo give , so
The proposed value is therefore composite. The formalization request for Corollary 5 is issue 97. This finite residue chain rules out one candidate; it does not decide whether the Pell sequence has any further prime terms.
Repeatedly apply modulo , starting at . For the residues are , , , , , , , , , , , , , , , , and . Therefore . Strict increase gives , making this a proper factor.
For integers and , . Set
Then
Corollary 6 proves this identity; its formalization request is issue 98.
At the centre of row , numerator and denominator are both , giving one. In the full product, and the factors run through . Therefore
The final factor of is one. All factors are positive, so taking real cube roots is valid. For prime , all denominators below equal one and the last factor equals one, giving .
Let , let be Euler’s totient function, and define
Then
This is the all-row extension in Corollary 7; its formalization request is issue 99.
Define and, for ,
Grouping the original row by , then setting , , gives . Before division by the gcd cube, the same grouping gives
Möbius inversion, with the Möbius function, yields
The two sums factor over the prime divisors as products of and . Summing over proves the formula; at its contribution is zero.
Verification ledger
Lean-verified results correspond to frozen declarations in trureturing. Written proofs and open items are listed separately below. The table lists the Lean correspondence; links are fixed to the pinned commit, so they do not drift with upstream changes.
Formal basis: trureturing commit 73ec20a01fc3 · the-omega-institute/trureturing
| Item | Title | Lean declaration | Frozen state |
|---|---|---|---|
| Theorem 2.2 | Negation of the original exclusion claim | D5.S3.ArithSums.SpeziaA320043SquareValuesRefutation.result | 5749b42127 |
Written proofs
These results cite DOI sources, book proofs and registered formalization requests. They are not kernel-verified and are excluded from LEAN ✓ counts.
- Theorem 2.1 — The paper’s explicit counterexample · Proof · DOI: 10.5281/zenodo.24058057 · Theorem 1, Section 1, PDF page 1 · trureturing-requests#100
- Proposition 2.3 — The paper’s prime-row square criterion · Proof · DOI: 10.5281/zenodo.24058057 · Proposition 2, Section 2, PDF page 2 · trureturing-requests#94
- Corollary 2.4 — The first new square index with a prime successor · Proof · DOI: 10.5281/zenodo.24058057 · Corollary 3, Section 2, PDF page 3 · trureturing-requests#95
- Corollary 2.5 — Prime terms occur only at power-of-two indices · Proof · DOI: 10.5281/zenodo.24058057 · Corollary 4, Section 2, PDF page 3 · trureturing-requests#96
- Corollary 2.6 — A factor excluding the proposed next Pell prime · Proof · DOI: 10.5281/zenodo.24058057 · Corollary 5, Section 2, PDF page 3 · trureturing-requests#97
- Corollary 2.7 — The triangle product identity · Proof · DOI: 10.5281/zenodo.24058057 · Corollary 6, Section 3, PDF page 4 · trureturing-requests#98
- Corollary 2.8 — An all-row divisor formula · Proof · DOI: 10.5281/zenodo.24058057 · Corollary 7, Section 3, PDF page 4 · trureturing-requests#99
Open problems and conjectures
The following items are explicitly marked open; the book does not treat them as proved.
(none)