The Catalan numbers have no forbidden residue modulo primes
Rob Burns

TL;DR
This paper proves that for any prime p ≥ 5, Catalan numbers modulo p cover all residues infinitely often, and any integer can be expressed as a product of central binomial coefficients modulo p.
Contribution
It establishes that Catalan numbers modulo primes p ≥ 5 are surjective onto all residues and characterizes the automaton structure of their residues.
Findings
Catalan numbers modulo p attain all residues for p ≥ 5.
All residues occur infinitely often in the sequence.
Any positive integer can be expressed as a product of central binomial coefficients modulo p.
Abstract
Let be the th Catalan number. For any prime we show that the set contains all residues mod . In addition all residues are attained infinitely often. Any positive integer can be expressed as the product of central binomial coefficients modulo . The directed sub-graph of the automata for consisting of the constant states and transitions between them has a cycle which visits all vertices.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
Topicssemigroups and automata theory · Coding theory and cryptography · Cellular Automata and Applications
The Catalan numbers have no forbidden residue modulo primes
Rob Burns
Abstract
Let be the th Catalan number. For any prime we show that the set contains all residues mod . In addition all residues are attained infinitely often. Any positive integer can be expressed as the product of central binomial coefficients modulo . The directed sub-graph of the automata for consisting of the constant states and transitions between them has a cycle which visits all vertices.
1 Introduction
The Catalan numbers are defined by
[TABLE]
This note is an addendum to our paper [1]. In that paper we analysed the Catalan numbers modulo primes using automata. Refer to that paper and to [6] for details of how automata can be used to study Catalan numbers and other sequences.
A set is said to have a forbidden residue modulo if no element of is . We show below that the Catalan numbers have no forbidden residue modulo any prime. Garaeva, Luca and Shparlinski [3] established this result for sufficiently large primes. They also showed that in a certain sense the distribution of amongst the non-zero residue classes is roughly equal. They also proved that the set { already includes all residue classes modulo . Our results do not say anything about how quickly covers all residue classes or about how often proportionally each residue class is attained. We do show that each residue class is attained infinitely often. The result for differs from the situation for powers of primes. Eu, Liu and Yeh [2] showed that is a forbidden residue for modulo and are forbidden residues for . Liu and Yeh in [5] calculated and and thereby determined the forbidden residues in each case. They also showed that has forbidden residues for any . Forbidden residues for modulo were calculated by Rowland and Yassawi using automata in [6]. Kauers, Krattenthaler and Müller calculated the generating function for in terms of a special function and so, in theory, could determine forbidden residues in this case. Similarly Krattenthaler and Müller [4] determined the generating function for in terms of a special function.
Another difference between the case and when higher powers of are involved is that in the situation all residues are attained infinitely often. Rowland and Yassawi showed that some residues for are attained only finitely many times.
2 Results
Let be prime and let the set be defined as the multiplicative closure in \biggr{(}\,\frac{\mathbb{Z}}{p\mathbb{Z}}\,\biggr{)}^{\times} of the set of elements
[TABLE]
All elements of are non-zero as for . We showed in [1] that is contained in the set of constant states of the automaton for and hence that the elements of appear as residues of for some . In explanation of this remark, as shown in [1] we have for
[TABLE]
Then if and we have
[TABLE]
Therefore is also a constant state of the automaton for and therefore also a residue of for some .
Lemma 2.1**.**
The set contains all non-zero residues modulo .
Proof.
Since is multiplicatively closed it is enough to show that contains all primes . We observe that if then is also in . We proceed by induction on the set of primes. Firstly, and . Let be prime. Then and
[TABLE]
with
[TABLE]
where is the product of primes strictly less than . Then by induction and by the observation above . So
[TABLE]
∎
Corollary 2.2**.**
For any prime , the Catalan numbers have no forbidden residue modulo .
Proof.
Lemma 2.1 shows that all non-zero residues appear in . In addition, the values of are plentiful, having asymptotic density (see [1]). ∎
Corollary 2.3**.**
For prime any can be written as
[TABLE]
for suitable choices of .
Proof.
The same inductive argument as in Lemma 2.1 can be used to prove the corollary. The choice of is not necessarily unique. ∎
The set of states and transitions for the automata of is a directed graph with the states as vertices and transitions as directed edges. The sub-graph consisting of the non-zero constant states and transitions between them is also a directed graph.
Corollary 2.4**.**
The directed graph formed by the non-zero constant states and transitions has a cycle which visits all vertices in .
Proof.
Let and be two constant states. It is enough to show that there is a directed state path from to . Firstly, is also a constant state by the multiplicative closure of the set . From corollary 2.3 there are such that
[TABLE]
Then since for constants
[TABLE]
we have modulo
[TABLE]
Since the application of each corresponds to a transition between states, the product of the corresponds to a directed path from to . ∎
Observation 2.5**.**
Each residue is attained infinitely often. Firstly from [1] numbers which have base representations containing only digits from the set have a state path which ends at a non-zero constant state. Since is the value of the end state of the state path for , it is non-zero . So at least one non-zero constant state (and so at least one non-zero residue) is attained infinitely often. Secondly, the existence of a cycle in the directed graph of the constant states shows that all non-zero constant states are visited infinitely often.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Rob Burns. Structure and asymptotics for Catalan numbers modulo primes using automata. 2017.
- 2[2] Sen-Peng Eu, Shu-Chung Liu, and Yeong-Nan Yeh. Catalan and Motzkin numbers modulo 4 and 8. European Journal of Combinatorics , 29:1449–1466, 2008.
- 3[3] Moubariz Z. Garaeva, Florian Luca, and Igor E. Shparlinski. Catalan and Apéry numbers in residue classes. Journal of Combinatorial Theory Series A , 113(5):851 – 865, July 2006.
- 4[4] Christian Krattenthaler and Thomas W. Müller. A method for determining the mod- 3 k superscript 3 𝑘 3^{k} behaviour of recursive sequences. Ar Xiv , ar Xiv:1308.2856:82, 2013.
- 5[5] S.-C. Liu and J. Yeh. Catalan numbers modulo 2 k superscript 2 𝑘 2^{k} . J Integer Sequences , 13, 2010.
- 6[6] Eric Rowland and Reem Yassawi. Automatic congruences for diagonals of rational functions. Ar Xiv , ar Xiv:1310.8635:42, 2013.
