• Keine Ergebnisse gefunden

Computing the Cycle Structure of Finite Linear Systems

N/A
N/A
Protected

Academic year: 2022

Aktie "Computing the Cycle Structure of Finite Linear Systems"

Copied!
6
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

IFAC PapersOnLine 53-2 (2020) 4316–4321

ScienceDirect

2405-8963 Copyright © 2020 The Authors. This is an open access article under the CC BY-NC-ND license.

Peer review under responsibility of International Federation of Automatic Control.

10.1016/j.ifacol.2020.12.2487

10.1016/j.ifacol.2020.12.2487 2405-8963

Copyright © 2020 The Authors. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0)

Computing the Cycle Structure of Finite Linear Systems

Eva Zerz and Hermann Giese

Lehrstuhl D f¨ur Mathematik, RWTH Aachen University, 52062 Aachen, Germany (e-mail: eva.zerz@math.rwth-aachen.de)

Abstract:Consider a linear difference equation with constant coefficients in the ring of integers modulom. If the leading coefficient and the constant term are both units, then all trajectories are (purely) periodic. Moreover, the finite state set can be decomposed into disjoint cycles of various lengths. The following problems will be addressed: computing the cycle partition and determining the period w.r.t. a specific initial state. The latter question can often be reduced to calculating the order of an invertible matrix. If the prime factorization ofm is known, then it suffices to consider prime powers, by the Chinese remainder theorem. For primes, an efficient algorithm due to Leedham-Green may be used, which is available in group-theoretic computer algebra systems such as Magma or GAP. This approach will be extended to prime powers.

Finally, we will discuss how to relax the assumptions guaranteeing periodicity.

Keywords: Linear systems, algebraic systems theory, cycle length, periodicity, finite rings.

1. INTRODUCTION The Fibonacci equation

y(t+ 2) =y(t+ 1) +y(t),

where t is a nonnegative integer, is usually considered in characteristic zero. Choosing y(0) = 0 and y(1) = 1 as initial values, one obtains the famous sequence

y= (0,1,1,2,3,5,8,13,21,34, . . .).

In positive characteristic however, the sequence becomes (purely) periodic, that is, it returns to its initial values and thus runs into a loop.

Example: In characteristic 2, we obtain y= (0,1,1,0,1,1,0,1,1,0,1, . . .) and the length of the period is 3. In characteristic 3,

y= (0,1,1,2,0,2,2,1,0,1, . . .)

and the length of the period is 8. In characteristic 4, y= (0,1,1,2,3,1,0,1, . . .)

and the length of the period is 6.

The sequence of period lengths is known as the Pisano sequence

π= (1,3,8,6,20,24,16,12,24,60, . . .).

Its properties have been studied by several authors, see e.g.

Wall (1960), and it is popular in recreational mathematics.

However, it is also related to “serious” mathematical problems. A Wall-Sun-Sun prime is a prime p such that π(p) = π(p2). It has been checked experimentally that such a prime (if it exists) must be greater than 1014. On the other hand, we have π(n) =π(n2) forn∈ {6,12}. A proof of the nonexistence of Wall-Sun-Sun primes would yield an alternative proof of the first case of Fermat’s last theorem, see Sun and Sun (1992).

This work was supported by DFG-SFB/TRR 195.

In the present paper, we will study general monic differ- ence equations of ordern, that is,

y(t+n) +an−1y(t+n−1) +. . .+a1y(t+ 1) +a0y(t) = 0 with ai Z. The case where all solutions modulo m are (purely) periodic will be characterized by the condition gcd(a0, m) = 1. We will then turn to computing the period of the solution evolving from specific initial values y(0), . . . , y(n−1). Next, we study when this period coin- cides with the (group-theoretic) order of the companion matrixAof the polynomialsn+n1

i=0 aisi, ifAis consid- ered as an element ofZnm×n, whereZm:=Z/mZ. Note that A∈Znm×n is invertible if and only if gcd(det(A), m) = 1.

Due to the companion matrix structure, det(A)∈ {±a0}. The state setX := Znm can be decomposed into disjoint cycles and we will show how to compute this partition.

Finally, the assumption of monicity (an = 1) will be relaxed.

2. MONIC EQUATIONS

LetZdenote the ring of integers, and letNdenote the set of nonnegative integers. Letnbe a positive integer, and let a0, . . . , an1 Z be given. Consider the linear difference equation

y(t+n)+an1y(t+n−1)+. . .+a1y(t+1)+a0y(t) = 0, (1) wheret∈N. Lety0, . . . , yn−1Zbe given. Together with the initial condition

y(0) =y0, . . . , y(n−1) =yn−1 (2) the initial value problem (1), (2) has a unique solution (y(t))t∈N ZN. For each integer m > 1, one obtains an induced sequence (y(t))t∈N ZNm, where Zm = Z/mZ denotes the ring of integers modulom. In the following, we will make no notational distinction between an integer and its residue class modulom, or between a polynomial inZ[s] and its residue class inZm[s].

Computing the Cycle Structure of Finite Linear Systems

Eva Zerz and Hermann Giese

Lehrstuhl D f¨ur Mathematik, RWTH Aachen University, 52062 Aachen, Germany (e-mail: eva.zerz@math.rwth-aachen.de)

Abstract:Consider a linear difference equation with constant coefficients in the ring of integers modulom. If the leading coefficient and the constant term are both units, then all trajectories are (purely) periodic. Moreover, the finite state set can be decomposed into disjoint cycles of various lengths. The following problems will be addressed: computing the cycle partition and determining the period w.r.t. a specific initial state. The latter question can often be reduced to calculating the order of an invertible matrix. If the prime factorization ofm is known, then it suffices to consider prime powers, by the Chinese remainder theorem. For primes, an efficient algorithm due to Leedham-Green may be used, which is available in group-theoretic computer algebra systems such as Magma or GAP. This approach will be extended to prime powers.

Finally, we will discuss how to relax the assumptions guaranteeing periodicity.

Keywords: Linear systems, algebraic systems theory, cycle length, periodicity, finite rings.

1. INTRODUCTION The Fibonacci equation

y(t+ 2) =y(t+ 1) +y(t),

where t is a nonnegative integer, is usually considered in characteristic zero. Choosing y(0) = 0 and y(1) = 1 as initial values, one obtains the famous sequence

