Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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
17prime
297prime
31351
418817
5262087
63650401
750843527
8708158977prime

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.

Film 001 · Pell numbers and the counterexample · 2:28

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.