Dynamics of polynomial maps over finite fields
Abstract.
Let be a finite field with elements and let be a positive integer. In this paper, we study the digraph associated to the map , where We completely determine the associated functional graph of maps that satisfy a certain condition of regularity. In particular, we provide the functional graphs associated to monomial maps. As a consequence of our results, the number of connected components, length of the cycles and number of fixed points of these class of maps are provided.
Key words and phrases:
Functional graph, polynomial maps, finite fields, finite abelian group2020 Mathematics Subject Classification:
37P25 (primary) and 05C20(secondary)1. Introduction
The iteration of polynomial maps over finite fields have attracted interest of many authors in the last few decades (for example see [4, 5, 9, 15]). The interest for these problems has increased mainly because of their applications in cryptography, for example see [7, 19]. The iteration of polynomial map over a finite field yields a dynamical system, that can be related to its functional graph, which is formally defined as follows. Let be a finite field with elements and let . The functional graph associated to the pair is the directed graph with vertex set and directed edges .
While the iteration of polynomial maps has been widely studied, a complete characterization of their functional graphs has not been provided. Even though, many particular results in this direction are known. For example, the functional graphs and related questions are known for the following classes of polynomials:
-
(i)
over prime fields [16];
-
(ii)
over prime fields [2];
-
(iii)
Chebyshev polynomials [3];
-
(iv)
Linearized polynomials [10].
Some other functions and problems concerning the dynamics of maps over finite structures has been of interest [11, 12, 13, 17]. For a survey of the results in the literature, see [8]. This paper’s goal is to provide the functional graph associated to a class of polynomials in a general setting. For a polynomial with index , we study the dynamics of the map in order to present its functional graph . Throughout the paper, we write
where denotes the connected component of containing . The paper’s aim is to present explicitly the two functional graphs and under a natural condition. The condition imposed along the paper guarantees that all the trees attached to cyclic points of are isomorphic. Our main results are essentially presented in two theorems. Theorem 2.4 provides the component that contains the vertex and Theorem 2.7 provides the functional graph that contains all vertices that are not connected to the vertex . For a polynomial , the associated polynomial will play an important role in the proof of our main results. In particular, the dynamics of the polynomial over is established in terms of the dynamics of the map over the set of -th roots of the unity. For more details, see Section 4.
2. Terminology and main results
In this section we fix the notation used in the paper, present our main results and provide some major comments. We use the same terminology as in [12, 13, 14]. Let be a generator of the multiplicative group . Along the paper, we will make an abuse of terminology by saying that the graphs are equal if they are isomorphic. By rooted tree, we mean a directed rooted tree, where all the edges point towards the root. Also, we use the letter to denote a rooted tree. The tree with a single vertex is denoted by . We use to denote a directed graph composed by a cycle of length , where every node of the cycle is the root of a tree isomorphic to . The cycle is also denoted by . We use to denote the disjoint union of graphs, and, for a graph , denotes the graph . If , where are rooted trees, then represents the rooted tree whose children are roots of rooted trees isomorphic to . We observe that the connected components of a functional graph related to the iteration of a function over a finite set consists of cycles where each vertex of the cyclic is the root of a rooted tree.
In this paper, we study a class of polynomial maps whose functional associated graph has a regularity in the trees attached to each vertex in a cycle. In order to describe such trees, we present the well-known notion of elementary trees.
Definition 2.1.
For a non increasing sequence of positive integers , the rooted tree is defined recursively as follows:
where for all .
The graph is called elementary tree. Elementary trees play an important role in the study of functional graphs over finite fields, for example see [3, 10, 12, 13, 14]. Along this text, the elementary trees will appear in our main statements. Indeed all the trees attached to vertices in cycles in the functional graphs arising from the maps we study are elementary trees. For more details about this, see Lemmas 3.2 and 3.4.
Throughout the paper, we use to denote the -powers of and to denote the set of positive integers. is the additive group of integers modulo and denotes the group of units of . The order of an element is denoted by . For a positive integer , let
be the Möbius function.
In order to present our main results, we will follow the notation used in [14] denoting by the iterated of relative to , that is, , where
and is the least positive integer such that . This notion was introduced in [12], where it was called -series. An important property of is that . This property will be used in the proof of our results.
Any polynomial satisfying can be written uniquely as , where and is minimal. The number is called the index of the polynomial . The index of polynomials play an important role in the study of polynomials over finite fields, for more details see [18]. The index of polynomials over finite fields will be used in our main results. Along the paper, is a polynomial with index . We now present a notion that will be used to guarantee a certain regularity on the functional graph of .
Definition 2.2.
A polynomial with index is said to be -nice over if the map is an injective map from to .
It is worth mentioning that for all . This fact is used along the proofs of our results. The map and the fact that it commutes with play an important role in the study of permutation polynomials, for example see [1]. In this paper, we present the dynamics of over in terms of the dynamics of over , that is usually a smaller set. In what follows, we present an example of polynomial that satisfy the notion of being nice.
Example 2.3.
Let , where . Then . By straightforward computations, one can show that and is a primitive element of . Furthermore,
Therefore, is -nice over .
Throughout the paper, we let where is the greatest divisor of that is relatively prime with . Now we are able to present one of our main results. The following theorem provides the functional graph of -nice polynomials.
Theorem 2.4.
Assume that is -nice over and let . For each , let . Then , where
We present now an example.
Example 2.5.
Let be defined as in Example 2.3 and let notation be as in Theorem 2.4. Our goal is to apply Theorem 2.4 for the polynomial . Since and , we have that , and . From Example 2.3, it follows that and for . Furthermore, and for . Therefore, Theorem 2.4 states that , where
Figure 1 shows this functional graph.