y= (0,1,1,2,3,5,8,13,21,34, . . .).

In positive characteristic however, the sequence becomes (purely) periodic, that is, it returns to its initial values and thus runs into a loop.

Example: In characteristic 2, we obtain y= (0,1,1,0,1,1,0,1,1,0,1, . . .) and the length of the period is 3. In characteristic 3,

y= (0,1,1,2,0,2,2,1,0,1, . . .)

and the length of the period is 8. In characteristic 4, y= (0,1,1,2,3,1,0,1, . . .)

and the length of the period is 6.

The sequence of period lengths is known as the Pisano sequence

π= (1,3,8,6,20,24,16,12,24,60, . . .).

Its properties have been studied by several authors, see e.g.

Wall (1960), and it is popular in recreational mathematics.

However, it is also related to “serious” mathematical problems. A Wall-Sun-Sun prime is a prime p such that π(p) = π(p2). It has been checked experimentally that such a prime (if it exists) must be greater than 1014. On the other hand, we have π(n) =π(n2) forn∈ {6,12}. A proof of the nonexistence of Wall-Sun-Sun primes would yield an alternative proof of the first case of Fermat’s last theorem, see Sun and Sun (1992).

This work was supported by DFG-SFB/TRR 195.

In the present paper, we will study general monic differ- ence equations of ordern, that is,

y(t+n) +an1y(t+n−1) +. . .+a1y(t+ 1) +a0y(t) = 0 with ai Z. The case where all solutions modulo m are (purely) periodic will be characterized by the condition gcd(a0, m) = 1. We will then turn to computing the period of the solution evolving from specific initial values y(0), . . . , y(n−1). Next, we study when this period coin- cides with the (group-theoretic) order of the companion matrixAof the polynomialsn+n−1

i=0 aisi, ifAis consid- ered as an element ofZnm×n, whereZm:=Z/mZ. Note that A∈Zn×nm is invertible if and only if gcd(det(A), m) = 1.

Due to the companion matrix structure, det(A)∈ {±a0}. The state setX := Znm can be decomposed into disjoint cycles and we will show how to compute this partition.

Finally, the assumption of monicity (an = 1) will be relaxed.

2. MONIC EQUATIONS

LetZdenote the ring of integers, and letNdenote the set of nonnegative integers. Letnbe a positive integer, and let a0, . . . , an1 Z be given. Consider the linear difference equation

y(t+n)+an1y(t+n−1)+. . .+a1y(t+1)+a0y(t) = 0, (1) wheret∈N. Lety0, . . . , yn1Zbe given. Together with the initial condition

y(0) =y0, . . . , y(n−1) =yn1 (2) the initial value problem (1), (2) has a unique solution (y(t))t∈N ZN. For each integer m > 1, one obtains an induced sequence (y(t))t∈N ZNm, where Zm = Z/mZ denotes the ring of integers modulom. In the following, we will make no notational distinction between an integer and its residue class modulom, or between a polynomial inZ[s] and its residue class inZm[s].

Computing the Cycle Structure of Finite Linear Systems

Eva Zerz and Hermann Giese

Lehrstuhl D f¨ur Mathematik, RWTH Aachen University, 52062 Aachen, Germany (e-mail: eva.zerz@math.rwth-aachen.de)

Abstract:Consider a linear difference equation with constant coefficients in the ring of integers modulom. If the leading coefficient and the constant term are both units, then all trajectories are (purely) periodic. Moreover, the finite state set can be decomposed into disjoint cycles of various lengths. The following problems will be addressed: computing the cycle partition and determining the period w.r.t. a specific initial state. The latter question can often be reduced to calculating the order of an invertible matrix. If the prime factorization ofm is known, then it suffices to consider prime powers, by the Chinese remainder theorem. For primes, an efficient algorithm due to Leedham-Green may be used, which is available in group-theoretic computer algebra systems such as Magma or GAP. This approach will be extended to prime powers.

Finally, we will discuss how to relax the assumptions guaranteeing periodicity.

Keywords: Linear systems, algebraic systems theory, cycle length, periodicity, finite rings.

1. INTRODUCTION The Fibonacci equation

y(t+ 2) =y(t+ 1) +y(t),

where t is a nonnegative integer, is usually considered in characteristic zero. Choosing y(0) = 0 and y(1) = 1 as initial values, one obtains the famous sequence

y= (0,1,1,2,3,5,8,13,21,34, . . .).

In positive characteristic however, the sequence becomes (purely) periodic, that is, it returns to its initial values and thus runs into a loop.

Example: In characteristic 2, we obtain y= (0,1,1,0,1,1,0,1,1,0,1, . . .) and the length of the period is 3. In characteristic 3,

y= (0,1,1,2,0,2,2,1,0,1, . . .)

and the length of the period is 8. In characteristic 4, y= (0,1,1,2,3,1,0,1, . . .)

and the length of the period is 6.

The sequence of period lengths is known as the Pisano sequence

π= (1,3,8,6,20,24,16,12,24,60, . . .).

Its properties have been studied by several authors, see e.g.

Wall (1960), and it is popular in recreational mathematics.

However, it is also related to “serious” mathematical problems. A Wall-Sun-Sun prime is a prime p such that π(p) = π(p2). It has been checked experimentally that such a prime (if it exists) must be greater than 1014. On the other hand, we have π(n) =π(n2) forn∈ {6,12}. A proof of the nonexistence of Wall-Sun-Sun primes would yield an alternative proof of the first case of Fermat’s last theorem, see Sun and Sun (1992).

This work was supported by DFG-SFB/TRR 195.

In the present paper, we will study general monic differ- ence equations of ordern, that is,

y(t+n) +an−1y(t+n−1) +. . .+a1y(t+ 1) +a0y(t) = 0 with ai Z. The case where all solutions modulo m are (purely) periodic will be characterized by the condition gcd(a0, m) = 1. We will then turn to computing the period of the solution evolving from specific initial values y(0), . . . , y(n−1). Next, we study when this period coin- cides with the (group-theoretic) order of the companion matrixAof the polynomialsn+n1

i=0 aisi, ifAis consid- ered as an element ofZnm×n, whereZm:=Z/mZ. Note that A∈Znm×n is invertible if and only if gcd(det(A), m) = 1.

