/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/importFormalConjecturesUtil
Sum of two squares and two central-binomial-type terms
A303639 counts the ways to write $n$ as $a^2 + b^2 + \binom{2c+1}{c} + \binom{2d+1}{d}$ with
$a, b, c, d$ nonnegative integers, $a \le b$ and $c \le d$.
The predicate that $n$ can be written as $a^2 + b^2 + \binom{2c+1}{c} + \binom{2d+1}{d}$
for nonnegative integers $a, b, c, d$.
This drops the normalisations $a \le b$ and $c \le d$. They do not affect whether the count is
positive, and refuting the unordered statement is the stronger result, since a representation
with $a \le b$ and $c \le d$ is in particular a representation.
Zhi-Wei Sun's Conjecture (A303639): any integer $n > 1$ can be written as
$a^2 + b^2 + \binom{2c+1}{c} + \binom{2d+1}{d}$ with $a, b, c, d$ nonnegative integers.
Sun checked this for $n$ up to $6 \cdot 10^8$.
This is false: $n = 800322180$ admits no such representation, so $a(800322180) = 0$. Since
$\binom{33}{16} > 800322180$, only $c, d \le 15$ are possible, and each of the resulting $136$
remainders $800322180 - \binom{2c+1}{c} - \binom{2d+1}{d}$ is divisible by some prime
$p \equiv 3 \pmod 4$ to an odd power, hence is not a sum of two squares by Fermat's two-square
theorem.
The counterexample is recorded as an approved comment on the OEIS entry; the Lean proof linked
below formalises this argument, and was produced by Claude Opus 5 prompted by Sunsu Jeong
(DCLXAI).