We now focus in the components of that does not contains the element . In order to present this graph, the following definition will be used.
Definition 2.6.
For a polynomial with index , we define
We note that if and has no roots in , then is the empty set. Let be the greatest divisor of that is relatively prime with . In the following theorem, we determine the graph under the hypothesis that is -nice.
Theorem 2.7.
Assume that is -nice over and let be sets such that and . For each , let and be integers such that and . Then
where
We present now an example.
Example 2.8.
Let be defined as in Example 2.3 and let notation be as in Theorem 2.7. Our goal is to apply Theorem 2.7 for the polynomial . From Example 2.3, we can choose and , so that and . Furthermore, , , , , , and , which implies that
Therefore, Theorem 2.7 states that
Figure 2 shows this functional graph.

We observe that in the case where and , then for all . Furthermore, is -nice, which implies that Theorems 2.7 holds. In this case, Theorems 2.7 reads
where and
This expression generalizes some results obtained in [2, 12, 14].
O note that, in particular, Theorems 2.4 and 2.7 gives the number of connected components, the length of the cycles and the number of fixed points of -nice polynomials. In the case where this condition is not satisfied, the functional graph of the polynomial is more chaotic, what makes it difficult to use the same approach used here. In the following example we present a polynomial that is not nice and its associated functional graph.
Example 2.9.
Let , where . Then . One can show that . Furthermore,
Therefore, is not -nice over . In this case, the trees attached to cyclic vertices of has no regularity. Figure 3 shows this functional graph.