Due to the companion matrix structure, det(A)∈ {±a0}. The state setX := Znm can be decomposed into disjoint cycles and we will show how to compute this partition.

Finally, the assumption of monicity (an = 1) will be relaxed.

2. MONIC EQUATIONS

LetZdenote the ring of integers, and letNdenote the set of nonnegative integers. Letnbe a positive integer, and let a0, . . . , an1 Z be given. Consider the linear difference equation

y(t+n)+an1y(t+n−1)+. . .+a1y(t+1)+a0y(t) = 0, (1) wheret∈N. Lety0, . . . , yn−1Zbe given. Together with the initial condition

y(0) =y0, . . . , y(n−1) =yn−1 (2) the initial value problem (1), (2) has a unique solution (y(t))t∈N ZN. For each integer m > 1, one obtains an induced sequence (y(t))t∈N ZNm, where Zm = Z/mZ denotes the ring of integers modulom. In the following, we will make no notational distinction between an integer and its residue class modulom, or between a polynomial inZ[s] and its residue class inZm[s].

Computing the Cycle Structure of Finite Linear Systems

Eva Zerz and Hermann Giese

Lehrstuhl D f¨ur Mathematik, RWTH Aachen University, 52062 Aachen, Germany (e-mail: eva.zerz@math.rwth-aachen.de)

Abstract:Consider a linear difference equation with constant coefficients in the ring of integers modulom. If the leading coefficient and the constant term are both units, then all trajectories are (purely) periodic. Moreover, the finite state set can be decomposed into disjoint cycles of various lengths. The following problems will be addressed: computing the cycle partition and determining the period w.r.t. a specific initial state. The latter question can often be reduced to calculating the order of an invertible matrix. If the prime factorization ofm is known, then it suffices to consider prime powers, by the Chinese remainder theorem. For primes, an efficient algorithm due to Leedham-Green may be used, which is available in group-theoretic computer algebra systems such as Magma or GAP. This approach will be extended to prime powers.

Finally, we will discuss how to relax the assumptions guaranteeing periodicity.

Keywords: Linear systems, algebraic systems theory, cycle length, periodicity, finite rings.

1. INTRODUCTION The Fibonacci equation

y(t+ 2) =y(t+ 1) +y(t),

where t is a nonnegative integer, is usually considered in characteristic zero. Choosing y(0) = 0 and y(1) = 1 as initial values, one obtains the famous sequence

y= (0,1,1,2,3,5,8,13,21,34, . . .).

In positive characteristic however, the sequence becomes (purely) periodic, that is, it returns to its initial values and thus runs into a loop.

Example: In characteristic 2, we obtain y= (0,1,1,0,1,1,0,1,1,0,1, . . .) and the length of the period is 3. In characteristic 3,

y= (0,1,1,2,0,2,2,1,0,1, . . .)

and the length of the period is 8. In characteristic 4, y= (0,1,1,2,3,1,0,1, . . .)

and the length of the period is 6.

The sequence of period lengths is known as the Pisano sequence

π= (1,3,8,6,20,24,16,12,24,60, . . .).

Its properties have been studied by several authors, see e.g.

Wall (1960), and it is popular in recreational mathematics.

However, it is also related to “serious” mathematical problems. A Wall-Sun-Sun prime is a prime p such that π(p) = π(p2). It has been checked experimentally that such a prime (if it exists) must be greater than 1014. On the other hand, we have π(n) =π(n2) forn∈ {6,12}. A proof of the nonexistence of Wall-Sun-Sun primes would yield an alternative proof of the first case of Fermat’s last theorem, see Sun and Sun (1992).

This work was supported by DFG-SFB/TRR 195.

In the present paper, we will study general monic differ- ence equations of ordern, that is,

y(t+n) +an1y(t+n−1) +. . .+a1y(t+ 1) +a0y(t) = 0 with ai Z. The case where all solutions modulo m are (purely) periodic will be characterized by the condition gcd(a0, m) = 1. We will then turn to computing the period of the solution evolving from specific initial values y(0), . . . , y(n−1). Next, we study when this period coin- cides with the (group-theoretic) order of the companion matrixAof the polynomialsn+n−1

i=0 aisi, ifAis consid- ered as an element ofZnm×n, whereZm:=Z/mZ. Note that A∈Zn×nm is invertible if and only if gcd(det(A), m) = 1.

Due to the companion matrix structure, det(A)∈ {±a0}. The state setX := Znm can be decomposed into disjoint cycles and we will show how to compute this partition.

Finally, the assumption of monicity (an = 1) will be relaxed.

2. MONIC EQUATIONS

LetZdenote the ring of integers, and letNdenote the set of nonnegative integers. Letnbe a positive integer, and let a0, . . . , an1 Z be given. Consider the linear difference equation

y(t+n)+an1y(t+n−1)+. . .+a1y(t+1)+a0y(t) = 0, (1) wheret∈N. Lety0, . . . , yn1Zbe given. Together with the initial condition

y(0) =y0, . . . , y(n−1) =yn1 (2) the initial value problem (1), (2) has a unique solution (y(t))t∈N ZN. For each integer m > 1, one obtains an induced sequence (y(t))t∈N ZNm, where Zm = Z/mZ denotes the ring of integers modulom. In the following, we will make no notational distinction between an integer and its residue class modulom, or between a polynomial inZ[s] and its residue class inZm[s].

Computing the Cycle Structure of Finite Linear Systems

Eva Zerz and Hermann Giese

Lehrstuhl D f¨ur Mathematik, RWTH Aachen University, 52062 Aachen, Germany (e-mail: eva.zerz@math.rwth-aachen.de)

Abstract:Consider a linear difference equation with constant coefficients in the ring of integers modulom. If the leading coefficient and the constant term are both units, then all trajectories are (purely) periodic. Moreover, the finite state set can be decomposed into disjoint cycles of various lengths. The following problems will be addressed: computing the cycle partition and determining the period w.r.t. a specific initial state. The latter question can often be reduced to calculating the order of an invertible matrix. If the prime factorization ofm is known, then it suffices to consider prime powers, by the Chinese remainder theorem. For primes, an efficient algorithm due to Leedham-Green may be used, which is available in group-theoretic computer algebra systems such as Magma or GAP. This approach will be extended to prime powers.

Finally, we will discuss how to relax the assumptions guaranteeing periodicity.

