RESEARCH / Focused target
Hanna’s power-of-two residue conjecture
RELEASED FOUNDATIONS / PROPOSED CONNECTION
Research connections
All source anchors (1)
- D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialModFour.resultAbsent from this graph
Problem
The question
P. D. Hanna, OEIS A246423, Name and Comments; preregistration #18888.
a(n) == 2 (mod 4) iff n = 2^k for k>=2, and a(n) == 0 (mod 4) elsewhere except at a(0)=1 (conjecture).
Its generating function is $\sum_{n\ge0}x^n(1-3x)^{-2n-1}Q_n(2x)Q_n(3x)$, with offset zero. The conjecture is proved.
Statement echo
| Source clause | Lean counterpart | Fidelity |
| --- | --- | --- |
| The Name generating function | term and coefficientwise A | Literal preregistered rational expressions; the coefficient at $m$ uses $n\le m$. |
| $a(0)=1$ | First conjunct of claim | The constant term is explicit. |
| Every positive index, integral coefficients | Universal $n>0$ and integer witness equal to its coefficient | Integrality at zero follows from the first conjunct. |
| Residue two iff $n=2^k$, $k\ge2$ | The biconditional in claim | The exponent bound is retained. |
| Zero modulo four elsewhere | Complement implication in claim | No complementary case is omitted. |
The public result proves exactly claim, without additional hypotheses. The definitions are mirrored in the Library note.
Motivation
Our foothold
The two generating functions differ only in the linear denominator. Their integer lifts share the alternating binomial-square transform. The companion settlement is preregistered as #18887 and has its own result and dossier.
Gap
Missing bridges
The preregistration records the source and literature screen: the OEIS comments cite no proof; searches of the OEIS Open catalogue, formal-conjectures, the cited OEIS-proof papers and the repository found no settlement in the searched scope. The classical Legendre generating function and Lucas congruence are established results. Literature completeness and independent priority are ASSUMED-UNVERIFIED.
Route
Proposed approach
Write $Q_n(t)=\sum_{k=0}^n\binom nk^2t^k$ and $R(x)=\sum_{n\ge0}x^n(1+x)^{-2n-1}Q_n(-x)$. The integer coefficient transform gives $[x^N]R=0$ for odd $N$ and $[x^{2m}]R=(-1)^m\binom{2m}m$. Every source summand has order at least its index, so every coefficient uses a finite sum. Mapping the integer series to the rationals proves integrality without an analytic convergence assumption.
Modulo four the polynomial with powers of two reduces to $1+2n^2x$. Hence the source series is $R+2xT'$ modulo four, where $T'$ weights summands by $n^2$. Since $n^2\equiv n\pmod2$ and $T\equiv x\pmod2$, the correction is $2x^2$. The binary Lucas recurrence identifies the central-binomial residue two at powers of two; the correction cancels degree two.
Falsifier
What would falsify this route
The full source generating function, its offset zero and the complementary residue class are essential. A finite coefficient test alone does not prove the all-index assertion. The settling result has no hypotheses and proves the complete claim, with an integer coefficient witness at every index in its stated domain.
Evidence
Evidence to collect
The settling declaration is D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialModFour.result. The shared supporting module is D5/S1/Recurrence/Invariants/HannaLegendreCentralBinomialTransform. The source definitions and the complete result statement have Blueprint descriptions. The axiom closure is checked separately from the literature priority claim.
Experiment: published program and data. Command: python3 check_a246423.py 300 b246423.txt, exit 0, RESULT PASS; script SHA-256 68d28ad63aa1e667fc8d8c2802a7685570cc5e8898e897fe8b6a49d0a60ceef2. Tested degrees $0\ldots300$: equality with the b-file, the exact $R$ and $T$ coefficients, $T'\equiv T\pmod2$, the mod-four reduction and the stated residues.
The escape audit is unfinished for the eleven public theorems enumerated in #19311. No Reg registration is delivered. Missing evidence consists of faithful full-telescope realization bridges, enrolled readouts and compiled variation, sensitivity and observational-dependence proofs.
Triage
Scope assessment
What the settlement shows
- Kernel-checked: both original all-index residue conjectures, including integrality, are stated by
HannaLegendreCentralBinomialModThree.resultandHannaLegendreCentralBinomialModFour.resultunder the namespaceD5.S1.Recurrence.Invariants. - Kernel-checked: the shared exact integer binomial-square identity is
HannaLegendreCentralBinomialTransform.square_binomial_sum; the alternating central-binomial coefficient formula isHannaLegendreCentralBinomialTransform.R_coeff. - Proved in prose: the rational closed form is $R(x)=(1+4x^2)^{-1/2}$. Indeed the formal binomial expansion gives $\binom{-1/2}{m}4^m=(-1)^m\binom{2m}m$, so its coefficients equal the kernel-checked formula. The fractional power denotes the rational formal binomial series with constant coefficient one.
- Kernel-checked:
HannaLegendreCentralBinomialTransform.T_coeff,T_oddandT_evengive the exact first-moment coefficients for $T(x)=\sum_{n\ge0}n x^n(1+x)^{-2n-1}Q_n(-x)$; these are private, consumed declarations.T_mod_twogives $T\equiv x\pmod2$. The mod-four module'stwice_T2_four,source_residue_fourandresultprove the correction and its cancellation at degree two, explaining why the exponent starts at two. - Proved in prose: $T(x)=x(1-2x)(1+4x^2)^{-3/2}$. The coefficient of $x^{2m}$ in the last factor is $(-1)^m(2m+1)\binom{2m}m$. Multiplication by $x-2x^2$ gives exactly
T_oddandT_even, since $2(2m+1)\binom{2m}m=(2m+2)\binom{2m+1}m$; the constant coefficient is zero. - Computed:
check.pychecks A246056 against its b-file, the exact reduced-series coefficients and the ternary residue law for degrees $0\ldots300$; its pinned program, hash, command and exit are in the A246056 experiment entry. This is a finite check. - Computed:
check_a246423.pychecks A246423 against its b-file, the exact $R$ and $T$ coefficients and both moment/residue reductions for degrees $0\ldots300$; its pinned program, hash, command and exit are in the A246423 experiment entry. This is a finite check. - Open: the separate route-check program's Legendre substitutions at $n=0\ldots8$, symbolic WZ residual and square relation through degree $80$ have no program in the two published experiment commits cited here. No independently reproduced reading of that program is claimed. The exact identities above have their own proof evidence.
- Open: residues modulo eight are unaddressed. The full Kummer valuation theorem and a general formal Legendre generating-function theorem are not added.
The shared formulas hold for every index; the generic coefficient constructions are over commutative rings. The two source residue laws have their stated fixed moduli. The inspected source identifies no further theorem conditional on either conjecture. Its separate Formula expressions, recurrences and asymptotics are outside these settling statements.
ASSUMED-UNVERIFIED
Unverified assumptions
Literature-screen completeness and independent priority remain ASSUMED-UNVERIFIED. Source and literature readings attributed to the orchestrator are recorded in the preregistration. The escape audit is unfinished as specified in #19311. The unarchived route-check computation is not independently verified.