We study properties of functions of binomial coefficients mod 2 and derive a set of recurrence relations for sums of products of binomial coefficients mod 2. We show that they result in sequences that are the run length transforms of well known basic sequences. In particular, we obtain formulas for the run length transform of the positive integers, Fibonacci numbers, extended Lucas numbers and Narayana's cows sequence.
- Paper ID: 1610.06166
- Title: Sums of products of binomial coefficients mod 2 and run length transforms of sequences
- Author: Chai Wah Wu (IBM Research AI, IBM T. J. Watson Research Center)
- Classification: math.CO (Combinatorics)
- Publication Date: Initial submission October 19, 2016; latest revision August 12, 2022
- Paper Link: https://arxiv.org/abs/1610.06166v10
This paper investigates the functional properties of binomial coefficients modulo 2, deriving a collection of recurrence relations for sums of products of binomial coefficients modulo 2. The research demonstrates that the sequences generated by these recurrence relations are run length transforms of several well-known fundamental sequences. In particular, the paper obtains explicit formulas for the run length transforms of positive integers, Fibonacci numbers, extended Lucas numbers, and Narayana's cattle sequence.
- Core Problem: Determine when binomial coefficients (kn) are even or odd, i.e., compute (kn)mod2
- Classical Results: Pascal's triangle modulo 2 exhibits a fractal structure corresponding to the Sierpiński gasket
- Theoretical Foundation: Lucas' theorem provides a simple method for computing binomial coefficients modulo a prime. For p=2, (kn) is even if and only if there exists a bit position i where the binary representations satisfy ni<ki
- Theoretical Importance: Connects combinatorics, number theory, and bitwise operations in computer science
- Practical Value: Run length transforms are useful for analyzing the number of ON cells after n iterations of cellular automata
- Unified Framework: Establishes deep connections between binomial coefficients modulo 2 and famous integer sequences
- Although Lucas' theorem provides a decision method, systematic research on recurrence relations for sums of products of binomial coefficients is lacking
- The connection between run length transforms and binomial coefficients modulo 2 has not been fully explored
- A unified framework for characterizing run length transforms of different integer sequences is absent
To systematically study properties of binomial coefficients modulo 2 using bitwise operations, establish connections with run length transforms, and provide new perspectives for understanding cellular automata and integer sequences.
- Theoretical Framework: Introduces functions F(n,k)=(a3n+a4ka1n+a2k)(kn)mod2 and corresponding bitwise function g(n,k), systematically investigating their properties
- Recurrence Relations: Derives multiple recurrence relations satisfied by F(n,k) (Theorems 5, 13, 16), covering second-order, third-order, and fourth-order cases
- Run Length Transform Formulas: Obtains explicit expressions for run length transforms of the following famous sequences:
- Fibonacci sequence (Theorem 6)
- Positive integers (Theorem 10)
- Extended Lucas numbers (Theorem 17)
- Narayana's cattle sequence (Theorem 14)
- Other sequences (truncated Fibonacci, 1 plus powers of 2, etc.)
- Unified Characterization: Proves that these run length transforms can be expressed as a(n)=∑k=0nF(n,k)
- Complete Classification: Summarizes 10 sequences and their run length transform coefficients (a1,a2,a3,a4) in Table 1
Input: Integer sequence {Sn}n≥0 satisfying specific recurrence relations
Output: Explicit expression for its run length transform {Tn}n≥0Constraint: Characterized through sums of products of binomial coefficients modulo 2
For sequence {Sn}n≥0, its run length transform {Tn}n≥0 is defined as:
- T0=S0=1
- For n>0, Tn=∏i∈RSi, where R is the set of run lengths of consecutive 1's in the binary representation of n
Example: n=463=1110011112 has two runs of lengths 3 and 4, so T463=S3⋅S4
Using bitwise operations ∧ (AND), ∨ (OR), ¬ (NOT):
Theorem 1: (kn)≡0mod2⇔k∧(¬n)=0
Theorem 2: (kn)(rm)≡0mod2⇔(k∧(¬n))∨(r∧(¬m))=0
Theorem 3: Generalization to products of multiple binomial coefficients
For integers a1,a2,a3,a4 satisfying 0≤a1+a2 and 0≤a3+a4, define:
F(n,k)=(a3n+a4ka1n+a2k)(kn)mod2
g(n,k)=((a3n+a4k)∧¬(a1n+a2k))∨(k∧¬n)
Key Property: F(n,k)=1⇔g(n,k)=0
F(n,k) satisfies the following properties:
- F(n,k)=0 if k>n
- F(2rn,2rk)=F(n,k) (scaling invariance)
- F(2n,2k+1)=0 and other vanishing properties
- Under specific conditions: F(4n+1,4k)=F(n,k)
- Condition determination based on a3∧¬a1mod4
The sequence a(n)=∑k=0nF(n,k) satisfies:
- a(0)=1
- a(2rn)=a(n)
- Under appropriate conditions: a(4n+1)=a(n)+∑k=0nF(4n+1,4k+1)
- Bitwise Perspective: Transforms Lucas' theorem into bitwise operations, making recurrence relation derivations more intuitive and systematic
- Unified Framework: Through different values of parameters (a1,a2,a3,a4), uniformly characterizes run length transforms of multiple famous sequences
- Modular Arithmetic Techniques: Uses ia3∧¬ia1mod2m to determine vanishing properties of F, which is key to deriving recurrence relations
- Recurrence Hierarchy: Generalizes from second-order (Theorem 4) to third-order (Theorem 12) and fourth-order (Theorem 12), demonstrating method extensibility
- Explicit Construction: Not only proves existence but provides concrete coefficient choices, making results computable and verifiable
This is a pure mathematical theory paper employing theorem proving rather than experimental verification:
- Proof Strategy:
- Rigorous derivation through algebraic properties of bitwise operations
- Analysis using least significant bits of binary representations
- Verification of recurrence relations by induction
- Concrete Example Verification:
- Provides numerical examples for each theorem
- Example: run decomposition of n=463=1110011112
- OEIS Database Cross-Reference:
- All resulting sequences have corresponding entries in OEIS (Online Encyclopedia of Integer Sequences)
- Provides sequence numbers for independent verification
Uses standard integer sequences from the OEIS database:
- A000045 (Fibonacci)
- A000027 (Positive integers)
- A000930 (Narayana's cattle sequence)
- A000032 (Lucas numbers)
- And 10 sequences total (see Table 1)
Coefficients: (a1,a2,a3,a4)=(1,−1,0,2)
a(n)=∑k=0n(2kn−k)(kn)mod2
Recurrence Relations:
- a(0)=1
- a(2n)=a(n)
- a(4n+1)=a(n)
- a(4n+3)=a(2n+1)+a(n)
This is precisely the run length transform of the Fibonacci sequence {1,1,2,3,5,8,13,…} (OEIS A246028)
Coefficients: (a1,a2,a3,a4)=(1,1,1,−1)
a(n)=∑k=0n(n−kn+k)(kn)mod2
Recurrence Relations:
- a(2n)=a(n)
- a(4n+1)=2a(n)
- a(4n+3)=2a(2n+1)−a(n)
Corresponds to the run length transform of the positive integer sequence {1,2,3,4,5,…} (OEIS A106737)
Coefficients: (a1,a2,a3,a4)=(1,−1,0,6)
a(n)=∑k=0n(6kn−k)(kn)mod2
Recurrence Relations (third-order):
- a(8n+1)=a(8n+3)=a(n)
- a(8n+5)=a(2n+1)
- a(8n+7)=a(n)+a(4n+3)
Corresponds to sequence {1,1,1,2,3,4,6,9,13,19,…} (OEIS A000930)
Coefficients: (a1,a2,a3,a4)=(1,2,2,−1)
a(n)=∑k=0n(2n−kn+2k)(kn)mod2
Recurrence Relations (fourth-order):
- a(16n+1)=a(16n+3)=a(16n+5)=a(16n+7)=a(n)
- a(16n+9)=a(16n+11)=2a(2n+1)
- a(16n+13)=a(4n+3)
- a(16n+15)=a(8n+7)+a(4n+3)
Corresponds to sequence {1,1,2,1,3,4,7,11,18,…} (OEIS A329723)
| Sequence Description | OEIS | Sequence Terms | Coefficients (a1,a2,a3,a4) | RLT OEIS |
|---|
| Powers of 2 | A000079 | 1,2,4,8,... | (1,0,0,1) | A001316 |
| Fibonacci | A000045 | 1,1,2,3,5,8,... | (1,-1,0,2) | A246028 |
| Truncated Fibonacci | - | 1,2,3,5,8,13,... | (0,3,0,1) | A245564 |
| 1 + powers of 2 | A011782 | 1,1,2,4,8,16,... | (1,0,0,2) | A245195 |
| 1 followed by 2's | A040000 | 1,2,2,2,2,2,... | (1,2,0,2) | A277561 |
| Positive integers | A000027 | 1,2,3,4,5,6,... | (1,1,1,-1) | A106737 |
| All ones | A000012 | 1,1,1,1,1,1,... | (1,-1,0,1) | A000012 |
| Narayana's cattle | A000930 | 1,1,1,2,3,4,6,9,... | (1,-1,0,6) | A329720 |
| Repeated positive integers | A008619 | 1,1,2,2,3,3,4,4,... | (1,3,0,6) | A278161 |
| Extended Lucas | A329723 | 1,1,2,1,3,4,7,11,... | (1,2,2,-1) | A329722 |
Theorem 11: Fixed Point Property of All-Ones Sequence
∑k=0n(kn−k)(kn)mod2=1,∀n≥0
That is, (n−k,k)(kn) is odd if and only if k=0. This can be explained geometrically through the Sierpiński triangle: moving right k steps from the left edge to reach a point on the triangle, then moving diagonally k steps further necessarily reaches a blank space.
- Lucas' Theorem (1878): Classical result for computing binomial coefficients modulo a prime
- Fine (1947), Granville (1997): Arithmetic properties of binomial coefficients modulo prime powers
- Stewart (1995), Weisstein: Connection between Pascal's triangle modulo 2 and the Sierpiński triangle
- Sloane (2018): Introduces run length transform concept in cellular automata analysis
- Theorem 4: Recurrence relations satisfied by run length transforms of second-order recursive sequences
- This paper generalizes to third-order (Corollary 1) and fourth-order (Corollary 2)
- Gould's sequence/Dress' sequence: ∑k=0n(kn)mod2 is the run length transform of powers of 2 (OEIS A001316)
- Leroy, Rigo, Stipulanti (2016): Generalized Pascal triangles for binomial coefficients of words
- Mathonet et al. (2022): Numerical sequences related to Pascal's triangle
- Systematicity: Provides unified framework rather than case-by-case studies
- Explicitness: Gives concrete binomial coefficient sum expressions
- Extensibility: Methods generalize to higher-order recurrences
- Completeness: Covers multiple families of famous sequences
- Theoretical Contribution: Establishes profound connections between binomial coefficients modulo 2 and run length transforms; different integer sequences can be characterized through parameter choices (a1,a2,a3,a4)
- Methodological Innovation: Bitwise perspective provides effective tools for systematically deriving recurrence relations, avoiding case-by-case analysis
- Concrete Results: Obtains explicit formulas for run length transforms of 10 famous sequences including Fibonacci, Lucas, and Narayana's cattle sequence
- Unified Framework: Proves that these run length transforms can all be expressed as ∑k=0n(a3n+a4ka1n+a2k)(kn)mod2
- Parameter Selection: While 10 examples are provided, systematic methods for determining coefficients (a1,a2,a3,a4) for given sequences are lacking
- Coverage Range: Only considers second-order, third-order, and fourth-order recurrences; higher-order cases have general theorems (Theorem 12) but lack concrete examples
- Necessary and Sufficient Conditions: Does not fully characterize which sequences' run length transforms can be expressed in this form
- Computational Complexity: Computing a(n) for large n requires summing O(n) terms; more efficient algorithms may exist
- Extension Directions:
- Can this generalize to modulo other primes?
- What about products of more than 2 binomial coefficients?
- Inverse Problem: Given sequence {Sn}, how to systematically find coefficients (a1,a2,a3,a4) such that its run length transform can be expressed as a binomial coefficient sum?
- Algorithm Optimization: Develop more efficient algorithms to compute a(n) directly without explicit summation
- Generalization to modpk: Study analogous properties of binomial coefficients modulo prime powers
- Cellular Automata Applications: Use these results to analyze more cellular automaton rules
- Combinatorial Interpretations: Seek combinatorial proofs (bijective proofs) of these identities
- Theoretical Depth:
- Cleverly transforms Lucas' theorem into bitwise language, making derivations more transparent
- Recurrence relation derivations are rigorous and complete, with detailed proofs for each theorem
- Unified framework possesses strong theoretical elegance
- Methodological Innovation:
- Bitwise perspective is a natural tool for modulo 2 problems, but underutilized in combinatorics; this paper demonstrates its power
- Transforms binomial coefficient modulo 2 problems into pure bitwise operations through function g(n,k)
- Rich Results:
- Covers 10 famous sequences, each verified against OEIS
- Complete treatment from second-order to fourth-order recurrences
- Special results like Theorem 11 (all-ones sequence fixed point) provide valuable insights
- Clear Exposition:
- Precise definitions and consistent notation
- Appropriate examples (e.g., run decomposition of n=463)
- Table 1 provides clear result summary
- Verifiability:
- All sequences have OEIS numbers for independent verification
- Recurrence relations can be verified computationally
- Lack of Algorithm Analysis:
- No discussion of computational complexity
- No pseudocode for efficient implementation
- Practical utility for large-scale computation unclear
- Inverse Problem Unresolved:
- How to find coefficients (a1,a2,a3,a4) for given sequences?
- Can all run length transforms be expressed in this form?
- Necessary conditions not fully characterized
- Missing Combinatorial Interpretations:
- While algebraic derivations are rigorous, combinatorial intuition is lacking
- Why do these specific coefficients correspond to these sequences? Is there deeper reason?
- Limited Application Scope:
- Primarily theoretical results; cellular automata applications insufficiently discussed
- Connections with other mathematical fields (number theory, algebra) not fully explored
- Incomplete Higher-Order Cases:
- Theorem 12 provides general framework, but fifth-order and higher lack concrete examples
- Relationship between recurrence order and coefficient selection not discussed
- Academic Value:
- Provides new tools for intersection of combinatorics and number theory
- May inspire research on other modulo-prime problems
- Contributes multiple new sequences to OEIS (A329720, A329722, A329723)
- Theoretical Significance:
- Deepens understanding of Pascal's triangle modulo 2 structure
- Bridges discrete sequences and bitwise operations
- Provides rich examples for run length transform theory
- Practical Value:
- Applicable to cellular automata analysis
- Potential applications in coding theory and cryptography (universality of modulo 2 operations)
- Provides new sequence generation methods
- Reproducibility:
- All results verifiable through OEIS
- Detailed proofs allow independent verification
- Suitable as teaching material
- Theoretical Research:
- Identity proofs in combinatorics
- Integer sequence property research
- Modular arithmetic theory
- Computer Science:
- Cellular automata analysis
- Bitwise operation optimization
- Sequence generation algorithms
- Mathematical Education:
- Demonstrating bitwise operations in pure mathematics
- Advanced applications of Lucas' theorem
- Systematic study of recurrence relations
- Related Fields:
- Coding theory (binary codes)
- Cryptography (modulo 2 operations)
- Algorithm design (divide-and-conquer and binary representation)
Key references cited in the paper include:
- Lucas' Theorem Foundations:
- Fine (1947): "Binomial coefficients modulo a prime"
- Granville (1997): "Arithmetic properties of binomial coefficients"
- Sierpiński Triangle:
- Stewart (1995): "Four encounters with Sierpiński's gasket"
- Weisstein: MathWorld resources on Sierpiński sieve
- Run Length Transforms:
- Sloane (2018): "On the number of ON cells in cellular automata" (Cambridge University Press)
- Computer Arithmetic:
- Brent & Zimmermann (2010): "Modern Computer Arithmetic"
- OEIS Database:
- The On-Line Encyclopedia of Integer Sequences (1996-present)
Overall Assessment: This is a high-quality theoretical paper in combinatorics that systematically investigates the relationship between binomial coefficients modulo 2 and run length transforms through clever application of bitwise operations. The paper is theoretically rigorous, results are abundant, and exposition is clear, providing valuable tools and insights for related fields. Main limitations are the unresolved inverse problem and limited exploration of broader applications, but as a pure theoretical contribution, it is quite complete and profound.