Keywords: Linear systems, algebraic systems theory, cycle length, periodicity, finite rings.

1. INTRODUCTION The Fibonacci equation

y(t+ 2) =y(t+ 1) +y(t),

where t is a nonnegative integer, is usually considered in characteristic zero. Choosing y(0) = 0 and y(1) = 1 as initial values, one obtains the famous sequence

y= (0,1,1,2,3,5,8,13,21,34, . . .).

In positive characteristic however, the sequence becomes (purely) periodic, that is, it returns to its initial values and thus runs into a loop.

Example: In characteristic 2, we obtain y= (0,1,1,0,1,1,0,1,1,0,1, . . .) and the length of the period is 3. In characteristic 3,

y= (0,1,1,2,0,2,2,1,0,1, . . .)

and the length of the period is 8. In characteristic 4, y= (0,1,1,2,3,1,0,1, . . .)

and the length of the period is 6.

The sequence of period lengths is known as the Pisano sequence

π= (1,3,8,6,20,24,16,12,24,60, . . .).

Its properties have been studied by several authors, see e.g.

Wall (1960), and it is popular in recreational mathematics.

However, it is also related to “serious” mathematical problems. A Wall-Sun-Sun prime is a prime p such that π(p) = π(p2). It has been checked experimentally that such a prime (if it exists) must be greater than 1014. On the other hand, we have π(n) =π(n2) forn∈ {6,12}. A proof of the nonexistence of Wall-Sun-Sun primes would yield an alternative proof of the first case of Fermat’s last theorem, see Sun and Sun (1992).

This work was supported by DFG-SFB/TRR 195.

In the present paper, we will study general monic differ- ence equations of ordern, that is,

y(t+n) +an1y(t+n−1) +. . .+a1y(t+ 1) +a0y(t) = 0 with ai Z. The case where all solutions modulo m are (purely) periodic will be characterized by the condition gcd(a0, m) = 1. We will then turn to computing the period of the solution evolving from specific initial values y(0), . . . , y(n−1). Next, we study when this period coin- cides with the (group-theoretic) order of the companion matrixAof the polynomialsn+n1

i=0 aisi, ifAis consid- ered as an element ofZn×nm , whereZm:=Z/mZ. Note that A∈Znm×n is invertible if and only if gcd(det(A), m) = 1.

Due to the companion matrix structure, det(A)∈ {±a0}. The state setX := Znm can be decomposed into disjoint cycles and we will show how to compute this partition.

Finally, the assumption of monicity (an = 1) will be relaxed.

2. MONIC EQUATIONS

LetZdenote the ring of integers, and letNdenote the set of nonnegative integers. Letnbe a positive integer, and let a0, . . . , an−1 Z be given. Consider the linear difference equation

y(t+n)+an1y(t+n−1)+. . .+a1y(t+1)+a0y(t) = 0, (1) wheret∈N. Lety0, . . . , yn1Zbe given. Together with the initial condition

y(0) =y0, . . . , y(n−1) =yn1 (2) the initial value problem (1), (2) has a unique solution (y(t))t∈N ZN. For each integer m > 1, one obtains an induced sequence (y(t))t∈N ZNm, where Zm = Z/mZ denotes the ring of integers modulom. In the following, we will make no notational distinction between an integer and its residue class modulom, or between a polynomial inZ[s] and its residue class inZm[s].

Computing the Cycle Structure of Finite Linear Systems

Eva Zerz and Hermann Giese

Lehrstuhl D f¨ur Mathematik, RWTH Aachen University, 52062 Aachen, Germany (e-mail: eva.zerz@math.rwth-aachen.de)

Abstract:Consider a linear difference equation with constant coefficients in the ring of integers modulom. If the leading coefficient and the constant term are both units, then all trajectories are (purely) periodic. Moreover, the finite state set can be decomposed into disjoint cycles of various lengths. The following problems will be addressed: computing the cycle partition and determining the period w.r.t. a specific initial state. The latter question can often be reduced to calculating the order of an invertible matrix. If the prime factorization ofm is known, then it suffices to consider prime powers, by the Chinese remainder theorem. For primes, an efficient algorithm due to Leedham-Green may be used, which is available in group-theoretic computer algebra systems such as Magma or GAP. This approach will be extended to prime powers.

Finally, we will discuss how to relax the assumptions guaranteeing periodicity.

Keywords: Linear systems, algebraic systems theory, cycle length, periodicity, finite rings.

1. INTRODUCTION The Fibonacci equation

y(t+ 2) =y(t+ 1) +y(t),

where t is a nonnegative integer, is usually considered in characteristic zero. Choosing y(0) = 0 and y(1) = 1 as initial values, one obtains the famous sequence

y= (0,1,1,2,3,5,8,13,21,34, . . .).

In positive characteristic however, the sequence becomes (purely) periodic, that is, it returns to its initial values and thus runs into a loop.

Example: In characteristic 2, we obtain y= (0,1,1,0,1,1,0,1,1,0,1, . . .) and the length of the period is 3. In characteristic 3,

y= (0,1,1,2,0,2,2,1,0,1, . . .)

and the length of the period is 8. In characteristic 4, y= (0,1,1,2,3,1,0,1, . . .)

and the length of the period is 6.

The sequence of period lengths is known as the Pisano sequence

π= (1,3,8,6,20,24,16,12,24,60, . . .).

Its properties have been studied by several authors, see e.g.

Wall (1960), and it is popular in recreational mathematics.

However, it is also related to “serious” mathematical problems. A Wall-Sun-Sun prime is a prime p such that π(p) = π(p2). It has been checked experimentally that such a prime (if it exists) must be greater than 1014. On the other hand, we have π(n) =π(n2) forn∈ {6,12}. A proof of the nonexistence of Wall-Sun-Sun primes would yield an alternative proof of the first case of Fermat’s last theorem, see Sun and Sun (1992).

This work was supported by DFG-SFB/TRR 195.

In the present paper, we will study general monic differ- ence equations of ordern, that is,

y(t+n) +an−1y(t+n−1) +. . .+a1y(t+ 1) +a0y(t) = 0 with ai Z. The case where all solutions modulo m are (purely) periodic will be characterized by the condition gcd(a0, m) = 1. We will then turn to computing the period of the solution evolving from specific initial values y(0), . . . , y(n−1). Next, we study when this period coin- cides with the (group-theoretic) order of the companion matrixAof the polynomialsn+n1

