[Paper Review] Structure and asymptotics for Motzkin numbers modulo small primes using automata
This paper uses automata-theoretic methods to analyze the asymptotic density and structural patterns of Motzkin numbers modulo primes up to 29. By constructing automata based on Rowland and Yassawi's framework, it derives exact asymptotic densities—such as 1 for primes 7, 17, 19 and 22/3045 for 29—and identifies recurring forms in base-p expansions that determine when $ M_n \equiv 0 \mod p $, revealing a pattern where densities are either 1 or $ \frac{2}{p(p-1)} $, with 29 as a notable exception.
We establish the asymptotic density and some structure results for the Motzkin numbers modulo primes up to 29 using automata.
Motivation & Objective
- To determine the asymptotic density of Motzkin numbers $ M_n \equiv 0 \mod p $ for primes $ p \leq 29 $, extending prior work on small primes.
- To identify structural patterns in the base-$ p $ expansions of $ n $ for which $ M_n \equiv 0 \mod p $, using state diagrams of automata.
- To investigate whether the asymptotic density of $ S_p(0) $ follows the pattern $ \frac{2}{p(p-1)} $ or is 1, as observed for smaller primes.
- To demonstrate that automata provide an effective tool for computing asymptotic densities and uncovering recurrence structures in $ M_n \mod p $, even for larger primes.
Proposed method
- Construct automata for $ M_n \mod p $ using the algorithm from Rowland and Yassawi (2013), which generates finite-state machines from the generating function of Motzkin numbers.
- Use the state transition diagrams of these automata to identify all paths leading to states with output 0, corresponding to $ M_n \equiv 0 \mod p $.
- Characterize the set of $ n $ for which $ M_n \equiv 0 \mod p $ by analyzing the base-$ p $ digit patterns of $ n $, particularly those involving blocks of digits like 28 and 27.
- Derive asymptotic densities by applying Theorem 4 from [1], which gives the density of sets of the form $ \{ (qi + r)q^{sj + t} \} $, enabling exact computation of densities for each residue class.
- Verify results by analyzing subgraphs of the automaton state diagrams, especially those resembling a specific template (Figure 9), to confirm density lower bounds.
- Use symbolic computation to handle large automata (e.g., 29 states for $ p=29 $), avoiding full enumeration of transitions by focusing on structural patterns in the state transitions.
Experimental results
Research questions
- RQ1What is the asymptotic density of $ M_n \equiv 0 \mod p $ for primes $ p $ from 7 to 29, and does it follow the pattern $ \frac{2}{p(p-1)} $ or 1 observed for smaller primes?
- RQ2What structural forms in the base-$ p $ expansion of $ n $ correspond to $ M_n \equiv 0 \mod p $, and how can these be derived from automaton state diagrams?
- RQ3Does the automaton for $ M_n \mod p $ always contain a loop state with output 0, and are there consistently two other non-initial states with output 0, as observed in all cases?
- RQ4Can the asymptotic density of $ S_p(0) $ be bounded below by $ \frac{2}{p(p-1)} $, and under what structural conditions on the automaton does this hold?
- RQ5Is there a general structural template (e.g., a subgraph pattern) in the automaton that implies a minimum asymptotic density of $ \frac{2}{p(p-1)} $, as seen in cases like $ p=29 $?
Key findings
- The asymptotic density of $ M_n \equiv 0 \mod 7 $ is 1, and $ M_n \equiv 0 \mod 7 $ precisely when $ n = 7^k - 2 $.
- For $ p = 11 $, the asymptotic density of $ S_{11}(0) $ is $ \frac{1}{55} = \frac{2}{10 \cdot 11} $, matching the $ \frac{2}{p(p-1)} $ pattern.
- For $ p = 13 $, the asymptotic density of $ S_{13}(0) $ is $ \frac{1}{78} = \frac{2}{12 \cdot 13} $, again consistent with the $ \frac{2}{p(p-1)} $ formula.
- For $ p = 17 $, the asymptotic density of $ S_{17}(0) $ is 1, and $ M_n \equiv 0 \mod 17 $ when $ n = 17^{2k} - 2 $.
- For $ p = 19 $, the asymptotic density of $ S_{19}(0) $ is 1, and $ M_n \equiv 0 \mod 19 $ when $ n = 19^k - 2 $.
- For $ p = 29 $, the asymptotic density of $ S_{29}(0) $ is $ \frac{22}{3045} > \frac{2}{28 \cdot 29} $, showing that the $ \frac{2}{p(p-1)} $ pattern does not always hold, and the density is derived from four distinct base-29 forms of $ n $.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.