Three zeros decide parity
Write in binary: . There are exactly three zeros between its two ones. Write in binary: . There are only two. That single missing zero decides the parity of a huge factorial quotient.
The factorial is the product from to , with . The paper studies
Haobo Ma and Wenlin Zhang prove: this quotient is always a positive integer, and it is odd exactly when consecutive ones in the binary expansion of have at least three zeros between them. A single one satisfies the condition. So does , whose binary support is empty; indeed . See Theorem 2.1 for the precise statement; positivity follows directly from positivity of the factorials.
For example, is odd. The rule says that is even and is odd without expanding or . This is the benefit: a question about enormous products becomes a question about the digits of the input.
Peter Bala posed this parity conjecture in the References field of OEIS A295462 on 23 August 2026, and proved the two divisibilities discussed below. Gheorghe Coserea entered the sequence in 2017. This explanation follows version 4 of the paper. Integrality of these factorial ratios was already part of Jonathan W. Bober’s earlier classification.
Count the factors of two
A positive integer is even if it contains at least one factor of . For example, contains two. Write for the number of factors of a prime in a positive integer . For a positive rational number, subtract the denominator’s count from the numerator’s.
In , each even number contributes one factor of , each multiple of contributes another, and each multiple of another. Thus
Here is the greatest integer at most . Apply the same count to any prime , and subtract the denominator counts in the factorial quotient:
where the longer expression is easier to read on two lines:
The sum is finite: every term vanishes once . Because , adding to leaves unchanged. We only need , and all jumps lie on a grid of spacing . Checking its thirty cells shows that takes only the values and .
No prime can remain in the reduced denominator, so is an integer. More decisively, the summands cannot cancel: is odd exactly when every is zero.
Why three zeros?
Binary position has weight . If the ones are at least four positions apart, the tail below an occupied position can occupy, at most, positions . Hence
The inequality is strict because an integer has finitely many digits. The denominator comes from the geometric sum : it links the four-position spacing to the factorial coefficients.
Dividing by and taking the fractional part reads just the last binary digits. If their highest occupied position is , this fraction is , where and . Checking , and then , gives in every case. Sufficient spacing leaves no factor of two.
Conversely, move from low positions to high positions and find the first pair less than four positions apart. Its distance is . The lower digits have not yet violated the rule, so the same tail bound applies. Reading the last digits gives
All three cases give . That single summand is enough: all others are nonnegative, so the quotient is even. The precise proof includes the small tables that make both checks explicit.
The film connects these steps: read a suffix, inspect its gap, and detect the surviving factor of two.
Three zeros decide parity: from and to nonnegative prime-factor counts.
Beyond odd and even
Bala proved that both and divide . Both are odd, and any common divisor divides
They are therefore coprime, so their product also divides . Dividing by this odd product preserves parity. This is Corollary 2.2; at , for example, .
The spacing rule also counts. Let count inputs with odd . Write them as -digit binary words, allowing leading zeros. For , a valid word begins either with or with , giving
Thus and . The valid inputs below are . Corollary 2.3 also gives a recursion that lists all valid inputs in increasing order.
Another application concerns bitwise operations. XOR returns one when the two bits differ; AND returns one when both are one; OR returns one when at least one is one. If the ones in are at least four positions apart and , multiplying by places copies of its four-bit pattern in disjoint windows. Consequently, for ,
The analogous statements hold for AND and OR. For , , , each window works independently: . The paper also handles two identities outside the four-bit mask range using carries that stop after one position; Corollary 2.4 preserves them. Paul D. Hanna listed the eleven XOR identities in 2006; Sebastian Karlsson verified them with Walnut in 2022. This paper gives alternative written proofs using binary support.
A second factorial quotient
OEIS A295431 concerns a different number:
It must be distinguished from . It has its own periodic floor function taking values zero and one. The paper uses it to answer five divisibility questions posed by Bala on 28 August 2025, and to handle two product families of arbitrary length. For example,
There are exactly three factors in that denominator. More generally, after fixing a length , one can choose a constant independent of that makes division by integral for . The other family uses factors with coprime to . These factors may be negative but never zero. Corollary 2.5 gives the constants and all boundary cases.
Why can one constant handle a whole product? For each prime, select the denominator factor containing it to the highest power. Every other factor differs from this one by a difference of indices. The product of those differences is controlled by . The strongest factor is controlled by the floor function for and a least common multiple. An arbitrary product reduces to one factor plus its index differences. The constants are sufficient; the paper does not assert that they are smallest.
Evidence and limits
The precise statements and proofs retain all six source results, including both sets of binomial formulas, the hypergeometric generating functions, Mathar’s recurrence, and the asymptotic expansions. Numerical examples in the story illustrate the argument; they do not replace proofs for all inputs.
The Lean parity declaration proves that a natural number realizes the rational quotient and characterizes its parity. Positivity follows from the positive factorials. The Lean divisibility declaration covers all five fixed A295431 divisibilities and both unbounded product families. The quotient , counting, bitwise operations and additional formulas retain written proofs and their shared formalization requests here.
These results do not supply A295431’s explicit moment density, its shape or uniqueness, or analogous divisibility results for each of the other 51 sporadic ratios. Prime-power congruences and integrality at half and third arguments have prior proofs cited by the manuscript; they are distinct from the two product families here. See Sources for attribution and contribution links.
The seminar follows the same path from examples to the mechanism and its extensions.