i=0 aisi, ifAis consid- ered as an element ofZn×nm , whereZm:=Z/mZ. Note that A∈Znm×n is invertible if and only if gcd(det(A), m) = 1.

Due to the companion matrix structure, det(A)∈ {±a0}. The state setX := Znm can be decomposed into disjoint cycles and we will show how to compute this partition.

Finally, the assumption of monicity (an = 1) will be relaxed.

2. MONIC EQUATIONS

LetZdenote the ring of integers, and letNdenote the set of nonnegative integers. Letnbe a positive integer, and let a0, . . . , an1 Z be given. Consider the linear difference equation

y(t+n)+an1y(t+n−1)+. . .+a1y(t+1)+a0y(t) = 0, (1) wheret∈N. Lety0, . . . , yn−1Zbe given. Together with the initial condition

y(0) =y0, . . . , y(n−1) =yn−1 (2) the initial value problem (1), (2) has a unique solution (y(t))t∈N ZN. For each integer m > 1, one obtains an induced sequence (y(t))t∈N ZNm, where Zm = Z/mZ denotes the ring of integers modulom. In the following, we will make no notational distinction between an integer and its residue class modulom, or between a polynomial inZ[s] and its residue class inZm[s].

Computing the Cycle Structure of Finite Linear Systems

Eva Zerz and Hermann Giese

Lehrstuhl D f¨ur Mathematik, RWTH Aachen University, 52062 Aachen, Germany (e-mail: eva.zerz@math.rwth-aachen.de)

Abstract:Consider a linear difference equation with constant coefficients in the ring of integers modulom. If the leading coefficient and the constant term are both units, then all trajectories are (purely) periodic. Moreover, the finite state set can be decomposed into disjoint cycles of various lengths. The following problems will be addressed: computing the cycle partition and determining the period w.r.t. a specific initial state. The latter question can often be reduced to calculating the order of an invertible matrix. If the prime factorization ofm is known, then it suffices to consider prime powers, by the Chinese remainder theorem. For primes, an efficient algorithm due to Leedham-Green may be used, which is available in group-theoretic computer algebra systems such as Magma or GAP. This approach will be extended to prime powers.

Finally, we will discuss how to relax the assumptions guaranteeing periodicity.

Keywords: Linear systems, algebraic systems theory, cycle length, periodicity, finite rings.

1. INTRODUCTION The Fibonacci equation

y(t+ 2) =y(t+ 1) +y(t),

where t is a nonnegative integer, is usually considered in characteristic zero. Choosing y(0) = 0 and y(1) = 1 as initial values, one obtains the famous sequence

y= (0,1,1,2,3,5,8,13,21,34, . . .).

In positive characteristic however, the sequence becomes (purely) periodic, that is, it returns to its initial values and thus runs into a loop.

Example: In characteristic 2, we obtain y= (0,1,1,0,1,1,0,1,1,0,1, . . .) and the length of the period is 3. In characteristic 3,

y= (0,1,1,2,0,2,2,1,0,1, . . .)

and the length of the period is 8. In characteristic 4, y= (0,1,1,2,3,1,0,1, . . .)

and the length of the period is 6.

The sequence of period lengths is known as the Pisano sequence

π= (1,3,8,6,20,24,16,12,24,60, . . .).

Its properties have been studied by several authors, see e.g.

Wall (1960), and it is popular in recreational mathematics.

However, it is also related to “serious” mathematical problems. A Wall-Sun-Sun prime is a prime p such that π(p) = π(p2). It has been checked experimentally that such a prime (if it exists) must be greater than 1014. On the other hand, we have π(n) =π(n2) forn∈ {6,12}. A proof of the nonexistence of Wall-Sun-Sun primes would yield an alternative proof of the first case of Fermat’s last theorem, see Sun and Sun (1992).

This work was supported by DFG-SFB/TRR 195.

In the present paper, we will study general monic differ- ence equations of ordern, that is,

y(t+n) +an1y(t+n−1) +. . .+a1y(t+ 1) +a0y(t) = 0 with ai Z. The case where all solutions modulo m are (purely) periodic will be characterized by the condition gcd(a0, m) = 1. We will then turn to computing the period of the solution evolving from specific initial values y(0), . . . , y(n−1). Next, we study when this period coin- cides with the (group-theoretic) order of the companion matrixAof the polynomialsn+n1

i=0 aisi, ifAis consid- ered as an element ofZnm×n, whereZm:=Z/mZ. Note that A∈Znm×n is invertible if and only if gcd(det(A), m) = 1.

Due to the companion matrix structure, det(A)∈ {±a0}. The state setX := Znm can be decomposed into disjoint cycles and we will show how to compute this partition.

Finally, the assumption of monicity (an = 1) will be relaxed.

2. MONIC EQUATIONS

LetZdenote the ring of integers, and letNdenote the set of nonnegative integers. Letnbe a positive integer, and let a0, . . . , an−1 Z be given. Consider the linear difference equation

y(t+n)+an−1y(t+n−1)+. . .+a1y(t+1)+a0y(t) = 0, (1) wheret∈N. Lety0, . . . , yn1Zbe given. Together with the initial condition

y(0) =y0, . . . , y(n−1) =yn1 (2) the initial value problem (1), (2) has a unique solution (y(t))t∈N ZN. For each integer m > 1, one obtains an induced sequence (y(t))t∈N ZNm, where Zm = Z/mZ denotes the ring of integers modulom. In the following, we will make no notational distinction between an integer and its residue class modulom, or between a polynomial inZ[s] and its residue class inZm[s].

Computing the Cycle Structure of Finite Linear Systems

Eva Zerz and Hermann Giese

Lehrstuhl D f¨ur Mathematik, RWTH Aachen University, 52062 Aachen, Germany (e-mail: eva.zerz@math.rwth-aachen.de)

Abstract:Consider a linear difference equation with constant coefficients in the ring of integers modulom. If the leading coefficient and the constant term are both units, then all trajectories are (purely) periodic. Moreover, the finite state set can be decomposed into disjoint cycles of various lengths. The following problems will be addressed: computing the cycle partition and determining the period w.r.t. a specific initial state. The latter question can often be reduced to calculating the order of an invertible matrix. If the prime factorization ofm is known, then it suffices to consider prime powers, by the Chinese remainder theorem. For primes, an efficient algorithm due to Leedham-Green may be used, which is available in group-theoretic computer algebra systems such as Magma or GAP. This approach will be extended to prime powers.

