Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Statements and proofs

Throughout, is a nonnegative integer and . The six results below correspond to source Theorem 1 and Corollaries 2–6. Put for the set of occupied binary positions of . It is four-separated when for all in , including the empty set. Define

Theorem 2.1 (Natural realization and parity)LEAN ✓

For every , there is a natural number with in the rationals, and is odd if and only if is four-separated.

The source also states : every factorial is positive and the denominator is nonzero, so this natural realization is strictly positive. This elementary consequence is separated here from the literal conclusion of the formal declaration above.

Proof

Put

Balance of the coefficients gives . On the half-open cell , , its value is . In groups of ten, these values are

Thus , including the jump points. Legendre’s formula gives , with zero terms for . A positive rational with all prime valuations nonnegative is an integer; at it equals . For , the sum vanishes exactly when every summand vanishes.

For four-separated support, a tail below position and at least four positions away satisfies

Fix and put . If , then . Otherwise write , , and . Then with . The five-tuples below list :

  • : ;
  • : ;
  • : ;
  • : .

Every row gives ; periodicity identifies it with .

If the support is not four-separated, choose the lowest occupied position with a predecessor among the previous three positions, and let be its immediately preceding occupied position. Then . Minimality of makes the lower part four-separated, so

At , , the three five-tuples are , and . Each gives , so . This proves both directions. Source: §2, proof of Theorem 1; the linked declaration supplies the complete formal proof.

Corollary 2.2 (Removing two odd factors)WRITTEN PROOF

is a positive integer for every , and is odd if and only if is four-separated.

Proof

This is source Corollary 2 in §3; the divisibilities are attributed to Bala (2026). Let or . If a prime divides , then . For each , put and . Write , where and . Thus . For , and ; for , and . Substitution into , in the preceding five-tuple order, gives:

  • : ; : ;
  • : ; : ;
  • : ; : .

Every row gives , including the smallest allowed endpoint . Hence , proving . The two divisors are odd and any common divisor divides . They are coprime, so their product divides . The quotient is positive and its divisor odd, giving . Apply Theorem 2.1. At the quotient is .

Corollary 2.3 (Counting and ordered enumeration)WRITTEN PROOF

Let count inputs with odd . Then

List these inputs in increasing order as . Then . For there is a unique with , and

Proof

Source §3, Corollary 3. By Theorem 2.1, count four-separated binary words. Allowing leading zeros, the counts at lengths are . At length , an initial leaves any valid word of length ; an initial must be followed by , leaving any valid word of length . These disjoint cases exhaust the possibilities.

The counts strictly increase because is a new valid input, and are unbounded because every single-one word is valid. Thus exists uniquely. Exactly valid inputs lie below . For , those in are precisely plus valid suffixes below ; for , only the zero suffix is possible. Their internal order is the suffix order, so subtracting from the enumeration index proves the recursion.

Corollary 2.4 (Four-bit windows and eleven XOR identities)WRITTEN PROOF

If is odd, then for ,

The same identity holds with XOR replaced throughout by AND or OR. Each triple below also satisfies :

Proof

Source §4, Corollary 4. The eleven identities are attributed to Hanna (2006), with earlier Walnut verification by Karlsson (2022). By Theorem 2.1, is four-separated. The four-bit blocks in are disjoint, so all three bitwise operations act block by block. This proves the general formulas and the first nine triples.

For the final two triples take or and put . The sets and are disjoint: an intersection would put two positions of at distance or . A collision in the addition occurs only at and creates a carry at . This position is not in , since it would be adjacent to , or in , since then would be adjacent to in . Every carry therefore stops after one position. A carry position also avoids and , since otherwise a position of would be at distance or from . Hence have pairwise disjoint supports, and

The pairs are and . Associativity of XOR and give the listed triples after XORing again with . This includes . The source also observes that, for every , -separated support and masks obey the corresponding blockwise XOR/AND/OR formulas: their blocks have length and are disjoint.

Products of arbitrary length

Let for , and define

Corollary 2.5 (Fixed divisibilities and two product families)LEAN ✓

The following five expressions are integers for every . With the constants displayed below, the final two expressions are also integers for every and (and in the first family).

All denominators are nonzero. Signed factors are interpreted in the integers, and .

Proof

Source §5, Corollary 5. The linked formal proof covers every displayed expression and quantifier. Here is the mechanism behind the uniform constants. Put

It has period one and values on the twelve half-open cells of length . Thus is a positive integer and ; terms vanish when .

For the fixed expressions, inspect the left-hand cells forced by . For , misses one unit only at ; misses one only at ; has no missing levels. These explain and . At the small primes Legendre’s formula gives

where is the base- digit sum. If , , the last bits of are , of weight , and the positive prefix supplies another one; is immediate. If , the last bits are all one. If , the last ternary digits of sum to , and the positive prefix supplies at least one more. If , those digits are all two. This completes the first three expressions. The three denominators are pairwise coprime except for a possible extra factor of two shared by and ; when both are even, one has binary valuation one. The two missing levels modulo five occur in distinct residue classes, so suffices. If , then and the point approaches from the right, , always giving . This proves integrality of the expression with denominator .

For a general denominator product, select a factor with maximal -valuation , at index . Every other factor has valuation at most , by subtracting the maximal factor; equal valuations also satisfy this bound. The product of the relevant differences divides , which divides . This works for subsets and signed factors as well. Writing for the denominator product, we obtain

For the first family put . If , and , the fractional residue is , in a left-hand interval of width at or . Thus and . For , use

on and , with . If , then ; otherwise . In the remaining case , the valuation is zero if ; if , extracting loses at most one further unit. Both small primes therefore satisfy . The factor supplies , supplies the small-prime allowance, and handles the other factors.

For the second family, every factor is coprime to six. If divides , the fractional residue is , , in a right-hand cell with . Hence , supplied by and the same product bound. Finally, contradicts , so no denominator vanishes.

Corollary 2.6 (Coefficient formulas and growth)WRITTEN PROOF

The binomial identities, hypergeometric series and asymptotic formulas in A295462 and A295431 hold, as does Mathar’s recurrence for A295431. The proof below explicitly lists the formulas and definitions meant by source §6, Corollary 6.

Proof

Source §6, Corollary 6. Expanding factorials gives Chai Wah Wu’s two A295462 identities:

Divide every element of the first displayed set by , and define the parameters:

This ratio follows by cancellation of consecutive factorials, with . Define the rising factorial by and . The th term of is . The initial value and this ratio uniquely determine the coefficients, so as a formal power series,

Stirling’s formula gives the asymptotic expression recorded by Amiram Eldar in A295462:

The factors cancel, the powers of leave , and the square-root constant is .

For the same cancellation gives Wu’s two A295431 identities:

The consecutive ratio is Mathar’s recurrence ():

Using and the same coefficient-ratio argument gives the formal generating function, with its parameters on separate lines:

Finally, Penson’s expansion is (as )

Stirling’s logarithmic expansion gives the square-root prefactor and the coefficient . There is no term in the logarithm; exponentiating supplies , with the Stirling remainder giving . The formal series identities require no choice of a convergence point. The asymptotics apply along positive integers as , and are not evaluated at .