The problem, the result, and the mechanism of the proof.
Published · 2026 · Sole author
An Explicit Formula and a Recurrence for OEIS A265233
Juntao Jin
Journal of Integer Sequences 29 (2026), Article 26.5.3
I express the array count A265233 as a binomial transform of Franel numbers, prove Mathar’s recurrence, and derive its generating function and asymptotic growth.
@article{Jin2026A265233,
author = {Juntao Jin},
title = {An Explicit Formula and a Recurrence for OEIS A265233},
journal = {Journal of Integer Sequences},
volume = {29},
year = {2026},
note = {Article 26.5.3},
url = {https://cs.uwaterloo.ca/journals/JIS/VOL29/Jin/jin48.html}
}
What is counted
Let aₙ count 3 × n arrays on {0,1,2}. Each symbol occurs n times; vertically adjacent entries must differ, while the top and bottom entry of a column may agree. Read the first row from left to right, then the second and third: the symbols first appear in the order 0,1,2. Set a₀ = 1 for the empty array.
(a0,a1,a2,a3,…)=(1,1,7,56,…).
Theorem 1: formula and recurrence
Write fₘ for the mth Franel number. The explicit formula holds for n ≥ 1; the empty array is treated separately. The recurrence is valid for n ≥ 4, with the four initial values above.
This proves the recurrence conjectured by Mathar in 2015. The displayed statements are Theorem 1 of the published paper, not a new claim added for this website.
The mechanism of the proof
First ignore the first-occurrence convention and count labeled arrays bₙ. For n ≥ 1 the six permutations of the three symbols act freely, so bₙ = 6aₙ. The twelve allowed columns have a polynomial that splits into a product and a single extra term:
The central coefficient of ((x+y)(y+z)(z+x))ᵐ is fₘ. Expanding the extra 4xyz term yields the binomial transform. Transforming the classical differential equation for the Franel generating function and extracting coefficients then gives the recurrence. The restriction n ≥ 4 keeps the exceptional empty-array normalization out of that conversion.
Here ₂F₁ is the Gauss hypergeometric function. The paper derives van Hoeij’s recorded generating function and Kotesovec’s conjectured leading asymptotic. The proof uses a logarithmic singular expansion and an explicit error estimate; the full analytic conditions and error term are in §4–5.
Statement and proof summary checked against the official PDF and TeX source, Theorem 1, Corollary 2 and §§2–5. Full proof and conditions