Finally, we will discuss how to relax the assumptions guaranteeing periodicity.

Keywords: Linear systems, algebraic systems theory, cycle length, periodicity, finite rings.

1. INTRODUCTION The Fibonacci equation

y(t+ 2) =y(t+ 1) +y(t),

where t is a nonnegative integer, is usually considered in characteristic zero. Choosing y(0) = 0 and y(1) = 1 as initial values, one obtains the famous sequence

y= (0,1,1,2,3,5,8,13,21,34, . . .).

In positive characteristic however, the sequence becomes (purely) periodic, that is, it returns to its initial values and thus runs into a loop.

Example: In characteristic 2, we obtain y= (0,1,1,0,1,1,0,1,1,0,1, . . .) and the length of the period is 3. In characteristic 3,

y= (0,1,1,2,0,2,2,1,0,1, . . .)

and the length of the period is 8. In characteristic 4, y= (0,1,1,2,3,1,0,1, . . .)

and the length of the period is 6.

The sequence of period lengths is known as the Pisano sequence

π= (1,3,8,6,20,24,16,12,24,60, . . .).

Its properties have been studied by several authors, see e.g.

Wall (1960), and it is popular in recreational mathematics.

However, it is also related to “serious” mathematical problems. A Wall-Sun-Sun prime is a prime p such that π(p) = π(p2). It has been checked experimentally that such a prime (if it exists) must be greater than 1014. On the other hand, we have π(n) =π(n2) forn∈ {6,12}. A proof of the nonexistence of Wall-Sun-Sun primes would yield an alternative proof of the first case of Fermat’s last theorem, see Sun and Sun (1992).

This work was supported by DFG-SFB/TRR 195.

In the present paper, we will study general monic differ- ence equations of ordern, that is,

y(t+n) +an−1y(t+n−1) +. . .+a1y(t+ 1) +a0y(t) = 0 with ai Z. The case where all solutions modulo m are (purely) periodic will be characterized by the condition gcd(a0, m) = 1. We will then turn to computing the period of the solution evolving from specific initial values y(0), . . . , y(n−1). Next, we study when this period coin- cides with the (group-theoretic) order of the companion matrixAof the polynomialsn+n1

i=0 aisi, ifAis consid- ered as an element ofZn×nm , whereZm:=Z/mZ. Note that A∈Znm×n is invertible if and only if gcd(det(A), m) = 1.

Due to the companion matrix structure, det(A)∈ {±a0}. The state setX := Znm can be decomposed into disjoint cycles and we will show how to compute this partition.

Finally, the assumption of monicity (an = 1) will be relaxed.

2. MONIC EQUATIONS

LetZdenote the ring of integers, and letNdenote the set of nonnegative integers. Letnbe a positive integer, and let a0, . . . , an1 Z be given. Consider the linear difference equation

y(t+n)+an1y(t+n−1)+. . .+a1y(t+1)+a0y(t) = 0, (1) wheret∈N. Lety0, . . . , yn1Zbe given. Together with the initial condition

y(0) =y0, . . . , y(n−1) =yn1 (2) the initial value problem (1), (2) has a unique solution (y(t))t∈N ZN. For each integer m > 1, one obtains an induced sequence (y(t))t∈N ZNm, where Zm = Z/mZ denotes the ring of integers modulom. In the following, we will make no notational distinction between an integer and its residue class modulom, or between a polynomial inZ[s] and its residue class inZm[s].

Computing the Cycle Structure of Finite Linear Systems

Eva Zerz and Hermann Giese

Lehrstuhl D f¨ur Mathematik, RWTH Aachen University, 52062 Aachen, Germany (e-mail: eva.zerz@math.rwth-aachen.de)

Abstract:Consider a linear difference equation with constant coefficients in the ring of integers modulom. If the leading coefficient and the constant term are both units, then all trajectories are (purely) periodic. Moreover, the finite state set can be decomposed into disjoint cycles of various lengths. The following problems will be addressed: computing the cycle partition and determining the period w.r.t. a specific initial state. The latter question can often be reduced to calculating the order of an invertible matrix. If the prime factorization ofm is known, then it suffices to consider prime powers, by the Chinese remainder theorem. For primes, an efficient algorithm due to Leedham-Green may be used, which is available in group-theoretic computer algebra systems such as Magma or GAP. This approach will be extended to prime powers.

Finally, we will discuss how to relax the assumptions guaranteeing periodicity.

Keywords: Linear systems, algebraic systems theory, cycle length, periodicity, finite rings.

1. INTRODUCTION The Fibonacci equation

y(t+ 2) =y(t+ 1) +y(t),

where t is a nonnegative integer, is usually considered in characteristic zero. Choosing y(0) = 0 and y(1) = 1 as initial values, one obtains the famous sequence

y= (0,1,1,2,3,5,8,13,21,34, . . .).

In positive characteristic however, the sequence becomes (purely) periodic, that is, it returns to its initial values and thus runs into a loop.

Example: In characteristic 2, we obtain y= (0,1,1,0,1,1,0,1,1,0,1, . . .) and the length of the period is 3. In characteristic 3,

y= (0,1,1,2,0,2,2,1,0,1, . . .)

and the length of the period is 8. In characteristic 4, y= (0,1,1,2,3,1,0,1, . . .)

and the length of the period is 6.

The sequence of period lengths is known as the Pisano sequence

π= (1,3,8,6,20,24,16,12,24,60, . . .).

Its properties have been studied by several authors, see e.g.

Wall (1960), and it is popular in recreational mathematics.

However, it is also related to “serious” mathematical problems. A Wall-Sun-Sun prime is a prime p such that π(p) = π(p2). It has been checked experimentally that such a prime (if it exists) must be greater than 1014. On the other hand, we have π(n) =π(n2) forn∈ {6,12}. A proof of the nonexistence of Wall-Sun-Sun primes would yield an alternative proof of the first case of Fermat’s last theorem, see Sun and Sun (1992).

This work was supported by DFG-SFB/TRR 195.

In the present paper, we will study general monic differ- ence equations of ordern, that is,

