What survives at a prime column?
Column 3 begins . Each leaves remainder on division by , yet not all are even. Column 4 begins ; now division by always leaves remainder . Why does moving down a column preserve one remainder but sometimes change whether the number is divisible by another divisor?
Build the table by multiplying
Write two lists of numbers as coefficients of . When you multiply, a pair contributes to only if its two powers add to . We write to pick out that coefficient. This is a formal power series: to find any one coefficient you need only finitely many terms, and you never have to assign a value to .
Let . For this counts the ways to put identical objects in labelled boxes: . For it is at and otherwise. In particular and . The other list comes from : the coefficient at is for , and the constant coefficient is zero. With row and column numbered from zero, the entry is therefore
Every denominator is one of the factors of , so all entries are integers; column zero is the empty sum. At the three contributions are , and . This one sum explains both the remainders and the polynomial pattern.
Change the divisor, change the survivor
Working modulo means keeping only remainders on division by . Cancelling a factor from leaves the factor in place. All but the last term disappear, leaving , which has no in it. For prime , Wilson’s theorem gives , and Fermat’s little theorem gives , so the remainder is in modular notation, or in ordinary remainder notation. For composite , its factors usually fit inside : use two distinct factors if possible, or use and for a square with . Column is the exception and always leaves ; divides every entry in its column and is not prime. The divisibility test does not include column zero.
Now divide by . For the divisor is . For odd primes, the terms with still have a factor , and so does the final term. Only the next-to-last term can obstruct division, because it contains . At it gives modulo ; at it gives modulo . For , the composite already divides , so odd rows also work. Whenever the quotient is an integer, forces . For instance is not divisible by , but is divisible by , and its quotient leaves remainder modulo .
The short film tracks the surviving term as the divisor changes.
Film 001 · What survives at a prime column? · 1:14
Why a column is a polynomial
The product formula makes each fixed column a polynomial in the row number. The term alone has the highest degree, , and its leading coefficient is . After the factorial scaling the coefficients are nonnegative integers. In column 3 we get . Its first three points determine it: the difference of two polynomials of degree at most two cannot have three distinct roots unless it is zero. That is why A355259 can recover column from the first entries. The proof supplies the degree bound before doing any interpolation.
Scope and sources
The same setup gives recurrences, a fixed-row growth rate, and an extension replacing by any integer. The growth estimate does not let the row index grow with the column, and the paper does not cover every combinatorial interpretation, integral or nonterminating special-function formula of the linked sequences. Statements and proofs gives the exact scope and distinguishes the arithmetic already expressed in Lean from the written arguments.
This reading accompanies Haobo Ma and Wenlin Zhang’s paper, version 2, DOI 10.5281/zenodo.24406609, CC BY 4.0. The questions are from Peter Luschny and Mélika Tebni’s OEIS A355257, revision 37; the column-polynomial and even-row quotient conjectures are attributed to Tebni. The all-row prime residue is not new: Benyattou and Mihoubi’s Lah-polynomial congruence (published online 2017, Proposition 8) gives row zero, and a row difference propagates it. Fried’s proof (2025, Theorem 1) directly treats row and can likewise be propagated. This reading follows the paper’s alternative argument from the recorded coefficient sum and its sharp quotient criterion.
Statements and proofs
Write with as in the previous chapter. The rising product is when .
For all , is integral. For every prime , . For with , if and only if is not prime; . The quotient is integral in every row for and primes ; at it is integral exactly when is even. Every integral quotient is modulo .
Original Sections 2–3. The coefficient sum gives integrality and reduces modulo to . Wilson and Fermat give the prime case. The factorial lemma below handles composites; is immediate, and the last term at is . Modulo only the next-to-last term can survive, giving . The divisor is at ; for the factorial lemma applies. At and the residues are modulo and modulo , respectively. Multiply an integral quotient back by to read off its residue .
Public frozen Lean theorems cover the integer witness, prime residue, divisibility away from , and the even-row quotient. That last declaration does not cover odd rows: the odd-row failures at , successes at , and the residue at column are not statements of those public theorems.
If is composite and , then . Write with . If , both factors occur in the factorial. If , then , and the distinct factors occur and multiply to . The same lemma is already proved as an internal helper in the frozen implementation, not exposed as a public result.
For every , the polynomial of degree at most interpolating for is , so it gives the column at every . For , the explicit polynomial is
Original Section 4. Substitute into the coefficient sum to obtain . Only reaches degree , with leading coefficient . Set . Two polynomials of degree at most that agree at distinct points have zero difference. This is the interpolation used in A355259.
Rows are A029767, A103213, A355171, A355372, A355407 and A355414 respectively, by their generating functions . They inherit the prime residue and divisibility criterion; every prime quotient is integral in rows , and precisely fail in rows . For , row zero is because only contributes. The labels identify the source sequences rather than create new proof obligations.
For , . Set . For , , and
Original Section 4. Expand as and take coefficients for the alternate sum. The identities and give the difference and exponential generating function by coefficient comparison and differentiation. First use nonnegative integer , then extend because every coefficient is polynomial in .
Fix and let . Then and for ,
For ,
Original Section 5. In the differential identity , take the coefficient and multiply by for the first recurrence. Apply first to kill the right side and take the coefficient of for the second. Rows specialize to the recurrences credited to Mathar, Israel, Tebni and Mathar, respectively.
For every fixed , as : the ratio tends to . The cases match the OEIS formulas of Alcover and Kotesovec, respectively.
Original Section 5. Row zero follows from its closed form. For , divide the coefficient sum by and put . The summand is . For , it is bounded by the summable sequence and tends termwise to . The other half is bounded in total by a constant times , which tends to zero. Thus the limit is .
For and , is integral. For , ; for prime , . Every composite divides its entry; a prime divides its entry exactly when ; divides its entry exactly when is odd. The prime quotient is integral if , or is odd; when is even and it is integral exactly when is even. Every integral quotient is modulo .
Original Section 5. For , is still integral, and . Replace by in the coefficient sum. The last term modulo , Wilson and Fermat give divisibility, with at column . The next-to-last term modulo gives at and at ; is automatic and uses the factorial lemma. Multiply back by to obtain the residue of any integral quotient.
A355258 is . For the formulas of Kotesovec and Meya are, respectively,
Original Section 5. Multiply by to get , then substitute the row-zero formula. Alternatively take coefficients of ; the term vanishes at and setting gives the binomial sum.
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 8a24ea4e79de · the-omega-institute/trureturing
(none)
Written proofs
These results cite DOI sources, book proofs and registered formalization requests. They are not kernel-verified and are excluded from LEAN ✓ counts.
- Corollary 1.3 — Corollary 3: Recovering the whole column · Proof · DOI: 10.5281/zenodo.24406609 · Corollary 3 · trureturing-requests#586
- Corollary 1.5 — Corollary 5: An alternate sum and a column difference · Proof · DOI: 10.5281/zenodo.24406609 · Corollary 5 · trureturing-requests#587
- Corollary 1.6 — Corollary 6: Fixed-row recurrences · Proof · DOI: 10.5281/zenodo.24406609 · Corollary 6 · trureturing-requests#588
- Corollary 1.7 — Corollary 7: Fixed-row growth · Proof · DOI: 10.5281/zenodo.24406609 · Corollary 7 · trureturing-requests#589
- Corollary 1.8 — Corollary 8: Integer parameters · Proof · DOI: 10.5281/zenodo.24406609 · Corollary 8 · trureturing-requests#590
- Corollary 1.9 — Corollary 9: Two formulas for row minus one · Proof · DOI: 10.5281/zenodo.24406609 · Corollary 9 · trureturing-requests#591
Open problems and conjectures
The following items are explicitly marked open; the book does not treat them as proved.
(none)