3. Preparation
In this section, we provide preliminary notations and results that will be important in the proof of our main results. Let and be vertices in a directed graph. We say that a vertex is -distant from a vertex if is at a distance of from . If a vertex is reachable from , then is a predecessor of and is a successor of . The following notions and results are the tools we need to prove Theorems 2.4 and 2.7.
Definition 3.1.
Let be a directed graph, be a non increasing sequence of positive integers and let for all . We say that is -regular if for each positive integer , the number of -distant predecessors of a vertex of is either or .
Lemma 3.2.
Let be a non increasing sequence of positive integers. If is a -regular rooted tree with depth , then is isomorphic to .
Proof.
For , let . We proceed by induction on . The case follows directly. Suppose that the result is true for an integer and is a -regular rooted tree with depth . Let be the rooted tree obtained from by deleting the vertices with depth . By induction hypothesis, is isomorphic to .
Let be the vertices of with depth that have at least one descendant with depth and let be the equivalent vertices in . For , let be the rooted tree obtained from containing all descendants of and let be the rooted tree obtained from containing all descendants of . Since is -regular, each is isomorphic to . Therefore, can be recovered from by replacing each by . The tree obtained from these steps is isomorphic to the rooted tree , which completes the proof of our assertion. ∎
Definition 3.3.
For a vertex of a directed graph , the graph is the subgraph of containing all predecessors of (including ).
Lemma 3.4.
Let be a non increasing sequence of positive integers such that , let be a -regular directed graph with depth , be a vertex of and a child of . Let be the graph obtained from by removing and its predecessors. If is a tree, then is isomorphic to .
Proof.
It follows similarly to the proof of Lemma 3.2. ∎
If is a polynomial with index and is a positive integer, then one can readily prove that
(1) |
This formula will be important in the proofs of the main results.
Lemma 3.5.
Let be a positive integer and . Assume that is -nice. If is a solution of the equation , then .
Proof.
We proceed by induction on . Let and let be a solution of the equation . Then . Since is -nice, it follows that . Suppose that the result follows for an integer and let be a solution of the equation . By induction hypothesis, . Therefore, , which implies that , since is -nice. ∎
Proposition 3.6.
Let . If is -nice, then is -regular.
Proof.
Let be a vertex of and be a positive integer. The number of -distant predecessors of is equal to the number of solutions of the equation
(2) |
over . By Lemma 3.5, a solution of Equation (2) must satisfy the relation . Let be a primitive element of and let be an integer such that . Then the equality implies for some . Now, Equations (1) and (2) states that
(3) |
where and . In order to complete the proof, we will prove the following statement.
Claim. The number of integers satisfying Equation (3) is equal to either or .
Proof of the claim. Let be an integer such that . We want to compute the number of integers such that , that is
(4) |
Assume that this equation has at least one solution. Then must divide . In this case, Equation (4) becomes
where . Now, since is relatively prime to , there exists exactly one solution to the above equation in the interval . Therefore, Equation (4) has solutions, which proves our claim.
By the Claim, the number of -distant predecessors of is either or , which is the -th entry of . Since and were taken arbitrarily, the proof of our assertion is complete.
∎
We recall a classic result from Number Theory that will be used in the proof of Theorem 2.7.
Theorem 3.7.
[6, Möbius inversion formula] Let . Then .
Now we are able to prove the main results of the paper.
4. Functional graph of polynomial maps
In this section, we provide the proof of our main results. We start by proving Theorem 2.4.
4.1. Proof of Theorem 2.4
Let denote the set of children of in , that consists of the solutions of the the equation
over . For each , let . Since the image is equal to , the vertex is the single vertex of the cyclic part of this component and then each is a tree. Therefore, , where
(5) |
By Proposition 3.6 and Lemma 3.2, each is isomorphic to , where is the depth of . Therefore, we only need to determine the cardinality of each set
In order to do that, we define the set
We observe that . Let be the elements in that are solutions of the equation . By Lemma 3.5, any vertex of with depth is a solution of the equation
On the other hand, since is -nice, any solution of the above equation must be a vertex with depth of for some . Therefore, we are interested in the number of solutions of the equations
(6) |
where . Taking , Equation (6) becomes
that has a solution (for some ) for distinct values . Therefore, the number of solutions of Equation (6) is equal to . Since is -regular, the number of -distant predecessors of in equals either or . Therefore,
Now, it follows from Equation (5) that
Since there exist at most elements in , the depth of sum of these tree is at most , and therefore we may assume without loss of generality that , which completes the proof of our assertion.
We are now able to prove the main result of the paper.
4.2. Proof of Theorem 2.7
We recall that each connected component of is composed by a cycle and each vertex of this cycle is a non-null element of that is the root of a tree. By Lemma 3.4 and Proposition 3.6, any of such trees is isomorphic to . Therefore, it only remains to determine what are the cycles in . Our goal now is to determine how many cycles there exist with length .
By Lemma 3.5, we have that the length of a cycle is closely related to the dynamics of over . Indeed, if for a positive integer , then , which implies that , since is -nice. In this case, if , then . Furthermore, any vertex in the same cycle of satisfies . In particular, that means that the cycles whose dynamics are related to two different sets and are not connected. Therefore, we may determine each one of this cycles separately. For a positive integer and a fixed , let
and
In order to determine how many cycles (with vertices such that ) there exist with length , we need to determine . We note that an element is a vertex in a cycle whose length divides , then . The Möbius inversion formula (Theorem 3.7) implies that
(7) |
We now compute the value . In order to do so, let . Since and , it follows that for some integer and then Equation (1) states that
Since , the previous equations becomes
Looking at the exponents in this equation and doing some algebraic manipulations, it follows that
(8) |
By using the same arguments used along the proof of Proposition 3.6, one can prove that that number of solutions of the previous equations equals
On the other hand, each solution of Equation (8) yields an element in and, therefore,
(9) |
By Equations (7) and (9), it follows that
Now it only remains to prove if is an integer for which there exist a cycle in with length , then . In order to do so, we observe that if is an element in a cycle of length , then Equation (8) implies that is the least integer such that
which implies that , where the is a divisor of coprime to . In particular, so that , which completes the proof of our theorem.
References
- [1] Amir Akbary, Dragos Ghioca and Qiang Wang “On constructing permutations of finite fields” In Finite Fields and Their Applications 17 Elsevier, 2011, pp. 51–67
- [2] Wun-Seng Chou and Igor E. Shparlinski “On the cycle structure of repeated exponentiation modulo a prime” In Journal of Number Theory 107 Elsevier, 2004, pp. 345–356
- [3] T Alden Gassert “Chebyshev action on finite fields” In Discrete Mathematics 315 Elsevier, 2014, pp. 83–94
- [4] Domingo Gómez-Pérez, Alina Ostafe and Igor E. Shparlinski “On irreducible divisors of iterated polynomials” In Revista matemática iberoamericana 30.4, 2014, pp. 1123–1134
- [5] David Rodney Heath-Brown and Giacomo Micheli “Irreducible polynomials over finite fields produced by composition of quadratics” In Revista Matemática Iberoamericana 35, 2019, pp. 847–855
- [6] Kenneth Ireland and Michael Rosen “A classical introduction to modern number theory” Springer, 1982
- [7] Don Johnson, Alfred Menezes and Scott Vanstone “The elliptic curve digital signature algorithm (ECDSA)” In International Journal of Information Security 1.1 Springer, 2001, pp. 36–63
- [8] Rodrigo Martins, Daniel Panario and Claudio Qureshi “A survey on iterations of mappings over finite fields” In Combinatorics and Finite Fields De Gruyter, 2019, pp. 135–172
- [9] José Alves Oliveira, Daniela Oliveira and Lucas Reis “On iterations of rational functions over perfect fields” In arXiv preprint arXiv:2008.02619, 2020
- [10] Daniel Panario and Lucas Reis “The functional graph of linear maps over finite fields and applications” In Designs, Codes and Cryptography 87 Springer, 2019, pp. 437–453
- [11] A Peinado, F Montoya, J Munoz and AJ Yuste “Maximal periods of in ” In International Symposium on Applied Algebra, Algebraic Algorithms, and Error-Correcting Codes, 2001, pp. 219–228 Springer
- [12] Claudio Qureshi and Daniel Panario “Rédei actions on finite fields and multiplication map in cyclic group” In SIAM Journal on Discrete Mathematics 29 SIAM, 2015, pp. 1486–1503
- [13] Claudio Qureshi and Lucas Reis “Dynamics of the a-map over residually finite Dedekind domains and applications” In Journal of Number Theory 204 Elsevier, 2019, pp. 134–154
- [14] Claudio Qureshi and Lucas Reis “On the functional graph of the power map over finite groups” In arXiv preprint arXiv:2107.00584, 2021
- [15] Lucas Reis “On the factorization of iterated polynomials” In Revista Matemática Iberoamericana 36, 2020, pp. 1957–1978
- [16] Thomas D Rogers “The graph of the square mapping on the prime fields” In Discrete Mathematics 148 Elsevier, 1996, pp. 317–324
- [17] Simone Ugolini “Functional graphs of rational maps induced by endomorphisms of ordinary elliptic curves over finite fields” In Periodica Mathematica Hungarica 77 Springer, 2018, pp. 237–260
- [18] Qiang Wang “Polynomials over finite fields: an index approach” In Combinatorics and Finite Fields De Gruyter, 2019, pp. 319–348
- [19] Michael J Wiener and Robert J Zuccherato “Faster attacks on elliptic curve cryptosystems” In International workshop on selected areas in cryptography, 1998, pp. 190–200 Springer