y(t+n) +an1y(t+n−1) +. . .+a1y(t+ 1) +a0y(t) = 0 with ai Z. The case where all solutions modulo m are (purely) periodic will be characterized by the condition gcd(a0, m) = 1. We will then turn to computing the period of the solution evolving from specific initial values y(0), . . . , y(n−1). Next, we study when this period coin- cides with the (group-theoretic) order of the companion matrixAof the polynomialsn+n1

i=0 aisi, ifAis consid- ered as an element ofZnm×n, whereZm:=Z/mZ. Note that A∈Znm×n is invertible if and only if gcd(det(A), m) = 1.

Due to the companion matrix structure, det(A)∈ {±a0}. The state setX := Znm can be decomposed into disjoint cycles and we will show how to compute this partition.

Finally, the assumption of monicity (an = 1) will be relaxed.

2. MONIC EQUATIONS

LetZdenote the ring of integers, and letNdenote the set of nonnegative integers. Letnbe a positive integer, and let a0, . . . , an1 Z be given. Consider the linear difference equation

y(t+n)+an1y(t+n−1)+. . .+a1y(t+1)+a0y(t) = 0, (1) wheret∈N. Lety0, . . . , yn−1Zbe given. Together with the initial condition

y(0) =y0, . . . , y(n−1) =yn−1 (2) the initial value problem (1), (2) has a unique solution (y(t))t∈N ZN. For each integer m > 1, one obtains an induced sequence (y(t))t∈N ZNm, where Zm = Z/mZ denotes the ring of integers modulom. In the following, we will make no notational distinction between an integer and its residue class modulom, or between a polynomial inZ[s] and its residue class inZm[s].

Theorem 1. For each m > 0, there exist integers k 0 andp >0 such that

y(t+p) =y(t) for allt≥k. If gcd(a0, m) = 1, thenkcan be taken to be zero.

Proof: Define

x(t) := [y(t), . . . , y(t+n−1)]T. Thenx(t+ 1) =Ax(t), where

A=



0 1

... . ..

0 1

−a0 −a1 . . . −an1



is the companion matrix of the polynomial χA = sn + n1

i=0 aisi. Since the ringZmis finite, the sequencey, and hence alsox, can only take finitely many values. Thus there exists k 0 andp > 0 such that x(k+p) = x(k). This implies thatx(t+p) =x(t) for all t≥k.

If gcd(a0, m) = 1, then a0 is a unit in Zm. This implies that the polynomial indeterminatesis a unit in the finite ring R := Zm[s]/χA. Hence it has finite order, that is, there existsp >0 such thatsp= 1 holds inR. This means that the polynomial sp1 is a multiple of χA in Zm[s]

and thusy(t+p) =y(t) holds for allt∈N. Givenmwith gcd(a0, m) = 1, we will address the compu- tation of the smallest numberp >0 such that

(1) x(p) =x(0). Since this implies thatx(t+p) =x(t) for allt N, this number will be called the period of x with respect to the initial valuex0:= [y0, . . . , yn1]T. It is the smallest p >0 with Apx0 =x0 and will be denoted byπm(x0).

(2) Ap = I. This p is the order of the invertible matrix A∈Znm×n, denoted by ordm(A).

We observe that πm(x0) must be a divisor of ordm(A).

Moreover,

ordm(A) = lcmm(x0)| x0Znm}.

By the Chinese remainder theorem, it suffices to consider the case wheremis a prime power.

Example: Consider

y(t+3) =y(t+2)+y(t+1)+y(t), y(0) =y(1) =y(2) = 1.

Modulo 2, we obtain the constant sequence 1, and henceπ2([1,1,1]T) = 1, but ord2(A) = 4. Indeed, we have

xT0 π2(x0) [0,0,0] 1 [0,0,1] 4 [0,1,0] 2 [0,1,1] 4 [1,0,0] 4 [1,0,1] 2 [1,1,0] 4 [1,1,1] 1.

Adopting the notation used by Deng (2015), the cycle structure isX = Z32 = 2C1∪C2∪C4. This means that there are two fixed points (i.e., cycles of length one), one cycle of length two, and one cycle of length four, corresponding to a partition of the state set into cycles according to 8=1+1+2+4.

Modulo 3, we obtain a sequence of period 13, that is, π3([1,1,1]T) = 13, and we also have ord3(A) = 13. Indeed, all x0= 0 yieldπ3(x0) = 13.

Modulo 4, we obtain a sequence of period 4, that is, π4([1,1,1]T) = 4, but ord4(A) = 8.

Theorem 2. Given x0 = [y0, . . . , yn1]T Zn, compute yn, . . . , y2n2 Zaccording to (1) and define the Hankel matrix

H =



y0 y1 . . . yn1

y1 yn

... . .. ... yn1 yn . . . y2n2



Zn×n.

If gcd(det(H), m) = 1, then πm(x0) = ordm(A). Since x0 =en = [0, . . . ,0,1]T yields a matrixH with det(H) 1}, we conclude that there always exists x0 with πm(x0) = ordm(A).

Proof: Suppose thatApx0 =x0. Let Hi denote the i-th column ofH. Noting thatx0=H−1andAHi =H(i+1), we may conclude that ApH = H. By assumption, H is invertible as a matrix overZm, and henceAp = I holds

overZm.

The prime divisors of det(H) are called bad primes of the initial value problem (1),(2).

Example: For y(t+ 3) = y(t+ 2) +y(t+ 1) +y(t) and x0 = [1,1,1]T, the only bad prime is 2. For odd m, we haveπm(x0) = ordm(A).

3. COMPUTING THE ORDER

We will now discuss how to compute ordm(A) for a matrix A∈Zn×nthat is invertible when considered as an element of Znm×n. Note that we do not restrict to companion matrices. If the prime factorization of m is known, the problem can be reduced to the case where m is prime power, by the Chinese remainder theorem. For primesp, an efficient algorithm by Celler and Leedham-Green (1997) can be used to compute ordp(A).

Theorem 3. LetA∈Zn×n and a primepwithpdet(A) be given. ThenAis invertible over Zpk for allk≥1. We have

ordpk(A)|ordp(A)pk1.

Proof: SinceAr=I implies that the order ofAdivides r, it suffices to show that

Aordp(A)pk1≡I (modpk). SetB :=Aordp(A). Then we have

B ≡I (mod p). We need to prove that

Bpk−1≡I (modpk)

for all k 1. This will be done by induction on k. The statement is clearly true for k = 1. Let’s assume that it holds fork. This means that

Bpk1 =I+pkC

for some matrixC∈Zn×n. By the binomial theorem,

(2)

Copyright © 2020 The Authors. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0)

Theorem 1. For each m > 0, there exist integers k 0 andp >0 such that

y(t+p) =y(t) for allt≥k.

If gcd(a0, m) = 1, thenkcan be taken to be zero.

Proof: Define

x(t) := [y(t), . . . , y(t+n−1)]T. Thenx(t+ 1) =Ax(t), where

A=



0 1

... . ..

0 1

−a0 −a1 . . . −an1



is the companion matrix of the polynomial χA = sn + n1

i=0 aisi. Since the ringZmis finite, the sequencey, and hence alsox, can only take finitely many values. Thus there exists k 0 andp > 0 such that x(k+p) = x(k). This implies thatx(t+p) =x(t) for all t≥k.

If gcd(a0, m) = 1, then a0 is a unit in Zm. This implies that the polynomial indeterminatesis a unit in the finite ring R := Zm[s]/χA. Hence it has finite order, that is, there existsp >0 such thatsp= 1 holds inR. This means that the polynomial sp 1 is a multiple of χA in Zm[s]

and thusy(t+p) =y(t) holds for allt∈N. Givenmwith gcd(a0, m) = 1, we will address the compu- tation of the smallest numberp >0 such that

(1) x(p) =x(0). Since this implies thatx(t+p) =x(t) for allt N, this number will be called the period of x with respect to the initial valuex0:= [y0, . . . , yn1]T. It is the smallest p >0 with Apx0 =x0 and will be denoted byπm(x0).

(2) Ap = I. This p is the order of the invertible matrix A∈Znm×n, denoted by ordm(A).

We observe that πm(x0) must be a divisor of ordm(A).

Moreover,

ordm(A) = lcmm(x0)|x0Znm}.

By the Chinese remainder theorem, it suffices to consider the case wheremis a prime power.

Example: Consider

y(t+3) =y(t+2)+y(t+1)+y(t), y(0) =y(1) =y(2) = 1.

Modulo 2, we obtain the constant sequence 1, and henceπ2([1,1,1]T) = 1, but ord2(A) = 4. Indeed, we have

xT0 π2(x0) [0,0,0] 1 [0,0,1] 4 [0,1,0] 2 [0,1,1] 4 [1,0,0] 4 [1,0,1] 2 [1,1,0] 4 [1,1,1] 1.

Adopting the notation used by Deng (2015), the cycle structure is X = Z32 = 2C1∪C2∪C4. This means that there are two fixed points (i.e., cycles of length one), one cycle of length two, and one cycle of length four, corresponding to a partition of the state set into cycles according to 8=1+1+2+4.

Modulo 3, we obtain a sequence of period 13, that is, π3([1,1,1]T) = 13, and we also have ord3(A) = 13.

Indeed, all x0= 0 yieldπ3(x0) = 13.

Modulo 4, we obtain a sequence of period 4, that is, π4([1,1,1]T) = 4, but ord4(A) = 8.

Theorem 2. Given x0 = [y0, . . . , yn1]T Zn, compute yn, . . . , y2n2 Zaccording to (1) and define the Hankel matrix

H =



y0 y1 . . . yn1

y1 yn

... . .. ... yn1 yn . . . y2n2



Zn×n.

If gcd(det(H), m) = 1, then πm(x0) = ordm(A). Since x0 =en = [0, . . . ,0,1]T yields a matrixH with det(H) 1}, we conclude that there always exists x0 with πm(x0) = ordm(A).

Proof: Suppose thatApx0 =x0. Let Hi denote the i-th column ofH. Noting thatx0=H−1andAHi =H(i+1), we may conclude that ApH = H. By assumption, H is invertible as a matrix overZm, and hence Ap =I holds

overZm.

The prime divisors of det(H) are called bad primes of the initial value problem (1),(2).

Example: For y(t+ 3) = y(t+ 2) +y(t+ 1) +y(t) and x0 = [1,1,1]T, the only bad prime is 2. For odd m, we haveπm(x0) = ordm(A).

3. COMPUTING THE ORDER

We will now discuss how to compute ordm(A) for a matrix A∈Zn×nthat is invertible when considered as an element of Znm×n. Note that we do not restrict to companion matrices. If the prime factorization of m is known, the problem can be reduced to the case where m is prime power, by the Chinese remainder theorem. For primesp, an efficient algorithm by Celler and Leedham-Green (1997) can be used to compute ordp(A).

Theorem 3. Let A∈Zn×n and a primepwithpdet(A) be given. ThenAis invertible over Zpk for allk 1. We have

ordpk(A)|ordp(A)pk1.

Proof: SinceAr=I implies that the order ofAdivides r, it suffices to show that

Aordp(A)pk1≡I (modpk).

SetB :=Aordp(A). Then we have B≡I (mod p).

We need to prove that

Bpk−1≡I (modpk)

for all k 1. This will be done by induction on k. The statement is clearly true for k = 1. Let’s assume that it holds fork. This means that

Bpk1 =I+pkC

for some matrixC∈Zn×n. By the binomial theorem,

Referenzen

ÄHNLICHE DOKUMENTE

We may thus conclude that both the viscosity and ro- tation suppress the instability of the superposed grav- itating streams when the streams rotate about an axis in the

The difference between Newtonian and general relativistic motion after 14 months is much larger for the four chaotic trajectories than it is for the three tra- jectories that are

The thesis deals with female characters in selected works by Franz Kafka (1883–1924), the well known representative of the Prague German literature.. The thesis

A large class of both epidemic and physiologically structured population models with a finite number of states at birth can be cast in the form of a coupled system of non-

Views or opinions expressed herein do not necessarily represent those of the Institute or of its National Member Organizations. INTERNATIONAL INSI'ITUTE FOR APPLIED

Return of the exercise sheet: 14.Nov.2019 during the exercise

My results show, first, that less severe cyclical fluctuations for both series are observed over time and, second, a weakening relationship of these cyclical fluctuations between

mon factor was the packing density of 0.41 used for the hard sphere interference functions. Following this extension it is appropriate to discuss any theoretical