Periodic Behavior in a Class of Second Order Recurrence Relations

Periodic Behavior in a Class of Second Order Recurrence Relations
Over the Integers
A PROJECT
SUBMITTED TO THE FACULTY OF THE GRADUATE SCHOOL OF
THE UNIVERSITY OF MINNESOTA
BY
Brittany Fanning
IN PARTIAL FULFILLMENT OF THE REQUIREMENTS
FOR THE DEGREE OF
MASTER OF SCIENCE
John Greene
January, 2015
Acknowledgements
I would like to express my appreciation to Dr. John Greene for his guidance on this project. His
insight and helpful critiques of my work are tremendously valued. Without him, I would not have been
able to complete this project. I would also like to thank Dr. Xuan Li and Dr. Bruce Peckham for serving
on my committee. Additionally, I would like to extend my gratitude to the entire department of
Mathematics and Statistics at the University of Minnesota Duluth. Collectively, the faculty, staff and my
fellow classmates have offered much needed guidance, knowledge, and encouragement.
i
Abstract
A recurrence relation is an equation that defines a sequence as a function of the preceding
terms. The order of the recurrence is defined to be the number of previous terms needed to determine
the next term in the sequence. A recurrence is linear if these terms are all to the first power and
separate. When the resulting sequence repeats after ๐‘˜ terms, we call the solution periodic with period
๐‘˜. Much is already known about the periodic behavior of linear recurrence relations. In this project we
consider a nonlinear variation on a class of second order recurrence relations. The system that we
looked at is
๐‘ฅ(๐‘ƒ๐‘Ž๐‘›โˆ’1 โˆ’ ๐‘„๐‘Ž๐‘›โˆ’2 ),
๐‘Ž๐‘› = {
๐‘ƒ๐‘Ž๐‘›โˆ’1 โˆ’ ๐‘„๐‘Ž๐‘›โˆ’2 ,
๐‘ฅ(๐‘ƒ๐‘Ž๐‘›โˆ’1 โˆ’ ๐‘„๐‘Ž๐‘›โˆ’2 ) โˆˆ โ„ค
otherwise,
where ๐‘ฅ is a rational number, ๐‘ƒ and ๐‘„ are integers, and {๐‘Ž๐‘› } is the resulting sequence.
We are
interested in finding when periodic solutions occur. In other words, we want ๐‘ฅ values and initial
conditions for specific values of ๐‘ƒ and ๐‘„ which lead to a periodic solution. Using a common linear
algebra method for solving recurrence relations, we developed a search method. In our search, ๐‘ƒ and ๐‘„
were restricted such that 1 โ‰ค ๐‘ƒ โ‰ค 20 and โˆ’20 โ‰ค ๐‘„ โ‰ค 20 and ๐‘„ โ‰  0.
ii
Contents
Acknowledgements
i
Abstract
ii
1 Introduction
1
2 Theoretical Considerations
5
2.1 First Order Linear Recurrences
5
2.2 Second Order Linear Recurrences
6
2.3 A Nonlinear Variation on Second Order Recurrences
8
3 The Polynomial ๐’‡๐‘พ (๐’™) When ๐‘พ Has a Small Number of ๐‘ฉโ€™s
17
3.1 ๐’‡๐‘พ (๐’™) for Products with One ๐‘ฉ
18
3.2 ๐’‡๐‘พ (๐’™) for Products with Two ๐‘ฉโ€™s
20
3.3 ๐’‡๐‘พ (๐’™) for Products with Three ๐‘ฉโ€™s
21
3.4 ๐’‡๐‘พ (๐’™) for Products with Four ๐‘ฉโ€™s
22
4 Results
24
4.1 Products with One ๐‘ฉ
25
4.2 Products with Two ๐‘ฉโ€™s
26
4.3 Products with Three ๐‘ฉโ€™s
29
4.4 Products with Four ๐‘ฉโ€™s
30
5 Conjectures
32
5.1 Patterns for Products with One ๐‘ฉ
32
5.2 Patterns for Products with Two ๐‘ฉโ€™s
33
5.3 Patterns for Products with Three ๐‘ฉโ€™s
34
5.4 Patterns for Products with Four ๐‘ฉโ€™s
35
6 Future Work
37
References
38
iii
A Mathematica Code
39
A.1 Mathematica Code for Products with One ๐‘ฉ
40
A.2 Mathematica Code for Products with Two ๐‘ฉโ€™s
41
A.3 Mathematica Code for Products with Three ๐‘ฉโ€™s
42
A.4 Mathematica Code for Products with Four ๐‘ฉโ€™s
43
iv
1 Introduction
A recurrence relation is an equation that defines a sequence as a function of the preceding
terms. The order of the recurrence is defined to be the number of previous terms needed to determine
the next term in the sequence. A recurrence is linear if these terms are all to the first power and
separate. Therefore, a ๐‘˜th order linear recurrence relation is an equation of the form: ๐‘Ž๐‘› = ๐‘1 ๐‘Ž๐‘›โˆ’1 +
๐‘2 ๐‘Ž๐‘›โˆ’2 + โ‹ฏ + ๐‘๐‘˜ ๐‘Ž๐‘›โˆ’๐‘˜ + ๐‘“(๐‘›). The relation is homogeneous if ๐‘“(๐‘›) = 0. Thus a first order linear
homogeneous recurrence relation with constant coefficients has the form ๐‘Ž๐‘› = ๐‘๐‘Ž๐‘›โˆ’1 where ๐‘ is a
constant. Here, the type of linear recurrence we are most concerned with is a second order of the form
๐‘Ž๐‘› = ๐‘ƒ๐‘Ž๐‘›โˆ’1 โˆ’ ๐‘„๐‘Ž๐‘›โˆ’2
(1.1)
where initial conditions ๐‘Ž0 and ๐‘Ž1 are needed to determine a sequence and ๐‘ƒ and ๐‘„ are constant
coefficients. We use this form to be consistent with [5, p.44], [6, p.107] and [9].
The characteristic polynomial associated with this relation is ๐‘ฅ 2 โˆ’ ๐‘ƒ๐‘ฅ + ๐‘„. The roots of this
polynomial are known as the characteristic roots and allow us to find the general solution to the system.
The general solution has one of two possible forms depending on whether there are two distinct roots
or one repeated root. If there are two distinct roots, the general solution will be of the form ๐‘Ž๐‘› =
๐ด๐‘1๐‘› + ๐ต๐‘2๐‘› where ๐‘1 and ๐‘2 are the characteristic roots and ๐ด and ๐ต are constants. For example, when
๐‘Ž๐‘› = 5๐‘Ž๐‘›โˆ’1 โˆ’ 4๐‘Ž๐‘›โˆ’2 the characteristic polynomial is ๐‘ฅ 2 โˆ’ 5๐‘ฅ + 4. In this case, the characteristic roots
are ๐‘ฅ = 1 and ๐‘ฅ = 4. Thus the general solution is ๐‘Ž๐‘› = ๐ด4๐‘› + ๐ต. If the initial conditions are ๐‘Ž0 = 1
and ๐‘Ž1 = 10, then the solution is ๐‘Ž๐‘› = 3 โˆ™ 4๐‘› โˆ’ 2. If there is a single repeated root ๐‘, the general
solution will have the form ๐‘Ž๐‘› = (๐ด + ๐ต๐‘›)๐‘ ๐‘› again with ๐ด and ๐ต as constants. For instance, when ๐‘Ž๐‘› =
6๐‘Ž๐‘›โˆ’1 โˆ’ 9๐‘Ž๐‘›โˆ’2 , the characteristic polynomial is ๐‘ฅ 2 โˆ’ 6๐‘ฅ + 9 which has a repeated root, ๐‘ฅ = 3 .
Therefore, the general solution is ๐‘Ž๐‘› = (๐ด + ๐ต๐‘›)3๐‘› . If the initials conditions are ๐‘Ž0 = 1 and ๐‘Ž1 = 9,
then the solution is ๐‘Ž๐‘› = (1 + 2๐‘›)3๐‘› . More information on linear recurrence relations can be found in
[2, Ch.10], [7, Ch.6] and [8, Ch.3.3].
1
A common Linear Algebra approach to solving recurrence relations is to convert (1.1) to a first
order system, namely,
๐’—๐‘› = ๐‘จ๐’—๐‘›โˆ’1
(1.2)
๐‘Ž๐‘›+1
where ๐’—๐‘› = [ ๐‘Ž ] . This method can be seen in numerous Linear Algebra textbooks, including
๐‘›
๐‘Ž๐‘›+1
๐‘Ž๐‘›
๐‘ค
p.243] and [10, p.307]. We want [ ๐‘Ž ] = ๐’—๐‘› = ๐‘จ๐’—๐‘›โˆ’1 = ๐‘จ [๐‘Ž ]. Thus, if we consider ๐‘จ = [ ๐‘ฆ
๐‘›
๐‘›โˆ’1
[1,
๐‘ฅ
๐‘ง ],
then we need ๐‘Ž๐‘›+1 = ๐‘ค๐‘Ž๐‘› + ๐‘ฅ๐‘Ž๐‘›โˆ’1 and ๐‘Ž๐‘› = ๐‘ฆ๐‘Ž๐‘› + ๐‘ง๐‘Ž๐‘›โˆ’1 . In this case, these conditions are satisfied
๐‘ƒ
when ๐‘ค = ๐‘ƒ , ๐‘ฅ = โˆ’๐‘„ , ๐‘ฆ = 1, ๐‘ง = 0, so ๐‘จ = [
1
โˆ’๐‘„
].
0
Notice the characteristic polynomials of
(1.1) and ๐‘จ are the same. Thus the characteristic roots of the recurrence are the eigenvalues of ๐‘จ. An
advantage of this translation is that, by iteration, ๐’—๐‘› = ๐‘จ๐‘› ๐’—0 .
The Lucas sequences ๐‘ˆ๐‘› and ๐‘‰๐‘› are specific sequences that satisfy (1.1) [5, p.41][6, p.107].
More specifically, for fixed ๐‘ƒ and ๐‘„, ๐‘ˆ๐‘› = ๐‘ƒ๐‘ˆ๐‘›โˆ’1 โˆ’ ๐‘„๐‘ˆ๐‘›โˆ’2 with ๐‘ˆ0 = 0 and ๐‘ˆ1 = 1. As before, if the
characteristic roots, ๐‘1 and ๐‘2 , are distinct, then ๐‘ˆ๐‘› = ๐ด๐‘1๐‘› + ๐ต๐‘2๐‘› . Since ๐‘ˆ๐‘› is defined to always start
with the same initial conditions, we can use ๐‘ˆ0 = 0 and ๐‘ˆ1 = 1 to find that ๐‘ˆ๐‘› =
๐‘1๐‘› โˆ’๐‘2๐‘›
๐‘1 โˆ’๐‘2
is the general
solution. In the previous example where ๐‘Ž๐‘› = 5๐‘Ž๐‘›โˆ’1 โˆ’ 4๐‘Ž๐‘›โˆ’2, the characteristic roots are ๐‘ฅ = 4 and
1
๐‘ฅ = 1. Thus ๐‘ˆ๐‘› = 3 (4๐‘› โˆ’ 1) when ๐‘ƒ = 5 and ๐‘„ = 4. Perhaps the most famous example of a Lucas
sequence is the Fibonacci sequence which satisfies the above equation with ๐‘ƒ = 1 and ๐‘„ = โˆ’1.
The second Lucas sequence, ๐‘‰๐‘› , is defined similarly by ๐‘‰๐‘› = ๐‘ƒ๐‘‰๐‘›โˆ’1 โˆ’ ๐‘„๐‘‰๐‘›โˆ’2 . However the initial
conditions are ๐‘‰0 = 2 and ๐‘‰1 = ๐‘ƒ. When ๐‘ƒ = 1 and ๐‘„ = โˆ’1 the recurrence ๐‘‰๐‘› yields the sequence 2, 1,
3, 4, 7, 11, โ€ฆ known as the Lucas numbers. Again, we can use the initial conditions and the form of the
general solution to find ๐‘‰๐‘› . When ๐‘1 and ๐‘2 are distinct characteristic roots, ๐‘‰๐‘› = ๐‘1๐‘› + ๐‘2๐‘› . So, for
example, when ๐‘ƒ = 5 and ๐‘„ = 4, ๐‘‰๐‘› = 4๐‘› + 1.
A common problem with recurrence relations deals with the search for periodic solutions.
When considering second order linear recurrences, frequently the only periodic solution is the zero
sequence. A brief exploration of the periodic solutions of linear recurrences will be given later in this
paper. Since the existence of periodic solutions to these recurrences is generally lacking or already
2
known, a far more interesting problem deals with variations on the second order linear recurrence in
(1.1). Consider the nonlinear recurrence
๐‘Ž๐‘› = {
๐‘ฅ(๐‘Ž๐‘›โˆ’1 + ๐‘Ž๐‘›โˆ’2 ),
๐‘Ž๐‘›โˆ’1 + ๐‘Ž๐‘›โˆ’2 ,
๐‘ฅ(๐‘Ž๐‘›โˆ’1 + ๐‘Ž๐‘›โˆ’2 ) โˆˆ โ„ค
otherwise,
(1.3)
where ๐‘ฅ is a rational number. When looking for periodic solutions to (1.3), one must not only look at
the initial conditions, but also the possible values of ๐‘ฅ. For example, consider
1
(๐‘Ž
+ ๐‘Ž๐‘›โˆ’2 ),
๐‘Ž๐‘› = {5 ๐‘›โˆ’1
๐‘Ž๐‘›โˆ’1 + ๐‘Ž๐‘›โˆ’2 ,
1
(๐‘Ž
+ ๐‘Ž๐‘›โˆ’2 ) โˆˆ โ„ค
5 ๐‘›โˆ’1
otherwise,
(1.4)
1
which is (1.3) when ๐‘ฅ = 5. When starting with ๐‘Ž0 = 3 and ๐‘Ž1 = 1 as initial conditions, (1.4) has the
periodic solution 3, 1, 4, 1, 1, 2, 3, 1, โ€ฆ The problem here is finding initial conditions and ๐‘ฅ values that
allow for periodic solutions to appear. Previously, Niedzielski [3] investigated the existence of periodic
solutions of (1.3).
Niedzielski [3] worked only with nonlinear adaptations of the Fibonacci numbers. However,
periodic behavior is not limited to (1.3). For example, the relation
1
(2๐‘Ž๐‘›โˆ’1 โˆ’ 6๐‘Ž๐‘›โˆ’2 ),
๐‘Ž๐‘› = {64
(2๐‘Ž๐‘›โˆ’1 โˆ’ 6๐‘Ž๐‘›โˆ’2 ),
1
(2๐‘Ž๐‘›โˆ’1 โˆ’ 6๐‘Ž๐‘›โˆ’2 ) โˆˆ โ„ค
64
otherwise
(1.5)
has a periodic solution with initial conditions ๐‘Ž0 = 4 and ๐‘Ž1 = โˆ’13, specifically 4, -13, -50, -22, 4, 140,
4, -13, โ€ฆ The generalization of this relation that was studied in this project is a nonlinear variation of the
Lucas sequences, namely the system
๐‘ฅ(๐‘ƒ๐‘Ž๐‘›โˆ’1 โˆ’ ๐‘„๐‘Ž๐‘›โˆ’2 ),
๐‘Ž๐‘› = {
๐‘ƒ๐‘Ž๐‘›โˆ’1 โˆ’ ๐‘„๐‘Ž๐‘›โˆ’2 ,
๐‘ฅ(๐‘ƒ๐‘Ž๐‘›โˆ’1 โˆ’ ๐‘„๐‘Ž๐‘›โˆ’2 ) โˆˆ โ„ค
otherwise,
(1.6)
where ๐‘ฅ is a rational number and ๐‘ƒ and ๐‘„ are integers. The question was when periodic behavior would
occur. More precisely, given fixed values of ๐‘ƒ and ๐‘„, which values of ๐‘ฅ allow for periodic solutions?
3
This paper will adapt the methods in [3] used for investigating recurrence (1.3) to the more
general setting in (1.6). Due to the increase in variables from (1.3) to (1.6), Niedzielskiโ€™s method became
difficult. Chapter 2 will include the essential theorems used to create the search method and reduce the
number of cases to be examined. The approach taken will be outlined in Chapter 3.
The information in Chapter 2 and Chapter 3 made it possible to search for which pairs of ๐‘ƒ and
๐‘„ had ๐‘ฅ values which allowed for periodic solutions. More specifically, the search included ๐‘ƒ and ๐‘„
such that 1 โ‰ค ๐‘ƒ โ‰ค 20 and โˆ’20 โ‰ค ๐‘„ โ‰ค 20 and ๐‘„ โ‰  0. Chapter 4 contains the results from this search.
This includes the values of ๐‘ƒ, ๐‘„ and ๐‘ฅ where periodic solutions were found. Conjectures made about
patterns in the data will be identified in Chapter 5. Suggestions for further work and open questions will
be contained within Chapter 6.
4
2 Theoretical Considerations
A general problem with recurrence relations deals with the search for initial conditions that lead
to periodic solutions. Below is a discussion of the periodic solutions of first and second order linear
homogenous recurrence relations. Some of the results of this project follow similar patterns to those
outlined below.
2.1 First Order Linear Recurrences
Recall the form of the first order linear recurrence, ๐‘Ž๐‘› = ๐‘๐‘Ž๐‘›โˆ’1 . Given initial condition ๐‘Ž0 , the
general solution is ๐‘Ž๐‘› = ๐‘Ž0 ๐‘ ๐‘› . The most trivial periodic solution to ๐‘Ž๐‘› = ๐‘๐‘Ž๐‘›โˆ’1 would be ๐‘Ž๐‘› = 0. With
the general solution in mind, we can easily see that trivial solution can be achieved when ๐‘Ž0 = 0 or ๐‘ =
0. Slightly less trivial solutions would be nonzero constant solutions. If we want ๐‘Ž๐‘› to be some constant
๐‘Ž for all ๐‘›, we need ๐‘Ž = ๐‘๐‘Ž. Since we are looking for nonzero solutions, we need ๐‘ = 1. As a matter of
fact, when ๐‘ = 1, ๐‘Ž๐‘› = ๐‘Ž๐‘›โˆ’1 so every solution will be periodic with period one.
Consider possible solutions with longer period length. A solution of period two would be of the
form ๐‘Ž, ๐‘, ๐‘Ž, ๐‘, ๐‘Ž, โ€ฆ Thus, in order to achieve a solution of period two we need ๐‘Ž = ๐‘๐‘ and ๐‘ = ๐‘๐‘Ž. By
substitution, we get the condition ๐‘Ž = ๐‘ 2 ๐‘Ž. Again, we are looking for nonzero solutions, therefore we
need ๐‘ 2 = 1. As mentioned above, ๐‘ = 1 leads to solutions with period one so we look at the case
where ๐‘ = โˆ’1. In this case, ๐‘Ž๐‘› = โˆ’๐‘Ž๐‘›โˆ’1 , thus all nonzero solutions will be periodic with period two.
Using the concept above, notice that solutions with longer period length must satisfy ๐‘Ž = ๐‘ ๐‘˜ ๐‘Ž
where ๐‘˜ is the length of the period. Therefore, when looking for periodic solutions, we are looking for
values of ๐‘ such that ๐‘ ๐‘˜ = 1, values referred to as ๐‘˜th roots of unity. Moreover, to ensure the period
length is ๐‘˜, we need ๐‘˜ to be the smallest positive integer for which ๐‘ ๐‘˜ = 1. In this case, ๐‘ is known as a
primitive ๐‘˜th root of unity. There is always a complex value of ๐‘ for which ๐‘ ๐‘˜ = 1. This value is ๐‘ =
5
๐‘’ 2๐œ‹๐‘–โ„๐‘˜ which by Eulerโ€™s formula can be written as ๐‘ = ๐‘’ 2๐œ‹๐‘–โ„๐‘˜ = cos (2๐œ‹โ„๐‘˜ ) + ๐‘– sin (2๐œ‹โ„๐‘˜ ). In fact, all
solutions are given by ๐‘ = ๐‘’ 2๐œ‹๐‘–๐‘— โ„๐‘˜ where ๐‘— is an integer. The roots will be primitive when ๐‘— is relatively
prime to ๐‘˜. If we are looking for real values of ๐‘ we need sin (2๐œ‹โ„๐‘˜ ) = 0. Thus ๐‘˜ = 1 and ๐‘˜ = 2 are
the only possible solutions. Therefore, when considering first order linear homogeneous recurrence
relations with constant coefficients, the only real periodic solutions that exist are of period length one or
two. Moreover, when a sequence of period two exists, all nontrivial sequences to that recurrence will
have period two.
2.2 Second Order Linear Recurrences
Although this project deals with a nonlinear variation of ๐‘Ž๐‘› = ๐‘ƒ๐‘Ž๐‘›โˆ’1 โˆ’ ๐‘„๐‘Ž๐‘›โˆ’2 , we will look
briefly at the periodic solutions to this linear recurrence. Again, similar to the first order relation, when
looking at periodic solutions of period length one there are the trivial solution ๐‘Ž๐‘› = 0 and the constant
solution ๐‘Ž๐‘› = ๐‘Ž. In the constant case we have ๐‘Ž = ๐‘ƒ๐‘Ž โˆ’ ๐‘„๐‘Ž. Since we are looking for nonzero
solutions we can assume ๐‘Ž โ‰  0 and divide by ๐‘Ž to get 1 = ๐‘ƒ โˆ’ ๐‘„, or ๐‘ƒ = ๐‘„ + 1.
Therefore, the
constant solution will be present when ๐‘ƒ = ๐‘„ + 1 and ๐‘Ž0 = ๐‘Ž1 . For example, when ๐‘ƒ = 5 and ๐‘„ = 4,
the initial conditions ๐‘Ž0 = ๐‘Ž1 = 5 result in the periodic solution 5, 5, 5, 5, โ€ฆ
Yet again we will explore larger period lengths. For a period of length two, we will have ๐‘Ž =
๐‘ƒ๐‘ โˆ’ ๐‘„๐‘Ž and ๐‘ = ๐‘ƒ๐‘Ž โˆ’ ๐‘„๐‘. If we add these together we obtain ๐‘Ž + ๐‘ = ๐‘ƒ(๐‘Ž + ๐‘) โˆ’ ๐‘„(๐‘Ž + ๐‘). There
are two cases: either ๐‘Ž + ๐‘ โ‰  0 or ๐‘Ž + ๐‘ = 0. If ๐‘Ž + ๐‘ โ‰  0 then we can divide by ๐‘Ž + ๐‘ and we have
the condition ๐‘ƒ = ๐‘„ + 1 again.
(๐‘„ + 1)๐‘.
Substituting this condition in to ๐‘Ž = ๐‘ƒ๐‘ โˆ’ ๐‘„๐‘Ž yields (๐‘„ + 1)๐‘Ž =
Since ๐‘Ž โ‰  ๐‘, this implies ๐‘„ + 1 = 0.
Therefore, ๐‘„ = โˆ’1 and ๐‘ƒ = 0.
This gives us the
recurrence ๐‘Ž๐‘› = ๐‘Ž๐‘›โˆ’2 , which is always periodic. In order to assure a period length of two we must
specify ๐‘Ž0 โ‰  ๐‘Ž1 , otherwise the period would be one. If ๐‘Ž + ๐‘ = 0 then ๐‘ = โˆ’๐‘Ž. Again we substitute
this in to ๐‘Ž = ๐‘ƒ๐‘ โˆ’ ๐‘„๐‘Ž to receive ๐‘Ž = โˆ’๐‘ƒ๐‘Ž โˆ’ ๐‘„๐‘Ž so ๐‘ƒ = โˆ’๐‘„ โˆ’ 1. When both of these conditions hold,
all solutions will be periodic with period two. For instance, if we choose ๐‘„ = โˆ’4 then ๐‘ƒ = 3 so ๐‘Ž๐‘› =
3๐‘Ž๐‘›โˆ’1 + 4๐‘Ž๐‘›โˆ’2 . Starting with the initial conditions ๐‘Ž0 = 1 and ๐‘Ž1 = โˆ’1, we have the periodic solution
1, โˆ’1, 1, โˆ’1, 1, โ€ฆ In this case, however, we will not get periodic behavior when โˆ’๐‘Ž0 โ‰  ๐‘Ž1 . For example,
with the same recurrence, ๐‘Ž๐‘› = 3๐‘Ž๐‘›โˆ’1 + 4๐‘Ž๐‘›โˆ’2 , if the initial conditions are instead ๐‘Ž0 = 1 and ๐‘Ž1 = 4
we have the non-periodic solution 1, 4, 16, 64, โ€ฆ
6
For larger periods, at least one of the roots of the characteristic polynomial must be a ๐‘˜th root of
unity. Similar to the first order case, we know ๐‘1 = ๐‘’ 2๐œ‹๐‘–๐‘—โ„๐‘˜ will work. Since complex solutions must
come in conjugate pairs, in order for ๐‘ƒ and ๐‘„ to be real, our second solution must be ๐‘2 = ๐‘’ โˆ’2๐œ‹๐‘–๐‘—โ„๐‘˜ .
With these solutions, ๐‘ƒ must be ๐‘1 + ๐‘2 so ๐‘ƒ = 2 cos(2๐œ‹๐‘—/๐‘˜) and ๐‘„ = ๐‘1 โ‹… ๐‘2 = 1.
relation ๐‘Ž๐‘› = 2 cos(2๐œ‹๐‘—/๐‘˜) ๐‘Ž๐‘›โˆ’1 โˆ’ ๐‘Ž๐‘›โˆ’2 for some ๐‘— relatively prime to ๐‘˜.
This gives the
It turns out that every
solution will be periodic with a period length which divides ๐‘˜. To see why this is true, let ๐œ” = ๐‘’ 2๐œ‹๐‘–๐‘—โ„๐‘˜
then ๐œ” and ๐œ”โˆ’1 are the roots of the characteristic polynomial. Thus the general solution is ๐‘Ž๐‘› = ๐ด๐œ”๐‘› +
๐ต๐œ”โˆ’๐‘› for some constants ๐ด and ๐ต.
๐ต๐œ”โˆ’๐‘› ๐œ”โˆ’๐‘˜ = ๐ด๐œ”๐‘› + ๐ต๐œ”โˆ’๐‘› = ๐‘Ž๐‘› .
Since ๐œ”๐‘˜ = 1 we have ๐‘Ž๐‘›+๐‘˜ = ๐ด๐œ”๐‘›+๐‘˜ + ๐ต๐œ”โˆ’๐‘›โˆ’๐‘˜ = ๐ด๐œ”๐‘› ๐œ”๐‘˜ +
In this project, we focus on integer sequences.
Since ๐‘Ž๐‘› =
2 cos(2๐œ‹๐‘—/๐‘˜) ๐‘Ž๐‘›โˆ’1 โˆ’ ๐‘Ž๐‘›โˆ’2 , we know ๐‘Ž๐‘› + ๐‘Ž๐‘›โˆ’2 = 2 cos(2๐œ‹๐‘—/๐‘˜) ๐‘Ž๐‘›โˆ’1 . If we are only interested in
integer sequences, this implies 2 cos(2๐œ‹๐‘—/๐‘˜) must be a rational number.
Nivenโ€™s Theorem: If ๐œƒ is rational in degrees, say ๐œƒ = 2๐œ‹๐‘Ÿ for some rational number ๐‘Ÿ, then the only
rational
values
of
the
trigonometric
functions
of ๐œƒ are
as
follows: sin ๐œƒ , cos ๐œƒ =
1
2
0, ± , ±1; sec ๐œƒ , csc ๐œƒ = ±1, ±2 ; tan ๐œƒ , cot ๐œƒ = 0, ±1. [4, p.41]
๐œ‹
3
Consequently, the only angles which will make 2 cos(2๐œ‹๐‘—/๐‘˜) a rational number are ,
๐œ‹ 2๐œ‹
4๐œ‹
,
, ๐œ‹,
,
2
3
3
3๐œ‹ 5๐œ‹
,
, 2๐œ‹.
2
3
Therefore, the only values for ๐‘˜ which allow for periodic solutions of period ๐‘˜ are ๐‘˜ =
1, 2, 3, 4, 6 .
For example, when ๐‘˜ = 4 , 2 cos(2๐œ‹๐‘—/๐‘˜) = 2 cos(2๐œ‹๐‘—/4) = 2 cos(๐œ‹๐‘—/2) = 0 so ๐‘Ž๐‘› =
โˆ’๐‘Ž๐‘›โˆ’2 . In this case, all nontrivial solutions will have period four. For instance, when ๐‘Ž0 = 1 and ๐‘Ž1 = 4
the solution will be periodic with period four, specifically 1, 4, โˆ’1, โˆ’4, 1, 4, โ€ฆ Similarly, when ๐‘˜ = 6,
๐‘Ž๐‘› = 2 cos(2๐œ‹๐‘—/6) ๐‘Ž๐‘›โˆ’1 โˆ’ ๐‘Ž๐‘›โˆ’2
= 2 cos(๐œ‹๐‘—/3) ๐‘Ž๐‘›โˆ’1 โˆ’ ๐‘Ž๐‘›โˆ’2
1
= 2 ( ) ๐‘Ž๐‘›โˆ’1 โˆ’ ๐‘Ž๐‘›โˆ’2
2
= ๐‘Ž๐‘›โˆ’1 โˆ’ ๐‘Ž๐‘›โˆ’2 .
Here, all nontrivial solutions will have period six. One such example occurs when ๐‘Ž0 = 3 and ๐‘Ž1 = 4
where the solution is 3, 4, 1, โˆ’3, โˆ’4, โˆ’1, 3, 4, โ€ฆ
As mentioned previously, for this project, we restricted our search to only positive values of ๐‘ƒ.
We were able to do this because if ๐‘Ž๐‘› = ๐‘“(๐‘›) is a solution to ๐‘Ž๐‘› = โˆ’๐‘ƒ๐‘Ž๐‘›โˆ’1 โˆ’ ๐‘„๐‘Ž๐‘›โˆ’2 then ๐‘๐‘› =
(โˆ’1)๐‘› ๐‘“(๐‘›) is a solution to ๐‘๐‘› = ๐‘ƒ๐‘๐‘›โˆ’1 โˆ’ ๐‘„๐‘๐‘›โˆ’2 . To see this, let ๐‘Ž๐‘› = ๐‘“(๐‘›) be a solution to ๐‘Ž๐‘› =
7
โˆ’๐‘ƒ๐‘Ž๐‘›โˆ’1 โˆ’ ๐‘„๐‘Ž๐‘›โˆ’2 . Then ๐‘“(๐‘›) = โˆ’๐‘ƒ๐‘“(๐‘› โˆ’ 1) โˆ’ ๐‘„๐‘“(๐‘› โˆ’ 2). Let ๐‘๐‘› = (โˆ’1)๐‘› ๐‘“(๐‘›) so ๐‘“(๐‘›) = (โˆ’1)๐‘› ๐‘๐‘› .
Therefore, by substitution, (โˆ’1)๐‘› ๐‘๐‘› = ๐‘ƒ(โˆ’1)๐‘›โˆ’1 ๐‘๐‘›โˆ’1 โˆ’ ๐‘„(โˆ’1)๐‘›โˆ’2 ๐‘๐‘›โˆ’2 . If we divide by (โˆ’1)๐‘› , we
see that ๐‘๐‘› = ๐‘ƒ๐‘๐‘›โˆ’1 โˆ’ ๐‘„๐‘๐‘›โˆ’2 . Thus ๐‘๐‘› = (โˆ’1)๐‘› ๐‘“(๐‘›) is a solution to ๐‘๐‘› = ๐‘ƒ๐‘๐‘›โˆ’1 โˆ’ ๐‘„๐‘๐‘›โˆ’2 when ๐‘Ž๐‘› =
๐‘“(๐‘›) is a solution to ๐‘Ž๐‘› = โˆ’๐‘ƒ๐‘Ž๐‘›โˆ’1 โˆ’ ๐‘„๐‘Ž๐‘›โˆ’2 . Therefore, we know for any solution we find for positive
๐‘ƒ, there is also a periodic solution in the negative ๐‘ƒ case where the period is half that of the positive
case. For example, the recurrence ๐‘Ž๐‘› = โˆ’๐‘Ž๐‘›โˆ’1 โˆ’ ๐‘Ž๐‘›โˆ’2 when ๐‘Ž0 = 5 and ๐‘Ž1 = 3 has periodic solution
5, 3, โˆ’8, 5, 3, โ€ฆ This is the case of (1.1) where ๐‘ƒ = โˆ’1 and ๐‘„ = 1. Consider what happens when ๐‘ƒ = 1
and ๐‘„ = 1. In this instance, ๐‘Ž๐‘› = ๐‘Ž๐‘›โˆ’1 โˆ’ ๐‘Ž๐‘›โˆ’2 . When the initial conditions are ๐‘Ž0 = 5 and ๐‘Ž1 = โˆ’3,
this recurrence has the periodic solution 5, โˆ’3, โˆ’8, โˆ’5, 3, 8, 5, โˆ’3, โ€ฆ As one can see, the period length
of the positive case is merely double that of the case where ๐‘ƒ is negative.
2.3 A Nonlinear Variation on Second Order Recurrences
In the search for periodic solutions to (1.3), Niedzielski [3] used the method outlined below to
find values of ๐‘ฅ which would allow for periodic solutions. The approach used involved a shift to a first
order system similar to (1.2). Specifically,
๐’—๐‘› = {
๐‘ฉ๐’—๐‘›โˆ’1 ,
๐‘จ๐’—๐‘›โˆ’1 ,
๐‘ฅ(๐‘Ž๐‘› + ๐‘Ž๐‘›โˆ’1 ) โˆˆ โ„ค
otherwise
๐‘Ž๐‘›+1
1
where ๐’—๐‘› = [ ๐‘Ž ] with ๐‘Ž๐‘› and ๐‘Ž๐‘›+1 as sequence terms, ๐‘จ = [
1
๐‘›
๐‘ฅ
1
], and ๐‘ฉ = [
1
0
(2.1)
๐‘ฅ
].
0
To see the
benefit of this transition, consider the example of (1.4) from the introduction. The periodic solution was
1
4
1
1
2
3, 1, 4, 1, 1, 2, 3, 1, โ€ฆ This corresponds to ๐’—0 = [ ] , ๐’—1 = [ ] , ๐’—2 = [ ] , ๐’—3 = [ ] , ๐’—4 = [ ] , ๐’—5 =
3
1
4
1
1
3
1
[ ] , ๐’—6 = [ ] , โ‹ฏ when we use (2.1). Since ๐’—6 = ๐‘ฉ๐’—5 , ๐’—5 = ๐‘จ๐’—4 , ๐’—4 = ๐‘จ๐’—3 , and so on, we see that
2
3
๐’—0 = ๐‘ฉ๐‘จ2 ๐‘ฉ2 ๐‘จ๐’—0 . That is, ๐’—0 is an eigenvector of ๐‘ฉ๐‘จ2 ๐‘ฉ2 ๐‘จ with eigenvalue 1.
More generally, a periodic solution to (2.1) of length ๐‘š means ๐’—๐‘›+๐‘š = ๐’—๐‘› for all ๐‘›. Therefore,
if the period length is ๐‘š, ๐’—๐‘š = ๐’—0 . However, the solution to the recurrence is ๐’—๐‘š = ๐‘พ๐’—0 where ๐‘พ is a
product of ๐‘š ๐€โ€™s and ๐โ€™s. This leads to the following:
8
Theorem 2.1: For every periodic solution to (1.3), there is a corresponding matrix ๐‘พ, which is a product
of ๐‘จโ€™s and ๐‘ฉโ€™s, that has an eigenvector ๐’—0 , with eigenvalue 1.
The entries of ๐’—0 give the initial
conditions for the periodic solution.
Consider how this would change for our more generalized problem. In (1.5) from the introduction, we
no longer have one as coefficients. Thus multiplying by ๐‘จ and ๐‘ฉ as defined above will not give us the
desired result. Instead, (1.5) can be considered as
๐‘ฉ๐’— ,
๐’—๐‘› = { ๐‘›โˆ’1
๐‘จ๐’—๐‘›โˆ’1 ,
1
(2๐‘Ž๐‘› โˆ’ 6๐‘Ž๐‘›โˆ’1 ) โˆˆ โ„ค
64
otherwise
๐‘Ž๐‘›+1
where ๐’—๐‘› = [ ๐‘Ž ] still has ๐‘Ž๐‘› and ๐‘Ž๐‘›+1 as sequence terms.
๐‘›
2
64
[
1
โˆ’6
64 ] where ๐‘จ
0
(2.2)
However, now ๐‘จ = [
2 โˆ’6
] and ๐‘ฉ =
1 0
and ๐‘ฉ are determined in the same manner as (1.2). With these specifications, the
periodic solution 4, -13, -50, -22, 4, 140, 4, -13, โ€ฆ can now be written as ๐’—0 = [
4
โˆ’22
4
140
โˆ’13
[
] , ๐’—3 = [
] , ๐’—4 = [
] , ๐’—5 = [
],๐’— = [
],โ‹ฏ
โˆ’50
โˆ’22
4
140 6
4
โˆ’13
โˆ’50
] , ๐’—1 = [
],๐’— =
4
โˆ’13 2
In this case, we see that ๐’—0 =
๐‘ฉ2 ๐‘จ๐‘ฉ๐‘จ2 ๐’—0. Observe that the coefficients 2 and 6 correspond to ๐‘ƒ and ๐‘„ in our generalization. This
leads to the following:
Theorem 2.2: For every periodic solution to (1.6), there is a corresponding matrix ๐‘พ, which is a product
of ๐‘จโ€™s and ๐‘ฉโ€™s, that has an eigenvector ๐’—0 , with 1 as an eigenvalue. Where the entries of ๐’—0 give the
initial conditions for the periodic solution of the system
๐‘ฉ๐’— ,
๐’—๐‘› = { ๐‘›โˆ’1
๐‘จ๐’—๐‘›โˆ’1 ,
Where ๐‘จ and ๐‘ฉ are defined as ๐‘จ = [
๐‘ƒ
1
๐‘ฅ(๐‘ƒ๐‘Ž๐‘› โˆ’ ๐‘„๐‘Ž๐‘›โˆ’1 ) โˆˆ โ„ค
otherwise.
โˆ’๐‘„
๐‘ƒ๐‘ฅ
] and ๐‘ฉ = [
0
1
(2.3)
โˆ’๐‘„๐‘ฅ
]. Recall that ๐‘ฅ is a rational number
0
and ๐‘ƒ and ๐‘„ are the integer coefficients from (1.6).
With this in mind, we consider how to find the products of ๐‘จ and ๐‘ฉ which will have 1 as an
eigenvalue. It is known that a matrix ๐‘พ has eigenvalue 1 if and only if det(๐‘พ โˆ’ ๐‘ฐ) = 0. For a two by
two matrix, the characteristic polynomial simplifies to the particularly nice form det(๐‘พ โˆ’ ๐‘ฐ) = 1 โˆ’
9
tr ๐‘พ + det ๐‘พ. Now let ๐‘พ be some product of the matrices ๐‘จ and ๐‘ฉ from above. We can define the
function
๐‘“๐‘Š (๐‘ฅ) = โˆ’ det(๐‘พ โˆ’ ๐‘ฐ) = tr ๐‘พ โˆ’ det ๐‘พ โˆ’ 1.
(2.4)
Notice that instead of using det(๐‘พ โˆ’ ๐‘ฐ), ๐‘“๐‘Š (๐‘ฅ) is the negative of the characteristic polynomial. This
was done to make the leading coefficients in (3.1), (3.2), (3.3), and (3.4) look nicer.
Thus ๐‘พ will have 1 as an eigenvalue for exactly those ๐‘ฅ values that satisfy ๐‘“๐‘Š (๐‘ฅ) = 0 .
Therefore, when given a specific product of ๐‘จโ€™s and ๐‘ฉโ€™s, where ๐‘ƒ and ๐‘„ are fixed, we can find all ๐‘ฅ
values with 1 as an eigenvalue by solving ๐‘“๐‘Š (๐‘ฅ) = 0. For example, consider (2.2) from above. Recall
๐‘ƒ = 2 and ๐‘„ = 6, thus ๐‘จ = [
2 โˆ’6
2๐‘ฅ
] and ๐‘ฉ = [
1 0
1
โˆ’6๐‘ฅ
]. Therefore,
0
3
2
โˆ’ 72๐‘ฅ
๐‘พ = ๐‘ฉ2 ๐‘จ๐‘ฉ๐‘จ2 = [64๐‘ฅ + 240๐‘ฅ
2
32๐‘ฅ + 24๐‘ฅ
โˆ’48๐‘ฅ 3 + 144๐‘ฅ 2 โˆ’ 432๐‘ฅ ].
โˆ’24๐‘ฅ 2 + 144๐‘ฅ
With some simple calculations, we see that tr ๐‘พ = 64๐‘ฅ 3 + 240๐‘ฅ 2 โˆ’ 72๐‘ฅ and det ๐‘พ = 46656๐‘ฅ 3 , thus
๐‘“๐‘Š (๐‘ฅ) = 64๐‘ฅ 3 + 240๐‘ฅ 2 โˆ’ 72๐‘ฅ โˆ’ 46656๐‘ฅ 3 โˆ’ 1
= โˆ’46592๐‘ฅ 3 + 216๐‘ฅ 2 + 72๐‘ฅ โˆ’ 1
= (64๐‘ฅ โˆ’ 1)(โˆ’728๐‘ฅ 2 โˆ’ 8๐‘ฅ + 1).
1
From here, it is easy to see that ๐‘ฅ = 64 is a root. If we substitute this solution into our matrix, we get
4367
110019
โˆ’
16384 ].
๐‘พ = [ 4096
49
1149
128
512
โˆ’
We know this matrix has an eigenvalue of 1. If we solve for the corresponding eigenvector, we obtain
โˆ’13
๐’—0 = [
], which gives the initial condition leading to the periodic solution addressed above.
4
However, as is, there are a couple of factors that we must consider before we can adopt this as the
search method when looking for periodic solutions to (1.6).
10
Unfortunately, Theorem 2.2 does not guarantee periodic behavior. In other words, it is possible
to have a solution to ๐‘“๐‘Š (๐‘ฅ) = 0 that does not lead to a periodic solution. For example, consider (2.3)
where ๐‘ƒ = 4 and ๐‘„ = 6. In this case,
๐‘พ = ๐‘ฉ๐‘จ2 = [
16๐‘ฅ
10
โˆ’60๐‘ฅ
].
โˆ’24
Thus
๐‘“๐‘Š (๐‘ฅ) = 16๐‘ฅ โˆ’ 24 โˆ’ 216๐‘ฅ โˆ’ 1
= โˆ’200๐‘ฅ โˆ’ 25.
15
1
โˆ’2
Therefore, the matrix ๐‘พ has an eigenvalue of 1 when ๐‘ฅ = โˆ’ 8. In this case, ๐‘พ = [
2 ] and the
10 โˆ’24
5
corresponding eigenvector is ๐’—0 = [ ] .
However, this leads to the sequence
2
2, 5, โˆ’1, โˆ’34, โˆ’130, โˆ’316, โ€ฆ which does not have the expected periodic behavior.
Typically, the
problem in these cases is a division in the wrong place. In this case, a division occurred right away and
then not when expected. If we were to not allow the division immediately after the initial conditions,
the solution would be periodic. In other words, if ๐‘Ž0 = 2 and ๐‘Ž1 = 5, then ๐‘Ž๐‘› = 4๐‘Ž๐‘›โˆ’1 โˆ’ 6๐‘Ž๐‘›โˆ’2 gives
1
us ๐‘Ž2 = 8. This time, we donโ€™t multiply by ๐‘ฅ = โˆ’ 8. Instead, we use our linear recurrence again to get
๐‘Ž3 = 2. For ๐‘Ž4 , ๐‘Ž๐‘› = 4๐‘Ž๐‘›โˆ’1 โˆ’ 6๐‘Ž๐‘›โˆ’2 yields โˆ’40 which is divisible by โˆ’8. We allow the division and
thus have the periodic solution 2, 5, 8, 2, 5, โ€ฆ with period three as expected. There were several other
scenarios in which this occurred. For instance, when ๐‘ƒ = 4 and ๐‘„ = โˆ’18 the matrix ๐‘พ = ๐‘ฉ๐‘จ2 ๐‘ฉ has a
similar outcome. Here,
2
๐‘พ = [832๐‘ฅ + 612๐‘ฅ
136๐‘ฅ + 72
3744๐‘ฅ 2 ]
612๐‘ฅ
so
๐‘“๐‘Š (๐‘ฅ) = 832๐‘ฅ 2 + 1224๐‘ฅ โˆ’ 104976๐‘ฅ 2 โˆ’ 1
= โˆ’104144๐‘ฅ 2 + 1224๐‘ฅ โˆ’ 1
= (92๐‘ฅ โˆ’ 1)(โˆ’1132๐‘ฅ + 1).
1
The value ๐‘ฅ = 92 is one of the solutions to ๐‘“๐‘Š (๐‘ฅ) = 0 that guarantees ๐‘พ has an eigenvalue of 1. The
eigenvector
with
1
๐‘ฅ = 92
is
โˆ’1
๐’—0 = [ ] .
13
Using
11
(2.3),
we
get
the
sequence
13, โˆ’1, 230, 902, 7748, 47228, โ€ฆ which is, once again, not periodic. Here, it turns out that while ๐’—0 =
โˆ’1
โˆ’2
[ ] is an eigenvector, it does not lead to periodic behavior. If we instead started with 2๐’—0 = [ ], the
13
26
resulting sequence would be 26, โˆ’2, 5, โˆ’16, 26, โˆ’2, โ€ฆ which is periodic as expected. The second ๐‘ฅ
1
value, ๐‘ฅ = 1132, also did not lead to periodic behavior because of the same problem. There are also
cases where one ๐‘ฅ value leads to periodic behavior, but the second ๐‘ฅ value does not. For instance,
when ๐‘ƒ = 5 and ๐‘„ = โˆ’7, the matrix (๐‘ฉ๐‘จ3 )2 has two ๐‘ฅ values that guarantee an eigenvalue of 1. These
223
โˆ’223
The first, ๐‘ฅ = 1202, has corresponding eigenvector [
] which
195
โˆ’15
leads to the periodic solution 195, โˆ’223, 250, โˆ’311, 195, โˆ’223, โ€ฆ However, the eigenvector, [
],
13
223
1
values are ๐‘ฅ = 1202 and ๐‘ฅ = โˆ’ 16.
1
corresponding to the second solution, ๐‘ฅ = โˆ’ 16, does not lead to a periodic solution. The resulting
sequence is 13, โˆ’15, โˆ’1, โˆ’110, โˆ’557, โˆ’3555, โ€ฆ This was yet another case where the multiplications
by ๐‘ฅ did not follow the expected pattern. Based on these cases, it is clear to see that each result must
be tested to verify that the solution was indeed periodic.
Another difficulty is the number of possible cases. To begin with, even if we limit the length of
products of ๐‘จโ€™s and ๐‘ฉโ€™s to 24, we would still have over 16 million possible products. In addition to that,
we are interested in multiple values of ๐‘ƒ and ๐‘„ for each product of ๐‘จโ€™s and ๐‘ฉโ€™s. As mentioned in the
introduction, we limited the possible values of ๐‘ƒ and ๐‘„ to the range 1 โ‰ค ๐‘ƒ โ‰ค 20 and โˆ’20 โ‰ค ๐‘„ โ‰ค 20.
This still leaves nearly 800 possible pairs of ๐‘ƒโ€™s and ๐‘„โ€™s for each of the 16 million possible products of
๐‘จโ€™s and ๐‘ฉโ€™s. In other words, the number of possible cases that we would currently need to check is
daunting at best. In an attempt to minimize the number of cases that must be considered, we look at
the order in which the ๐‘จโ€™s and ๐‘ฉโ€™s appear in our products. Looking at equation (2.4), we note that the
order of our product will only affect the equation in the same manner that the determinant and trace
are affected by order. The determinant of ๐‘พ is not dependent on the order of ๐‘จโ€™s and ๐‘ฉโ€™s since
det ๐‘จ๐‘ฉ = det ๐‘จ det ๐‘ฉ = det ๐‘ฉ det ๐‘จ = det ๐‘ฉ๐‘จ. Therefore, the only term in (2.4) that depends on the
order of the product of ๐‘จโ€™s and ๐‘ฉโ€™s is tr ๐‘พ.
Next, it is known that cyclic permutations of matrix products have the same trace. Therefore,
any cyclic permutations of ๐‘จโ€™s and ๐‘ฉโ€™s will have the same periodic solution. For example, consider (2.2)
1
from above. In this example, ๐‘ƒ = 2, ๐‘„ = 6 and ๐‘ฅ = 64. A periodic solution begins with ๐‘Ž0 = 4, ๐‘Ž1 =
โˆ’13, corresponding to ๐‘ฃ0 = [
โˆ’13
], an eigenvector of ๐‘ฉ2 ๐‘จ๐‘ฉ๐‘จ2 with eigenvalue 1.
4
12
However, ๐’—0 =
๐‘ฉ2 ๐‘จ๐‘ฉ๐‘จ2 ๐’—0 is not the only possibility; if we were to pick any two consecutive terms in the periodic
solution, they could be used to form a periodic solution with the same numbers, but different initial
โˆ’50
conditions. However, our product of ๐‘จโ€™s and ๐‘ฉโ€™s would differ. Suppose an initial condition of [
] is
โˆ’13
โˆ’13
โˆ’22
โˆ’50
used instead of [
]. Our periodic solution now corresponds to ๐’—0 = [
],๐’— = [
],๐’— =
4
โˆ’50 2
โˆ’13 1
4
4
140
โˆ’13
โˆ’50
[
] , ๐’—3 = [
] , ๐’—4 = [
] , ๐’—5 = [
] , ๐’—6 = [
] โ‹ฏ Here we see that ๐’—6 = ๐‘จ๐’—5 , ๐’—5 = ๐‘ฉ๐’—4 ,
โˆ’22
4
140
4
โˆ’13
โˆ’13
๐’—4 = ๐‘ฉ๐’—3 , โ€ฆ which leads us to ๐’—0 = ๐‘จ๐‘ฉ๐Ÿ ๐‘จ๐‘ฉ๐‘จ๐’—0. Recall that when ๐’— = [
] the product of ๐‘จโ€™s and
4
๐‘ฉโ€™s which resulted was ๐’— = ๐‘ฉ2 ๐‘จ๐‘ฉ๐‘จ2 ๐’—. Notice that these are merely cyclic permutations of each other.
Therefore, cyclic permutations of ๐‘จโ€™s and ๐‘ฉโ€™s will result in the same periodic solution only shifted
depending on the initial conditions. Below is the proof for the two by two case that the trace does not
change for cyclically permuted products.
Theorem 2.3: Let ๐‘จ1 , ๐‘จ2 , โ‹ฏ , ๐‘จ๐‘› be 2x2 matrices. Then
tr(๐‘จ1 ๐‘จ2 โˆ™ โ‹ฏ โˆ™ ๐‘จ๐‘› ) = tr(๐‘จ๐‘› ๐‘จ1 โˆ™ โ‹ฏ โˆ™ ๐‘จ๐‘›โˆ’1 ).
๐‘Ž
Proof: Let ๐‘จ1 = [
๐‘
๐‘’
๐‘
] and ๐‘จ2 = [
๐‘”
๐‘‘
๐‘“
]. Then
โ„Ž
๐‘Ž๐‘’ + ๐‘๐‘”
๐‘จ1 ๐‘จ2 = [
๐‘๐‘’ + ๐‘‘๐‘”
๐‘Ž๐‘“ + ๐‘โ„Ž
],
๐‘๐‘“ + ๐‘‘โ„Ž
so
tr(๐‘จ1 ๐‘จ2 ) = ๐‘Ž๐‘’ + ๐‘๐‘” + ๐‘๐‘“ + ๐‘‘โ„Ž.
Also,
๐‘จ2 ๐‘จ1 = [
๐‘’๐‘Ž + ๐‘“๐‘
๐‘”๐‘Ž + โ„Ž๐‘
๐‘’๐‘ + ๐‘“๐‘‘
]
๐‘”๐‘ + โ„Ž๐‘‘
has
tr(๐‘จ2 ๐‘จ1 ) = ๐‘’๐‘Ž + ๐‘“๐‘ + ๐‘”๐‘ + โ„Ž๐‘‘.
Therefore tr(๐‘จ1 ๐‘จ2 ) = tr(๐‘จ2 ๐‘จ1 ). In general, for matrices ๐‘จ1 , ๐‘จ2 , โ‹ฏ , ๐‘จ๐‘› , let
๐‘ฉ = ๐‘จ1 ๐‘จ2 โˆ™ โ‹ฏ โˆ™ ๐‘จ๐‘›โˆ’1
Then by the above calculations,
tr(๐‘ฉ๐‘จ๐‘› ) = tr(๐‘จ๐‘› ๐‘ฉ)
or
tr(๐‘จ1 ๐‘จ2 โˆ™ โ‹ฏ โˆ™ ๐‘จ๐‘› ) = tr(๐‘จ๐‘› ๐‘จ1 โˆ™ โ‹ฏ โˆ™ ๐‘จ๐‘›โˆ’1 ).
Thus the trace is invariant under cyclic permutations. โˆŽ
13
๐‘ƒ
Corollary 2.4: Let ๐‘จ1 , ๐‘จ2 , โ‹ฏ , ๐‘จ๐‘› be 2x2 matrices of the form [
1
โˆ’๐‘„
๐‘ƒ๐‘ฅ
] or [
0
1
โˆ’๐‘„๐‘ฅ
]. If
0
๐‘พ1 = ๐‘จ1 ๐‘จ2 โˆ™ โ‹ฏ โˆ™ ๐‘จ๐‘› and ๐‘พ2 = ๐‘จ๐‘› ๐‘จ1 โˆ™ โ‹ฏ โˆ™ ๐‘จ๐‘›โˆ’1 , then ๐‘“๐‘พ1 (๐‘ฅ) = ๐‘“๐‘พ2 (๐‘ฅ).
Proof: By (2.4) and Theorem 2.3,
๐‘“๐‘พ1 (๐‘ฅ) = tr(๐‘จ1 ๐‘จ2 โˆ™ โ‹ฏ โˆ™ ๐‘จ๐‘› ) โˆ’ 1 โˆ’ det(๐‘จ1 ๐‘จ2 โˆ™ โ‹ฏ โˆ™ ๐‘จ๐‘› )
= tr(๐‘จ๐‘› ๐‘จ1 โˆ™ โ‹ฏ โˆ™ ๐‘จ๐‘›โˆ’1 ) โˆ’ 1 โˆ’ det(๐‘จ๐‘› ๐‘จ1 โˆ™ โ‹ฏ โˆ™ ๐‘จ๐‘›โˆ’1 )
= ๐‘“๐‘พ2 (๐‘ฅ). โˆŽ
Fortunately, this reduces the number of cases that must be looked at by a factor of about ๐‘› when
dealing with strings of length ๐‘›.
As an example of Corollary 2.4, we saw two different matrices that led to periodic solutions for
(2.2). Let us examine ๐‘“๐‘Š (๐‘ฅ) in both of these cases. In the first example, ๐‘พ1 = ๐‘ฉ2 ๐‘จ๐‘ฉ๐‘จ2 so
3
2
โˆ’ 72๐‘ฅ
๐‘พ1 = [64๐‘ฅ + 240๐‘ฅ
2
32๐‘ฅ + 24๐‘ฅ
โˆ’48๐‘ฅ 3 + 144๐‘ฅ 2 โˆ’ 432๐‘ฅ ].
โˆ’24๐‘ฅ 2 + 144๐‘ฅ
From here, we can easily determine the trace and determinant of ๐‘พ1 . As a result,
tr ๐‘พ1 = 64๐‘ฅ 3 + 240๐‘ฅ 2 โˆ’ 72๐‘ฅ โˆ’ 24๐‘ฅ 2 + 144๐‘ฅ
= 64๐‘ฅ 3 + 216๐‘ฅ 2 + 72๐‘ฅ
and
det ๐‘พ1 = (64๐‘ฅ 3 + 240๐‘ฅ 2 โˆ’ 72๐‘ฅ)(โˆ’24๐‘ฅ 2 + 144๐‘ฅ) โˆ’ (โˆ’48๐‘ฅ 3 + 144๐‘ฅ 2 โˆ’ 432๐‘ฅ)(32๐‘ฅ 2 + 24๐‘ฅ)
= 46656๐‘ฅ 3 .
In the second example, ๐‘พ2 = ๐‘จ๐‘ฉ๐Ÿ ๐‘จ๐‘ฉ๐‘จ. Thus
3
2
๐‘พ2 = [16๐‘ฅ 3 โˆ’ 72๐‘ฅ 2 + 288๐‘ฅ
8๐‘ฅ โˆ’ 24๐‘ฅ + 72๐‘ฅ
96๐‘ฅ 3 + 432๐‘ฅ 2 โˆ’ 864๐‘ฅ].
48๐‘ฅ 3 + 288๐‘ฅ 2 โˆ’ 216๐‘ฅ
Again, we find the trace and determinant as follows:
tr ๐‘พ2 = 16๐‘ฅ 3 โˆ’ 72๐‘ฅ 2 + 288๐‘ฅ + 48๐‘ฅ 3 + 288๐‘ฅ 2 โˆ’ 216๐‘ฅ
= 64๐‘ฅ 3 + 216๐‘ฅ 2 + 72๐‘ฅ
and
14
det ๐‘พ2 = (16๐‘ฅ 3 โˆ’ 72๐‘ฅ 2 + 288๐‘ฅ)(48๐‘ฅ 3 + 288๐‘ฅ 2 โˆ’ 216๐‘ฅ)
โˆ’ (96๐‘ฅ 3 + 432๐‘ฅ 2 โˆ’ 864๐‘ฅ)(8๐‘ฅ 3 โˆ’ 24๐‘ฅ 2 + 72๐‘ฅ)
= 46656๐‘ฅ 3 .
Note that ๐‘พ1 โ‰  ๐‘พ2 . However, as expected, ๐‘“๐‘พ1 (๐‘ฅ) = ๐‘“๐‘พ2 (๐‘ฅ) since ๐‘พ1 and ๐‘พ2 have the same trace
and determinant.
Now we focus on searching for periodic solutions. Instead of attempting an exhaustive search
by looking at the total number of matrices multiplied together, consider products based on how many
times the matrix ๐‘ฉ appears in the complete product. Note, without loss of generality, we can represent
any product of ๐‘จ โ€™s and ๐‘ฉ โ€™s as the product of matrices of the form of ๐‘ฉ๐€n .
For example,
๐‘จ๐‘จ๐‘จ๐‘ฉ๐‘จ๐‘ฉ๐‘ฉ๐‘จ๐‘จ๐‘ฉ๐‘จ can be replaced by ๐‘ฉ๐‘จ1 ๐‘ฉ๐‘จ0 ๐‘ฉ๐‘จ2 ๐‘ฉ๐‘จ4 by cyclically reordering the ๐‘จโ€™s and ๐‘ฉโ€™s. In
other words, ๐‘พ = ๐‘ฉ๐‘จ๐‘›1 ๐‘ฉ๐‘จ๐‘›2 โ€ฆ ๐‘ฉ๐‘จ๐‘›๐‘˜ . It is convenient to write ๐‘พ in this form because of the facts
below.
๐‘ƒ
Lemma 2.5: If ๐‘จ = [
1
๐‘ˆ
โˆ’๐‘„
], then ๐‘จ๐‘› = [ ๐‘›+1
๐‘ˆ๐‘›
0
โˆ’๐‘„๐‘ˆ๐‘›
] where {๐‘ˆ๐‘› } is the Lucas sequence described
โˆ’๐‘„๐‘ˆ๐‘›โˆ’1
in Chapter 1.
๐‘ƒ
Proof: If ๐‘จ = [
1
๐‘ƒ3 โˆ’ 2๐‘ƒ๐‘„
โˆ’๐‘ƒ๐‘„
] and ๐‘จ3 = [ 2
โˆ’๐‘„
๐‘ƒ โˆ’๐‘„
๐‘ƒ2 โˆ’ ๐‘„
โˆ’๐‘„
], then ๐‘จ2 = [
๐‘ƒ
0
๐‘จ๐‘› = [
๐‘ˆ๐‘›+1
๐‘ˆ๐‘›
โˆ’๐‘ƒ2 ๐‘„ + ๐‘„ 2
]. Assume that
โˆ’๐‘ƒ๐‘„
โˆ’๐‘„๐‘ˆ๐‘›
]
โˆ’๐‘„๐‘ˆ๐‘›โˆ’1
for some integer ๐‘›. Then
๐‘จ๐‘›+1 = [
=[
๐‘ƒ
1
๐‘ˆ
โˆ’๐‘„
] โˆ— [ ๐‘›+1
๐‘ˆ๐‘›
0
๐‘ƒ๐‘ˆ๐‘›+1 โˆ’ ๐‘„๐‘ˆ๐‘›
๐‘ˆ๐‘›+1
โˆ’๐‘„๐‘ˆ๐‘›
]
โˆ’๐‘„๐‘ˆ๐‘›โˆ’1
โˆ’๐‘ƒ๐‘„๐‘ˆ๐‘› + ๐‘„ 2 ๐‘ˆ๐‘›โˆ’1
].
โˆ’๐‘„๐‘ˆ๐‘›
But
๐‘ˆ๐‘›+2 = ๐‘ƒ๐‘ˆ๐‘›+1 โˆ’ ๐‘„๐‘ˆ๐‘› and โˆ’๐‘„๐‘ˆ๐‘›+1 = โˆ’๐‘„(๐‘ƒ๐‘ˆ๐‘› โˆ’ ๐‘„๐‘ˆ๐‘›โˆ’1 )
so
๐‘จ๐‘›+1 = [
Corollary 2.6: If ๐€ = [
๐‘ˆ๐‘›+2
๐‘ˆ๐‘›+1
โˆ’๐‘„๐‘ˆ๐‘›+1
๐‘ˆ
]. Thus ๐‘จ๐‘› = [ ๐‘›+1
โˆ’๐‘„๐‘ˆ๐‘›
๐‘ˆ๐‘›
P โˆ’Q
๐‘ƒ๐‘ฅ
] and ๐‘ฉ = [
1 0
1
โˆ’๐‘„๐‘ˆ๐‘›
]. โˆŽ
โˆ’๐‘„๐‘ˆ๐‘›โˆ’1
๐‘ฅU
โˆ’๐‘„๐‘ฅ
], then ๐‘ฉ๐€n = [ n+2
Un+1
0
15
โˆ’Q๐‘ฅUn+1
].
โˆ’QU๐‘›
Proof: By Lemma 2.5,
๐‘ฉ๐€n = [
๐‘ƒ๐‘ฅ
1
U
โˆ’๐‘„๐‘ฅ
] โˆ— [ n+1
Un
0
=[
๐‘ƒ๐‘ฅUn+1 โˆ’ ๐‘„๐‘ฅUn
Un+1
=[
๐‘ฅUn+2
Un+1
โˆ’QUn
]
โˆ’QUnโˆ’1
โˆ’๐‘ƒ๐‘„๐‘ฅUn + ๐‘„ 2 ๐‘ฅUnโˆ’1
]
โˆ’๐‘„Un
โˆ’Q๐‘ฅUn+1
].
โˆ’QU๐‘›
Lemma 2.7: ๐‘ˆ๐‘› 2 โˆ’ ๐‘ˆ๐‘›+1 ๐‘ˆ๐‘›โˆ’1 = ๐‘„ ๐‘›โˆ’1
๐‘ˆ
Proof: Given ๐‘จ๐‘› = [ ๐‘›+1
๐‘ˆ๐‘›
โˆ’๐‘„๐‘ˆ๐‘›
], โˆ’๐‘„๐‘ˆ๐‘›+1 ๐‘ˆ๐‘›โˆ’1 + ๐‘„Un 2 = det(๐‘จ๐‘› ) = (det ๐‘จ)๐‘› = ๐‘„ ๐‘› .
โˆ’๐‘„๐‘ˆ๐‘›โˆ’1
thus Un 2 โˆ’ Un+1 Unโˆ’1 = Qnโˆ’1 . โˆŽ
16
3 The Polynomial ๐’‡๐‘พ (๐’™) When ๐‘พ Has a Small Number of ๐‘ฉโ€™s
From Corollary 2.6, we have a formula for ๐‘ฉ๐€n . By Corollary 2.4 this is the only product of
length ๐‘› + 1 with a single ๐‘ฉ that we must consider. In other words, if we are concerned with the
product ๐‘จ2 ๐‘ฉ๐‘จ3, we know from Chapter 2 that ๐‘“๐‘จ2 ๐‘ฉ๐‘จ3 (๐‘ฅ) = ๐‘“๐‘ฉ๐‘จ3 ๐‘จ2 (๐‘ฅ) = ๐‘“๐‘ฉ๐‘จ5 (๐‘ฅ). More generally, as
mentioned previously, we can write any ๐‘พ in the form ๐‘ฉ๐‘จ๐‘›1 ๐‘ฉ๐‘จ๐‘›2 โ€ฆ ๐‘ฉ๐‘จ๐‘›๐‘˜ .
As we focus on ๐‘“๐‘Š (๐‘ฅ), it is important to note some commonly occurring solutions. There are
several cases where ๐‘ฅ = 1, ๐‘ฅ = โˆ’1 or ๐‘ฅ = 0 might arise. It is easy to classify all cases of ๐‘ƒ and ๐‘„ in
which ๐‘ฅ = 1 will occur. This is because, when ๐‘ฅ = 1, ๐‘จ = ๐‘ฉ, so ๐‘พ = ๐‘ฉ๐‘จ๐‘›1 ๐‘ฉ๐‘จ๐‘›2 โ€ฆ ๐‘ฉ๐‘จ๐‘›๐‘˜ = ๐‘จ๐‘š where
๐‘š = ๐‘˜ + ๐‘›1 + ๐‘›2 + โ‹ฏ + ๐‘›๐‘˜ . We know if ๐‘1 and ๐‘2 are eigenvalues of ๐‘จ then ๐‘1๐‘š and ๐‘2๐‘š are
eigenvalues of ๐‘จ๐‘š [1, p.250]. Since ๐‘จ๐‘š must have an eigenvalue of 1, at least one of ๐‘1 and ๐‘2 must be
a root of unity. In other words, suppose, without loss of generality, ๐‘1๐‘š = 1. This brings us back to the
cases discussed in Section 2.2. There are three possible scenarios. Either ๐‘1 = 1, ๐‘1 = โˆ’1 or ๐‘1 is
complex. When ๐‘1 = 1, 1 โˆ’ ๐‘ƒ + ๐‘„ = 0 thus ๐‘ƒ = ๐‘„ + 1. When ๐‘1 = โˆ’1, ๐‘ƒ = โˆ’๐‘„ โˆ’ 1. Finally, if ๐‘1 is
complex, ๐‘2 must be itโ€™s conjugate pair. As a result, ๐‘ƒ = ๐‘1 + ๐‘2 = 2 cos(2๐œ‹๐‘—/๐‘˜) and ๐‘„ = ๐‘1 โ‹… ๐‘2 = 1.
These lead to the cases ๐‘ƒ = 0, ๐‘ƒ = 1 and ๐‘ƒ = โˆ’1, all discussed in Section 2.2. To summarize, if ๐‘พ =
๐‘จ๐‘š , then ๐‘“๐‘Š (๐‘ฅ) has ๐‘ฅ = 1 as a zero if and only if one of the following holds:
๐‘1
๐‘ƒ
๐‘„
๐‘š
1
arbitrary
๐‘ƒโˆ’1
no restrictions
โˆ’1
arbitrary โˆ’๐‘ƒ โˆ’ 1
even
๐‘’ 2๐œ‹๐‘–โ„3
โˆ’1
1
divisible by 3
๐‘–
0
1
divisible by 4
๐‘’ ๐œ‹๐‘–โ„3
1
1
divisible by 6
Unlike ๐‘ฅ = 1, it is difficult to characterize the cases where ๐‘ฅ = โˆ’1 or ๐‘ฅ = 0. More information on the
consequence of these values will be addressed in Chapter 4.
17
Since we can write ๐‘พ = ๐‘ฉ๐‘จ๐‘›1 ๐‘ฉ๐‘จ๐‘›2 โ€ฆ ๐‘ฉ๐‘จ๐‘›๐‘˜ , we can determine ๐‘“๐‘Š (๐‘ฅ) based on the number of
๐‘ฉโ€™s in the product. In general, ๐‘“๐‘Š (๐‘ฅ) is a polynomial with integer coefficients. The degree of ๐‘“๐‘Š (๐‘ฅ) is
almost always the number of ๐‘ฉโ€™s in ๐‘พ. Below are applications of this with a small number of ๐‘ฉโ€™s.
3.1 ๐’‡๐‘พ (๐’™) for Products with One ๐‘ฉ
Recall, from Corollary 2.6,
๐‘ฅU
๐‘ฉ๐€n = [ n+2
Un+1
โˆ’Q๐‘ฅUn+1
].
โˆ’QU๐‘›
Let ๐‘พ = ๐‘ฉ๐€n , then
๐‘“๐‘Š (๐‘ฅ) = tr ๐‘พ โˆ’ det ๐‘พ โˆ’ 1
= tr ๐‘พ โˆ’ det ๐‘ฉ (det ๐‘จ)๐‘› โˆ’ 1
= ๐‘ฅUn+2 โˆ’QU๐‘› โˆ’ ๐‘„๐‘ฅ(๐‘„ ๐‘› ) โˆ’ 1
= ๐‘ฅUn+2 โˆ’ ๐‘„ ๐‘›+1 ๐‘ฅโˆ’QU๐‘› โˆ’ 1.
Thus
๐‘“๐‘Š (๐‘ฅ) = ๐‘ฅ(Un+2 โˆ’ ๐‘„ ๐‘›+1 ) โˆ’ (QU๐‘› + 1).
(3.1)
Let us examine ๐‘“๐‘Š (๐‘ฅ) for some interesting values of ๐‘ƒ and ๐‘„. We know from the introduction
1
that ๐‘ˆ๐‘› = 3 (4๐‘› โˆ’ 1) when ๐‘ƒ = 5 and ๐‘„ = 4. In this case,
1
1
๐‘“๐‘Š (๐‘ฅ) = ๐‘ฅ( (4๐‘›+2 โˆ’ 1) โˆ’ 4๐‘›+1 ) โˆ’ (4 ( (4๐‘› โˆ’ 1)) + 1).
3
3
With some basic algebra, we get
1
๐‘“๐‘Š (๐‘ฅ) = (๐‘ฅ โˆ’ 1)(4๐‘›+1 โˆ’ 1).
3
18
Just as above, there are several instances where ๐‘“๐‘Š (๐‘ฅ) simplifies quite nicely. For example, when ๐‘ƒ = 2
and ๐‘„ = 1. In this case, the characteristic polynomial is ๐‘ฅ 2 โˆ’ 2๐‘ฅ + 1, thus ๐‘ฅ = 1 is a repeated
characteristic root. Using this, and the initials conditions, we get ๐‘ˆ๐‘› = ๐‘›. Therefore,
๐‘“๐‘Š (๐‘ฅ) = ๐‘ฅ(๐‘› + 2 โˆ’ 1) โˆ’ (๐‘› + 1)
= (๐‘ฅ โˆ’ 1)(๐‘› + 1) = (๐‘ฅ โˆ’ 1)๐‘ˆ๐‘›+1 .
As expected, ๐‘ฅ = 1 is always a solution when ๐‘ƒ = 2 and ๐‘„ = 1 just as it is when ๐‘ƒ = 5 and ๐‘„ = 4. In
fact, when ๐‘ƒ = ๐‘„ + 1, not only is ๐‘ฅ = 1 always a root, but there is a general form for ๐‘“๐‘Š (๐‘ฅ). When ๐‘ƒ =
๐‘„ + 1, the characteristic polynomial is ๐‘ฅ 2 โˆ’ (๐‘„ + 1)๐‘ฅ + ๐‘„. Thus ๐‘ˆ๐‘› =
๐‘„ ๐‘› โˆ’1
๐‘„โˆ’1
since the characteristic
roots are ๐‘ฅ = 1 and ๐‘ฅ = ๐‘„. We can use this information to rewrite ๐‘“๐‘Š (๐‘ฅ) as
๐‘ฅ ((
๐‘„ ๐‘›+2 โˆ’ 1
๐‘„๐‘› โˆ’ 1
) โˆ’ ๐‘„ ๐‘›+1 ) โˆ’ (๐‘„ (
) + 1).
๐‘„โˆ’1
๐‘„โˆ’1
With some algebra, we get
๐‘“๐‘Š (๐‘ฅ) =
1
(๐‘ฅ โˆ’ 1)(๐‘„ ๐‘›+1 โˆ’ 1) = (๐‘ฅ โˆ’ 1)๐‘ˆ๐‘›+1
๐‘„โˆ’1
whenever ๐‘ƒ = ๐‘„ + 1.
Another interesting case of ๐‘“๐‘Š (๐‘ฅ) occurs when ๐‘ƒ = ๐‘„ = 1. In this case, the characteristic roots
are imaginary. Therefore, it is easiest to look at the sequence which satisfies ๐‘ˆ๐‘› = ๐‘ˆ๐‘›โˆ’1 โˆ’ ๐‘ˆ๐‘›โˆ’2 . This
sequence is 0, 1, 1, 0, โˆ’1, โˆ’1, 0, 1, 1, โ€ฆ Thus we have the following table.
๐‘›
๐‘“๐‘Š (๐‘ฅ)
0
โˆ’1
1
โˆ’๐‘ฅ โˆ’ 2
2 โˆ’2๐‘ฅ โˆ’ 2
3 โˆ’2๐‘ฅ โˆ’ 1
4
โˆ’๐‘ฅ
5
0
It turns out that ๐‘จ6 = ๐ผ. As a result, ๐‘“๐ต๐ด๐‘› (๐‘ฅ) = ๐‘“๐ต๐ด๐‘›+6 (๐‘ฅ). This means one need only consider the
cases where 0 โ‰ค ๐‘› โ‰ค 5.
19
3.2 ๐’‡๐‘พ (๐’™) for Products with Two ๐‘ฉโ€™s
As mentioned above, we can look at any string of ๐‘จโ€™s and ๐‘ฉโ€™s as the product of matrices of the
form of ๐‘ฉ๐€n . For instance, the matrix representing a string of length ๐‘› + ๐‘š + 2 with two ๐‘ฉโ€™s is
๐‘ฉ๐€n ๐‘ฉ๐€๐‘š = [
=[
๐‘ฅUn+2
Un+1
โˆ’Q๐‘ฅUn+1
๐‘ฅ๐‘ˆ
] โˆ— [ ๐‘š+2
โˆ’QU๐‘›
๐‘ˆ๐‘š+1
๐‘ฅ 2 Un+2 U๐‘š+2 โˆ’Q๐‘ฅUn+1 U๐‘š+1
๐‘ฅUn+1 U๐‘š+2 โˆ’QU๐‘› U๐‘š+1
โˆ’๐‘„๐‘ฅ๐‘ˆ๐‘š+1
]
โˆ’๐‘„๐‘ˆ๐‘š
โˆ’Q๐‘ฅ 2 Un+2 U๐‘š+1 + ๐‘„ 2 ๐‘ฅUn+1 U๐‘š
].
โˆ’Q๐‘ฅUn+1 U๐‘š+1 + ๐‘„ 2 Un U๐‘š
Here, we let ๐‘พ = ๐‘ฉ๐€n ๐‘ฉ๐€๐‘š and can again easily find ๐‘“๐‘Š (๐‘ฅ). Using Lemma 2.7 we get
๐‘“๐‘Š (๐‘ฅ) = ๐‘ฅ 2 (Un+2 U๐‘š+2 โˆ’ ๐‘„ ๐‘›+๐‘š+2 ) โˆ’ ๐‘ฅ(2๐‘„Un+1 U๐‘š+1 ) + (๐‘„ 2 Un U๐‘š โˆ’ 1).
(3.2)
Again, let us examine ๐‘“๐‘Š (๐‘ฅ) for certain values of ๐‘ƒ and ๐‘„. From above, we know ๐‘ˆ๐‘› = ๐‘› when
๐‘ƒ = 2 and ๐‘„ = 1. Therefore,
๐‘“๐‘Š (๐‘ฅ) = ๐‘ฅ 2 [(๐‘› + 2)(๐‘š + 2) โˆ’ 1] โˆ’ ๐‘ฅ[2(๐‘› + 1)(๐‘š + 1)] + (๐‘›๐‘š โˆ’ 1).
Also mentioned previously, we know ๐‘ฅ = 1 must be a solution to this. With some algebra, we get
๐‘“๐‘Š (๐‘ฅ) = (x โˆ’ 1)[๐‘ฅ(๐‘›๐‘š + 2๐‘› + 2๐‘š + 3) โˆ’ ๐‘›๐‘š + 1].
Once again, we can use the fact that ๐‘ƒ = ๐‘„ + 1 to find a nice formula for ๐‘“๐‘Š (๐‘ฅ). As a reminder, in this
case, ๐‘ˆ๐‘› =
๐‘„ ๐‘› โˆ’1
.
๐‘„โˆ’1
With substitution, we get
๐‘“๐‘Š (๐‘ฅ) = ๐‘ฅ 2 ((
๐‘„ ๐‘›+2 โˆ’ 1 ๐‘„ ๐‘š+2 โˆ’ 1
๐‘„ ๐‘›+1 โˆ’ 1 ๐‘„ ๐‘š+1 โˆ’ 1
)(
) โˆ’ ๐‘„ ๐‘›+๐‘š+2 ) โˆ’ ๐‘ฅ (2๐‘„ (
)(
))
๐‘„โˆ’1
๐‘„โˆ’1
๐‘„โˆ’1
๐‘„โˆ’1
+ (๐‘„ 2 (
๐‘„๐‘› โˆ’ 1 ๐‘„๐‘š โˆ’ 1
)(
) โˆ’ 1).
๐‘„โˆ’1
๐‘„โˆ’1
As noted above, we know ๐‘ฅ = 1 is a factor, therefore we can factor and simplify ๐‘“๐‘Š (๐‘ฅ) to
1
(๐‘ฅ โˆ’ 1)[๐‘ฅ((2๐‘„ โˆ’ 1)๐‘„ ๐‘›+๐‘š+2 โˆ’ ๐‘„ ๐‘›+2 โˆ’ ๐‘„ ๐‘š+2 + 1) โˆ’ (๐‘„ ๐‘›+๐‘š+2 โˆ’ ๐‘„ ๐‘›+2 โˆ’ ๐‘„ ๐‘š+2 + 2๐‘„ โˆ’ 1)].
(๐‘„ โˆ’ 1)2
20
In the case with one ๐‘ฉ, we saw the six possible values for ๐‘“๐‘Š (๐‘ฅ) when ๐‘ƒ = 1 and ๐‘„ = 1. When
we increase to two ๐‘ฉโ€˜s the number of possibilities increases to 21. A sample of these cases is below.
๐‘›
๐‘š
๐‘“๐‘Š (๐‘ฅ)
0
0
โˆ’2๐‘ฅ โˆ’ 1
1
0
โˆ’๐‘ฅ 2 โˆ’ 2๐‘ฅ โˆ’ 1
2
2
0
3
2
โˆ’1
4
2
โˆ’๐‘ฅ 2 โˆ’ 2
5
3
โˆ’2๐‘ฅ 2 โˆ’ 1
3.3 ๐’‡๐‘พ (๐’™) for Products with Three ๐‘ฉโ€™s
If there are three ๐‘ฉโ€™s, we can write ๐‘พ in the form ๐‘ฉ๐€n ๐‘ฉ๐€๐‘š ๐‘ฉ๐€k. In this case,
๐‘พ=[
๐‘ฅ 2 Un+2 U๐‘š+2 โˆ’Q๐‘ฅUn+1 U๐‘š+1
๐‘ฅUn+1 U๐‘š+2 โˆ’QU๐‘› U๐‘š+1
โˆ’Q๐‘ฅ 2 Un+2 U๐‘š+1 + ๐‘„ 2 ๐‘ฅUn+1 U๐‘š
๐‘ฅ๐‘ˆ
] โˆ— [ ๐‘˜+2
๐‘ˆ๐‘˜+1
โˆ’Q๐‘ฅUn+1 U๐‘š+1 + ๐‘„ 2 Un U๐‘š
โˆ’๐‘„๐‘ฅ๐‘ˆ๐‘˜+1
].
โˆ’๐‘„๐‘ˆ๐‘˜
Therefore,
๐‘Ž
๐‘พ=[
๐‘
๐‘
]
๐‘‘
where
๐‘Ž = ๐‘ฅ 3 Un+2 U๐‘š+2 ๐‘ˆ๐‘˜+2 โˆ’Q๐‘ฅ 2 Un+1 U๐‘š+1 ๐‘ˆ๐‘˜+2 โˆ’Q๐‘ฅ 2 Un+2 U๐‘š+1 ๐‘ˆ๐‘˜+1 + ๐‘„ 2 ๐‘ฅUn+1 U๐‘š ๐‘ˆ๐‘˜+1 ,
๐‘ = โˆ’๐‘„๐‘ฅ 3 Un+2 U๐‘š+2 U๐‘˜+1 + Q2 ๐‘ฅ 2 Un+1 U๐‘š+1 U๐‘˜+1 +Q2 ๐‘ฅ 2 Un+2 U๐‘š+1 U๐‘˜ โˆ’ ๐‘„ 3 ๐‘ฅUn+1 U๐‘š U๐‘˜ ,
๐‘ = ๐‘ฅ 2 Un+1 U๐‘š+2 ๐‘ˆ๐‘˜+2 โˆ’Q๐‘ฅU๐‘› U๐‘š+1 ๐‘ˆ๐‘˜+2 โˆ’Q๐‘ฅUn+1 U๐‘š+1 ๐‘ˆ๐‘˜+1 + ๐‘„ 2 Un U๐‘š ๐‘ˆ๐‘˜+1 ,
๐‘‘ = โˆ’๐‘„๐‘ฅ 2 Un+1 U๐‘š+2 ๐‘ˆ๐‘˜+1 +Q2 ๐‘ฅU๐‘› U๐‘š+1 ๐‘ˆ๐‘˜+1 +Q2 ๐‘ฅUn+1 U๐‘š+1 U๐‘˜ โˆ’ ๐‘„ 3 Un U๐‘š U๐‘˜ .
This gives us
21
๐‘“๐‘Š (๐‘ฅ) = ๐‘ฅ 3 (Un+2 U๐‘š+2 U๐‘˜+2 โˆ’ ๐‘„ ๐‘›+๐‘š+๐‘˜+3 )
โˆ’ ๐‘ฅ ๐‘„(Un+2 U๐‘š+1 ๐‘ˆ๐‘˜+1 + Un+1 U๐‘š+2 ๐‘ˆ๐‘˜+1 + Un+1 U๐‘š+1 ๐‘ˆ๐‘˜+2 )
+ ๐‘ฅ๐‘„ 2 (Un U๐‘š+1 ๐‘ˆ๐‘˜+1 + Un+1 U๐‘š ๐‘ˆ๐‘˜+1 + Un+1 U๐‘š+1 ๐‘ˆ๐‘˜ )
โˆ’ (๐‘„ 3 Un U๐‘š ๐‘ˆ๐‘˜ + 1).
2
(3.3)
Again, let us take a look at ๐‘“๐‘Š (๐‘ฅ) when ๐‘ƒ = 2 and ๐‘„ = 1. Recall, in this case ๐‘ˆ๐‘› = ๐‘› thus
๐‘“๐‘Š (๐‘ฅ) = ๐‘ฅ 3 ((๐‘› + 2)(๐‘š + 2)(๐‘˜ + 2) โˆ’ 1)
โˆ’ ๐‘ฅ 2 ((๐‘› + 2)(๐‘š + 1)(๐‘˜ + 1) + (๐‘› + 1)(๐‘š + 2)(๐‘˜ + 1) + (๐‘› + 1)(๐‘š + 1)(๐‘˜ + 2))
+ ๐‘ฅ((๐‘›)(๐‘š + 1)(๐‘˜ + 1) + (๐‘› + 1)(๐‘š)(๐‘˜ + 1) + (๐‘› + 1)(๐‘š + 1)(๐‘˜)) โˆ’ (๐‘›๐‘š๐‘˜ + 1).
As before, ๐‘ฅ = 1 must be a root, therefore
๐‘“๐‘Š (๐‘ฅ) = (๐‘ฅ โˆ’ 1)(๐‘ฅ 2 (๐‘›๐‘š๐‘˜ + 2๐‘š๐‘› + 2๐‘š๐‘˜ + 2๐‘›๐‘˜ + 4๐‘› + 4๐‘š + 4๐‘˜ + 7)
โˆ’ ๐‘ฅ(2๐‘›๐‘š๐‘˜ + 2๐‘š๐‘› + 2๐‘š๐‘˜ + 2๐‘›๐‘˜ + ๐‘› + ๐‘š + ๐‘˜ โˆ’ 1) + ๐‘›๐‘š๐‘˜ + 1).
3.4 ๐’‡๐‘พ (๐’™) for Products with Four ๐‘ฉโ€™s
As you can see, we are able to continue this process for any number of ๐‘ฉโ€™s. As mentioned
previously, the degree of ๐‘“๐‘Š (๐‘ฅ) is usually the number of ๐‘ฉโ€™s in ๐‘พ. Consequently, the larger the number
of ๐‘ฉโ€™s in the product, the more complicated ๐‘“๐‘Š (๐‘ฅ) will be. For example, when ๐‘พ = ๐‘ฉ๐€n ๐‘ฉ๐€๐‘š ๐‘ฉ๐€k ๐‘ฉ๐€j
we have
tr ๐‘พ = ๐‘ฅ 4 (Un+2 U๐‘š+2 ๐‘ˆ๐‘˜+2 ๐‘ˆ๐‘—+2 )
โˆ’ ๐‘ฅ 3 ๐‘„(Un+1 U๐‘š+1 ๐‘ˆ๐‘˜+2 ๐‘ˆ๐‘—+2 + Un+2 U๐‘š+1 ๐‘ˆ๐‘˜+1 ๐‘ˆ๐‘—+2 + Un+2 U๐‘š+2 U๐‘˜+1 ๐‘ˆ๐‘—+1
+ Un+1 U๐‘š+2 ๐‘ˆ๐‘˜+2 ๐‘ˆ๐‘—+1 )
+ ๐‘ฅ 2 ๐‘„ 2 (Un+1 U๐‘š ๐‘ˆ๐‘˜+1 ๐‘ˆ๐‘—+2 + 2Un+1 U๐‘š+1 U๐‘˜+1 ๐‘ˆ๐‘—+1 + Un+2 U๐‘š+1 U๐‘˜ ๐‘ˆ๐‘—+1
+ U๐‘› U๐‘š+1 ๐‘ˆ๐‘˜+2 ๐‘ˆ๐‘—+1 + Un+1 U๐‘š+2 ๐‘ˆ๐‘˜+1 ๐‘ˆ๐‘— )
โˆ’ ๐‘ฅ๐‘„ 3 (Un+1 U๐‘š U๐‘˜ ๐‘ˆ๐‘—+1 + Un U๐‘š ๐‘ˆ๐‘˜+1 ๐‘ˆ๐‘—+1 + U๐‘› U๐‘š+1 ๐‘ˆ๐‘˜+1 ๐‘ˆ๐‘— + Un+1 U๐‘š+1 U๐‘˜ ๐‘ˆ๐‘— )
+ ๐‘„ 4 U๐‘› U๐‘š U๐‘˜ ๐‘ˆ๐‘—
and
det ๐‘พ = ๐‘„ ๐‘›+๐‘š+๐‘˜+๐‘—+4 ๐‘ฅ 4 .
Therefore,
22
๐‘“๐‘Š (๐‘ฅ) = ๐‘ฅ 4 (Un+2 U๐‘š+2 ๐‘ˆ๐‘˜+2 ๐‘ˆ๐‘—+2 โˆ’ ๐‘„ ๐‘›+๐‘š+๐‘˜+๐‘—+4 )
โˆ’ ๐‘ฅ 3 ๐‘„(Un+1 U๐‘š+1 ๐‘ˆ๐‘˜+2 ๐‘ˆ๐‘—+2 + Un+2 U๐‘š+1 ๐‘ˆ๐‘˜+1 ๐‘ˆ๐‘—+2
+ Un+2 U๐‘š+2 U๐‘˜+1 ๐‘ˆ๐‘—+1 + Un+1 U๐‘š+2 ๐‘ˆ๐‘˜+2 ๐‘ˆ๐‘—+1 )
+ ๐‘ฅ 2 ๐‘„ 2 (Un+1 U๐‘š ๐‘ˆ๐‘˜+1 ๐‘ˆ๐‘—+2 + 2Un+1 U๐‘š+1 U๐‘˜+1 ๐‘ˆ๐‘—+1
+ Un+2 U๐‘š+1 U๐‘˜ ๐‘ˆ๐‘—+1 + U๐‘› U๐‘š+1 ๐‘ˆ๐‘˜+2 ๐‘ˆ๐‘—+1 + Un+1 U๐‘š+2 ๐‘ˆ๐‘˜+1 ๐‘ˆ๐‘— )
โˆ’ ๐‘ฅ๐‘„ 3 (Un+1 U๐‘š U๐‘˜ ๐‘ˆ๐‘—+1 + Un U๐‘š ๐‘ˆ๐‘˜+1 ๐‘ˆ๐‘—+1 + U๐‘› U๐‘š+1 ๐‘ˆ๐‘˜+1 ๐‘ˆ๐‘—
+ Un+1 U๐‘š+1 U๐‘˜ ๐‘ˆ๐‘— ) + (๐‘„ 4 U๐‘› U๐‘š U๐‘˜ ๐‘ˆ๐‘— โˆ’ 1).
(3.4)
Just as above, we examine ๐‘“๐‘Š (๐‘ฅ) for a case where we know ๐‘ฅ = 1 will occur. Using the fact
that ๐‘ˆ๐‘› = ๐‘› when ๐‘ƒ = 2 and ๐‘„ = 1, we can rewrite ๐‘“๐‘Š (๐‘ฅ) as
๐‘ฅ 4 ((n + 2)(๐‘š + 2)(๐‘˜ + 2)(๐‘— + 2) โˆ’ 1)
โˆ’ ๐‘ฅ 3 ((n + 1)(๐‘š + 1)(๐‘˜ + 2)(๐‘— + 2) + (n + 2)(๐‘š + 1)(๐‘˜ + 1)(๐‘— + 2)
+ (n + 2)(๐‘š + 2)(๐‘˜ + 1)(๐‘— + 1) + (n + 1)(๐‘š + 2)(๐‘˜ + 2)(๐‘— + 1)) + ๐‘ฅ 2 ((n
+ 1)(๐‘š)(๐‘˜ + 1)(๐‘— + 2) + 2(n + 1)(๐‘š + 1)(๐‘˜ + 1)(๐‘— + 1) + (n + 2)(๐‘š + 1)(๐‘˜)(๐‘—
+ 1) + (๐‘›)(๐‘š + 1)(๐‘˜ + 2)(๐‘— + 1) + (n + 1)(๐‘š + 2)(๐‘˜ + 1)(๐‘—) )
โˆ’ ๐‘ฅ((n + 1)(๐‘š)(๐‘˜)(๐‘— + 1) + (n)(๐‘š)(๐‘˜ + 1)(๐‘— + 1) + (๐‘›)(๐‘š + 1)(๐‘˜ + 1)(๐‘—) + (n
+ 1)(๐‘š + 1)(๐‘˜)(๐‘—)) + (๐‘›๐‘š๐‘˜๐‘— โˆ’ 1).
As mentioned previously, we know ๐‘ฅ = 1 is a root in this case. Therefore, we can factor ๐‘“๐‘Š (๐‘ฅ) in to
(๐‘ฅ โˆ’ 1)(๐‘ฅ 3 (๐‘›๐‘š๐‘˜๐‘— + 2๐‘›๐‘š๐‘˜ + 2๐‘›๐‘š๐‘— + 2๐‘›๐‘—๐‘˜ + 2๐‘š๐‘˜๐‘— + 4๐‘›๐‘š + 4๐‘›๐‘˜ + 4๐‘›๐‘— + 4๐‘š๐‘˜ + 4๐‘š๐‘— + 4๐‘˜๐‘— + 8๐‘›
+ 8๐‘š + 8๐‘˜ + 8๐‘— + 15)
โˆ’ ๐‘ฅ 2 (3๐‘›๐‘š๐‘˜๐‘— + 4๐‘›๐‘š๐‘˜ + 4๐‘›๐‘š๐‘— + 4๐‘›๐‘˜๐‘— + 4๐‘š๐‘˜๐‘— + 5๐‘›๐‘š + 4๐‘›๐‘˜ + 5๐‘›๐‘— + 5๐‘š๐‘˜ + 4๐‘š๐‘—
+ 5๐‘˜๐‘— + 4๐‘› + 4๐‘š + 4๐‘˜ + 4๐‘— + 1)
+ ๐‘ฅ(3๐‘›๐‘š๐‘˜๐‘— + 2๐‘›๐‘š๐‘˜ + 2๐‘›๐‘š๐‘— + 2๐‘›๐‘˜๐‘— + 2๐‘š๐‘˜๐‘— + ๐‘›๐‘š + ๐‘›๐‘— + ๐‘š๐‘˜ + ๐‘˜๐‘— + 1) โˆ’ ๐‘›๐‘š๐‘˜๐‘—
+ 1).
23
4 Results
Using the functions found in Chapter 3, we can now look for periodic solutions associated with
๐‘พ where ๐‘พ has a specific number of ๐‘ฉโ€™s. Below we address the ๐‘ฅ value and initial conditions that we
expect to lead to periodic solutions. Recall, as mentioned previously, the initial conditions which allow
for periodic behavior can be found from the eigenvector.
๐‘Ž
In general, if ๐‘จ = [
๐‘
๐‘
] has 1 as an
๐‘‘
1โˆ’๐‘‘
eigenvalue, then [
] is an eigenvector, unless ๐‘ = 0 and ๐‘‘ = 1. We will use this to find the initial
๐‘
conditions for cases with a small number of ๐‘ฉโ€™s below. In all of these cases, Mathematica was used to
solve for ๐‘ฅ given a specific ๐‘ƒ and ๐‘„ and then calculate the initial conditions as defined below. Finally, as
mentioned previously, Theorem 2.2 is necessary but not sufficient to achieve periodic behavior.
Therefore, results were tested to verify that they did indeed lead to periodic solutions. The results of
this search are also included below.
As mentioned previously, there are three commonly occurring ๐‘ฅ values which must be
addressed. These three values are ๐‘ฅ = 1, ๐‘ฅ = โˆ’1, and ๐‘ฅ = 0. In Chapter 3 we addressed what we can
say about the occurrence of these values, here we will address the consequence of their occurrence.
First, when ๐‘ฅ = 1, the solution is already periodic. In this instance, (1.6) would simply become (1.1).
These were the linear cases addressed in Section 2.2. Similar to ๐‘ฅ = 1, when ๐‘ฅ = โˆ’1, the recurrence
would merely be ๐‘Ž๐‘› = โˆ’๐‘ƒ๐‘Ž๐‘›โˆ’1 + ๐‘„๐‘Ž๐‘›โˆ’2 . As mentioned in Section 2.2, this would have a periodic
solution with a period half the length of ๐‘Ž๐‘› = ๐‘ƒ๐‘Ž๐‘›โˆ’1 + ๐‘„๐‘Ž๐‘›โˆ’2 . Again, these were the linear cases
addressed in Section 2.2. In the case where ๐‘ฅ = 0, we would receive the trivial solution ๐‘Ž0 , ๐‘Ž1 , 0, 0, 0, โ€ฆ
Therefore, these cases were uninteresting to our overall search and were therefore disregarded. Also, it
seems likely that the only time periodic behavior is possible is when |๐‘ฅ| < 1. While we did not prove
this, there were no cases in our research in which a periodic solution had |๐‘ฅ| > 1.
24
4.1 Products with One ๐‘ฉ
Recall, we are interested in the ๐‘ฅ values for which ๐‘“๐‘Š (๐‘ฅ) = 0. Therefore, we solve
๐‘ฅ(Un+2 โˆ’ ๐‘„ ๐‘›+1 ) โˆ’ (QU๐‘› + 1) = 0
for ๐‘ฅ. Thus for fixed ๐‘ƒ and ๐‘„, we need ๐‘ฅ = ๐‘ˆ
1+๐‘„๐‘ˆ๐‘›
๐‘›+2 โˆ’๐‘„
๐‘›+1
to allow for periodic behavior. Also, as discussed
above, since
๐‘พ=[
๐‘ฅUn+2
Un+1
โˆ’Q๐‘ฅUn+1
],
โˆ’QU๐‘›
an eigenvector with eigenvalue 1 is
[
1+๐‘„๐‘ˆ๐‘›
๐‘›+1
๐‘›+2 โˆ’๐‘„
Thus when ๐‘ฅ = ๐‘ˆ
QU๐‘› + 1
].
Un+1
, ๐‘Ž0 = Un+1 and ๐‘Ž1 = QU๐‘› + 1 it is possible to achieve periodic solutions.
Note that in order for ๐‘ฅ to be defined we need ๐‘ˆ๐‘›+2 โ‰  ๐‘„ ๐‘›+1 . In our search, ๐‘ฅ was rarely undefined.
There were two scenarios where this occurred. The first is when ๐‘ƒ = ๐‘„ = 1. In this case, ๐‘ฅ is undefined
when ๐‘› = 0 and ๐‘› = 5, as can be seen in the table in Section 3.1. Recall, as mentioned previously, we
only need to consider 0 โ‰ค ๐‘› โ‰ค 5 in this case. The second problematic case occurs when ๐‘ƒ = ๐‘„ and ๐‘› =
0. This causes ๐‘ˆ๐‘›+2 = ๐‘„ ๐‘›+1 and thus ๐‘ฅ is undefined. We ignored the cases where ๐‘ฅ was undefined.
As a reminder, in this search, we restrict ๐‘ƒ and ๐‘„ such that 1 โ‰ค ๐‘ƒ โ‰ค 20 and โˆ’20 โ‰ค ๐‘„ โ‰ค 20 and
๐‘„ โ‰  0. Furthermore, as mentioned before, the ๐‘ƒ = ๐‘„ = 1 case was frequently problematic. Therefore,
from now on we will disregard this case. Often, we considered only products with 0 โ‰ค ๐‘› โ‰ค 30.
However, occasionally that limit was expanded to search for possible patterns. Given our restrictions
above, there are 24,764 cases to be considered. Ignoring the cases where ๐‘ฅ = 1, ๐‘ฅ = โˆ’1 or ๐‘ฅ = 0,
there are 23,836 cases remaining. Of these, only 48 do not lead to periodic solutions. Below is a table
outlining these cases.
๐‘ท, ๐‘ธ
๐’
๐’‚๐ŸŽ , ๐’‚๐Ÿ
๐’™
๐‘ƒ, ๐‘ƒ
1
๐‘ƒ, ๐‘ƒ + 1
โˆ’(๐‘ƒ + 1)โ„๐‘ƒ
๐‘ƒ, โˆ’๐‘ƒ (๐‘ƒ โ‰  1)
1
๐‘ƒ, โˆ’(๐‘ƒ โˆ’ 1)
โˆ’(๐‘ƒ โˆ’ 1)โ„๐‘ƒ
3, โˆ’3
5
81, โˆ’64
โˆ’8โ„27
25
4, 6
2
2, 5
โˆ’1โ„8
6, 3
3
9, 5
1โ„9
8, โˆ’8
3
128, โˆ’115
โˆ’23โ„64
9, 11
5
24, 35
โˆ’1โ„35
10, 10
5
1000, 1127
โˆ’161โ„1000
10, 12
2
8, 11
โˆ’1โ„8
11, โˆ’11
5
12, 14
2
10, 13
โˆ’1โ„8
18, 20
2
16, 19
โˆ’1โ„8
1331, โˆ’1228 โˆ’307โ„1331
Table 4.1
1
Consider the entries in Table 4.1 where ๐‘› = 2. We noticed that in all of these cases ๐‘ฅ = โˆ’ 8. As
a result, we believe when ๐‘ƒ โ‰ก 2(๐‘š๐‘œ๐‘‘ 8) or ๐‘ƒ โ‰ก 4(๐‘š๐‘œ๐‘‘ 8), ๐‘„ = ๐‘ƒ + 2 and ๐‘› = 2 there will not be a
periodic solution. An explanation for this is given in Section 5.1. There is one case where there is a
solution which is actually periodic, yet not as expected. When ๐‘ƒ = 2, ๐‘„ = โˆ’2 and ๐‘› = 1 our method
1
gives us ๐‘ฅ = โˆ’ 2 and suggests that starting with ๐‘Ž0 = 2 and ๐‘Ž1 = โˆ’1 should lead to a periodic solution
with period two. Instead, the result is actually 2, โˆ’1, โˆ’1, 2, โˆ’1, โ€ฆ which is periodic, but with period
three rather than the expected period of two.
4.2 Products with Two ๐‘ฉโ€™s
Recall, generally, the degree of ๐‘“๐‘Š (๐‘ฅ) is the number of ๐‘ฉโ€™s in ๐‘พ. Since ๐‘พ = ๐‘ฉ๐‘จ๐‘› ๐‘ฉ๐‘จ๐‘š , our
formula for ๐‘“๐‘Š (๐‘ฅ) is now a quadratic.
Therefore, instead of finding a specific formula for ๐‘ฅ ,
Mathematica was used to solve for ๐‘ฅ given a specific ๐‘ƒ, ๐‘„, ๐‘š, and ๐‘›. Just as in the One ๐‘ฉ case, we use
the eigenvector to determine the initial conditions. Recall from Section 3.2, that
๐‘ฅ 2 Un+2 U๐‘š+2 โˆ’Q๐‘ฅUn+1 U๐‘š+1
๐‘พ=[
๐‘ฅUn+1 U๐‘š+2 โˆ’QU๐‘› U๐‘š+1
โˆ’Q๐‘ฅ 2 Un+2 U๐‘š+1 + ๐‘„ 2 ๐‘ฅUn+1 U๐‘š
].
โˆ’Q๐‘ฅUn+1 U๐‘š+1 + ๐‘„ 2 Un U๐‘š
From the introduction to this chapter, we know that
[
Q๐‘ฅUn+1 U๐‘š+1 โˆ’ ๐‘„ 2 Un U๐‘š + 1
]
๐‘ฅUn+1 U๐‘š+2 โˆ’QU๐‘› U๐‘š+1
26
is an eigenvector with eigenvalue 1 .
Unlike the One ๐‘ฉ case, we cannot simply take ๐‘Ž0 =
๐‘ฅUn+1 U๐‘š+2 โˆ’QU๐‘› U๐‘š+1 and ๐‘Ž1 = Q๐‘ฅUn+1 U๐‘š+1 โˆ’ ๐‘„ 2 Un U๐‘š + 1 .
This is because ๐‘ฅ is a rational
number, yet we want integers for our initial conditions. Consequently, Mathematica was used to
determine the eigenvector and properly scale it so that the initial conditions are always integers.
As mentioned in Chapter 3, there are times where ๐‘ฅ = 1, ๐‘ฅ = โˆ’1 or ๐‘ฅ = 0 can occur. However,
unlike the single ๐‘ฉ case, when there are two ๐‘ฉโ€™s there is an additional solution for ๐‘ฅ in all of these cases
since ๐‘“๐‘Š (๐‘ฅ) is a quadratic. To determine what the remaining ๐‘ฅ value is for each case, consider the
generic polynomial ๐‘Ž๐‘ฅ 2 + ๐‘๐‘ฅ + ๐‘. Let ๐‘Ÿ1 and ๐‘Ÿ2 denote the roots of this polynomial. From Vietaโ€™s
formulas we can relate these roots and the coefficients of the polynomial. Therefore, we know ๐‘Ÿ1 +
๐‘
๐‘
๐‘Ÿ2 = โˆ’ ๐‘Ž. Since we know one of the roots, we subtract ๐‘Ÿ2 to get ๐‘Ÿ1 = โˆ’ ๐‘Ž โˆ’ ๐‘Ÿ2 . Thus when ๐‘ฅ = 1, the
remaining solution is
๐‘ฅ=
2๐‘„Un+1 U๐‘š+1
โˆ’ 1.
Un+2 U๐‘š+2 โˆ’ ๐‘„ ๐‘›+๐‘š+2
Similarly, when ๐‘ฅ = โˆ’1, the other solution is
๐‘ฅ=
2๐‘„Un+1 U๐‘š+1
+ 1.
Un+2 U๐‘š+2 โˆ’ ๐‘„ ๐‘›+๐‘š+2
Finally, when ๐‘ฅ = 0, the remaining solution is
๐‘ฅ=
2๐‘„Un+1 U๐‘š+1
.
Un+2 U๐‘š+2 โˆ’ ๐‘„ ๐‘›+๐‘š+2
Another case where we know the quadratic will factor is when ๐‘› = ๐‘š, with ๐‘พ = (๐‘ฉ๐‘จ๐‘› )2.
Recall if ๐‘1 and ๐‘2 are eigenvalues of ๐‘พ then ๐‘1๐‘š and ๐‘2๐‘š are eigenvalues of ๐‘พ๐‘š . Therefore, if 1 is an
eigenvalue of ๐‘ฉ๐‘จ๐‘› then 1 is also an eigenvalue of (๐‘ฉ๐‘จ๐‘› )2 . This means that the ๐‘ฅ value from the One ๐‘ฉ
case will be one of the solutions to ๐‘“๐‘Š (๐‘ฅ) in the Two ๐‘ฉ case. Therefore, we are able to find an explicit
formula for the second root. As mentioned above, we are interested in the cases where ๐‘› = ๐‘š, thus
๐‘“๐‘Š (๐‘ฅ) = ๐‘ฅ 2 (Un+2 2 โˆ’ ๐‘„ 2๐‘›+2 ) โˆ’ ๐‘ฅ(2๐‘„Un+1 2 ) + (๐‘„ 2 Un 2 โˆ’ 1).
We can use Lemma 2.7 to rewrite ๐‘“๐‘Š (๐‘ฅ) as
๐‘ฅ 2 (Un+2 2 โˆ’ ๐‘„ 2๐‘›+2 ) โˆ’ ๐‘ฅ(2๐‘„(๐‘„ ๐‘› + ๐‘ˆ๐‘›+2 ๐‘ˆ๐‘› )) + (๐‘„ 2 Un 2 โˆ’ 1).
27
From here, we can easily factor ๐‘“๐‘Š (๐‘ฅ). Thus we have
๐‘“๐‘Š (๐‘ฅ) = ((๐‘ˆ๐‘›+2 โˆ’ ๐‘„ ๐‘›+1 )๐‘ฅ โˆ’ (๐‘„๐‘ˆ๐‘› + 1))((๐‘ˆ๐‘›+2 + ๐‘„ ๐‘›+1 )๐‘ฅ โˆ’ (๐‘„๐‘ˆ๐‘› โˆ’ 1)).
As a reminder, the solution from the One ๐‘ฉ case is ๐‘ฅ = ๐‘ˆ
๐‘„๐‘ˆ๐‘› +1
๐‘›+2 โˆ’๐‘„
๐‘ฅ=
๐‘›+1
. Therefore, we have
๐‘„๐‘ˆ๐‘› โˆ’ 1
๐‘ˆ๐‘›+2 + ๐‘„ ๐‘›+1
as the second root when ๐‘พ = (๐‘ฉ๐‘จ๐‘› )๐Ÿ . In this case, the initial conditions are ๐‘Ž0 = ๐‘ˆ๐‘›+1 and ๐‘Ž1 =
๐‘„๐‘ˆ๐‘› โˆ’ 1.
Since we know the product (๐‘ฉ๐‘จ๐‘› )๐Ÿ has two clearly defined ๐‘ฅ values, we expect there to
frequently be two periodic solutions when ๐‘› = ๐‘š. We found some cases where there is only one
solution. To begin with, all of the cases in Table 4.1, that do not lead to periodic behavior in the One ๐‘ฉ
case, attribute to a missing solution in the Two ๐‘ฉ case. Additionally, when ๐‘› = 1, ๐‘ƒ is arbitrary and ๐‘„ =
1 or ๐‘„ = โˆ’1, ๐‘ฅ = 0 is one of the roots, thus there is only one ๐‘ฅ value used to look for a periodic
solution. Additionally, two new patterns arose. Finally, there was one outlier. These cases are listed in
the table below.
๐‘ƒ
๐‘„
๐‘พ
2
1
(๐‘ฉ๐‘จ4๐‘˜+1 )๐Ÿ , ๐‘˜ โˆˆ โ„ค
(๐‘ฉ๐‘จ2 )๐Ÿ
4(๐‘š๐‘œ๐‘‘ 8) or 6(๐‘š๐‘œ๐‘‘ 8) โˆ’๐‘ƒ + 2
5
(๐‘ฉ๐‘จ3 )๐Ÿ
โˆ’7
๐‘Ž0 , ๐‘Ž1
๐‘ฅ
๐‘˜
๐‘˜+1
1
๐‘ƒ + 2, 1 โˆ’ ๐‘ƒ
โˆ’
8
1
13, โˆ’15
โˆ’
16
4๐‘˜ + 2, 4๐‘˜
By Corollary 2.4, ๐‘พ = ๐‘ฉ๐€n ๐‘ฉ๐€๐‘š and ๐‘พ = ๐‘ฉ๐€๐‘š ๐‘ฉ๐€n have the same function ๐‘“๐‘Š (๐‘ฅ). Therefore,
without loss of generality, we can restrict our search to cases with ๐‘› โ‰ฅ ๐‘š. Furthermore, as mentioned
previously, the ๐‘ƒ = ๐‘„ = 1 case was frequently problematic. Therefore, as before, we will disregard this
case. There are 396,304 possible combinations of ๐‘ƒ, ๐‘„, ๐‘š, and ๐‘› given our restrictions. Of these,
๐‘“๐‘Š (๐‘ฅ) does not factor in 356,988 cases. Of the 39,316 remaining cases which factor, there are 63,618
๐‘ฅ values with ๐‘ฅ โ‰  โˆ’1, 0, 1.
These ๐‘ฅ values lead to 62,975 periodic solutions.
where a rational ๐‘ฅ value does not lead to periodic behavior.
28
There are 643 cases
As mentioned earlier, we can characterize when ๐‘ฅ = 1 is a root. Previously, we determined that
๐‘ฅ = 1 occurs when ๐‘ƒ = ๐‘„ + 1 and ๐‘ƒ = โˆ’๐‘„ โˆ’ 1. We know that in these cases there will be a second
solution. In fact, there are 14,367 occurrences of ๐‘ฅ = โˆ’1, 0, 1. Of these, only 30 of the subsequent ๐‘ฅ
values do not lead to periodic behavior. This only appears to happen when ๐‘ƒ = 2 and ๐‘„ = 1. Of these
cases, there appears to be a pattern, however we were unable to decipher exactly what it is. However,
after finding ๐‘“๐‘Š (๐‘ฅ) in Section 3.2, specifically when ๐‘ƒ = 2 and ๐‘„ = 1, we are able to state exactly what
the second ๐‘ฅ value is. In this case, our second root is ๐‘ฅ =
๐‘›๐‘šโˆ’1
.
๐‘›๐‘š+2๐‘›+2๐‘š+3
For this ๐‘ฅ value, the initial
conditions become ๐‘Ž0 = ๐‘š๐‘› + 2๐‘š + 1 and ๐‘Ž1 = ๐‘š๐‘› โˆ’ 1.
4.3 Products with Three ๐‘ฉโ€™s
Just as before, we need to solve for ๐‘ฅ and the initial conditions. Since ๐‘“๐‘Š (๐‘ฅ) is cubic, we again
used Mathematica to solve for ๐‘ฅ. Additionally, we know that
[
๐‘„๐‘ฅ 2 Un+1 U๐‘š+2 ๐‘ˆ๐‘˜+1 โˆ’Q2 ๐‘ฅU๐‘› U๐‘š+1 ๐‘ˆ๐‘˜+1 โˆ’Q2 ๐‘ฅUn+1 U๐‘š+1 U๐‘˜ + ๐‘„ 3 Un U๐‘š U๐‘˜ + 1
]
๐‘ฅ 2 Un+1 U๐‘š+2 ๐‘ˆ๐‘˜+2 โˆ’Q๐‘ฅU๐‘› U๐‘š+1 ๐‘ˆ๐‘˜+2 โˆ’Q๐‘ฅUn+1 U๐‘š+1 ๐‘ˆ๐‘˜+1 + ๐‘„ 2 Un U๐‘š ๐‘ˆ๐‘˜+1
is an eigenvector, with eigenvalue 1, of ๐‘พ from Section 3.3. Just as in the Two ๐‘ฉ case, we cannot use
these values directly as our initial conditions. Thus, once again, we used Mathematica to find and scale
the eigenvector appropriately.
Just as in the Two ๐‘ฉ case, we can limit the exponents on ๐‘จ to avoid double counting cyclic
permutations. In this case, we want ๐‘› โ‰ฅ ๐‘š and ๐‘› โ‰ฅ ๐‘˜. With these restrictions, we have 8,322,384
possible combinations of ๐‘ƒ, ๐‘„, ๐‘›, ๐‘š and ๐‘˜. Of these, 7,985,175 cases did not factor and thus did not
have any rational ๐‘ฅ values. Of the remaining combinations, 329,689 cases had one rational ๐‘ฅ value, 22
cases had two distinct rational ๐‘ฅ values and 7,498 cases had three ๐‘ฅ values.
When looking at products of the form (๐‘ฉ๐‘จ๐‘› )3 , we expect to have at least one periodic solution.
This comes from the ๐‘ฅ value and periodic solution from the One ๐‘ฉ case. That is, if ๐’— is an eigenvector
for ๐‘ฉ๐‘จ๐‘› , then ๐’— is also an eigenvector for (๐‘ฉ๐‘จ๐‘› )3 . In most cases, this was the only periodic solution. In
a few cases, solutions one might expect to find were missing. For example, when ๐‘พ = (๐‘ฉ๐‘จ)3 , the cases
29
๐‘ƒ = ๐‘„, โˆ’๐‘ƒ = ๐‘„, and ๐‘„ = โˆ’1 did not have any periodic solutions. This is because in the One ๐‘ฉ case
these cases also did not have a periodic solution. Table 4.1 outlines the first two cases, and when ๐‘ƒ is
arbitrary and ๐‘„ = โˆ’1 the resulting ๐‘ฅ value is zero. This was frequently the problem with missing
solutions. For instance, when ๐‘ƒ = โˆ’๐‘„ โˆ’ 1 we saw in Chapter 3 that ๐‘ฅ = โˆ’1 will be a solution. As a
result, the product (๐‘ฉ๐‘จ๐‘› )3 does not have periodic solutions when ๐‘› is odd in this case. Similarly, when
๐‘ƒ = ๐‘„ + 1 we know ๐‘ฅ = 1 is a solution. Consequently, there are no periodic solutions in this case, for
๐‘ƒ โ‰ฅ 3.
4.4 Products with Four ๐‘ฉโ€™s
As mentioned before, the matrix ๐‘พ, and thus the function ๐‘“๐‘Š (๐‘ฅ), becomes increasingly more
complicated when the number of ๐‘ฉโ€™s in the product increases. Therefore, for products with Four ๐‘ฉโ€™s,
we will not list the matrix ๐‘พ or an eigenvector with eigenvalue 1. Recall, we are looking for the rational
roots of (3.4). These ๐‘ฅ values have the potential to lead to periodic solutions. Once again, Mathematica
was used to find the rational ๐‘ฅ values for which ๐‘“๐‘Š (๐‘ฅ) = 0. Additionally, Mathematica was used to find
the eigensystem and scale the eigenvector appropriately for the initial conditions.
Similar to previous cases, we restricted the exponents of ๐‘จ to avoid double counting cyclic
permutations. When ๐‘พ = ๐‘ฉ๐€n ๐‘ฉ๐€๐‘š ๐‘ฉ๐€k ๐‘ฉ๐€j our limits are ๐‘› โ‰ฅ ๐‘š, ๐‘› โ‰ฅ ๐‘˜ and ๐‘› โ‰ฅ ๐‘—. As a reminder,
the case where ๐‘ƒ = ๐‘„ = 1 was also disregarded. This gives 42,635,439 possible combinations of ๐‘ƒ, ๐‘„,
๐‘›, ๐‘š, ๐‘˜ and ๐‘—. Of these, 41,064,688 cases had no rational ๐‘ฅ values. Of the remaining cases that
factored, 1,515,213 cases had one rational ๐‘ฅ value, 55,488 cases had two distinct rational ๐‘ฅ values, 49
cases had three distinct rational ๐‘ฅ values and 1 case had four distinct rational ๐‘ฅ values.
The only case where there were four rational ๐‘ฅ values occurred when ๐‘ƒ = 20, ๐‘„ = โˆ’5 and
๐‘พ = (๐‘ฉ2 ๐‘จ)2. In this case,
๐‘“๐‘Š (๐‘ฅ) = 65,594,375๐‘ฅ 4 + 3,240,000๐‘ฅ 3 + 40,250๐‘ฅ 2 โˆ’ 1
= (235๐‘ฅ โˆ’ 1)(145๐‘ฅ + 1)(55๐‘ฅ + 1)(35๐‘ฅ + 1)
30
so the rational ๐‘ฅ values we get are ๐‘ฅ = โˆ’
๐‘ฅ=
1
235
1
,
35
๐‘ฅ=โˆ’
1
,
55
๐‘ฅ=โˆ’
1
,
145
๐‘ฅ=
1
.
235
The values ๐‘ฅ = โˆ’
were the two periodic solutions from the Two ๐‘ฉ case. The remaining values, ๐‘ฅ = โˆ’
1
55
1
35
and
and ๐‘ฅ =
1
โˆ’ 145 lead to two new periodic solutions in this Four ๐‘ฉ case.
For the 49 cases with three rational ๐‘ฅ values, we know ๐‘“๐‘Š (๐‘ฅ) must factor into linear terms. In
fact, in all of these cases ๐‘“๐‘Š (๐‘ฅ) factored into the quadratic from the Two ๐‘ฉ case and a quadratic which
was a perfect square. In other words, all of these cases had the two ๐‘ฅ values from the Two ๐‘ฉ case and
then a new ๐‘ฅ value, of multiplicity two, from the Four ๐‘ฉ case. For all 49 cases, the new ๐‘ฅ value led to an
additional periodic solution.
The majority of the time ๐‘“๐‘Š (๐‘ฅ) factored into the quadratic from the Two ๐‘ฉ case and another
quadratic which did not factor. For example, when ๐‘ƒ = 3 and ๐‘„ = โˆ’1, the matrix (๐‘ฉ๐€2 )2 yields the
function
๐‘“๐‘Š (๐‘ฅ) = 1088๐‘ฅ 2 + 200๐‘ฅ + 8
= 8(8๐‘ฅ + 1)(17๐‘ฅ + 1)
1
1
Thus ๐‘ฅ = โˆ’ 8 and ๐‘ฅ = โˆ’ 17 were the rational roots which allowed for the possibility of periodic
behavior. In the Four ๐‘ฉ case, (๐‘ฉ๐€2 )4,
๐‘“๐‘Š (๐‘ฅ) = 1185920๐‘ฅ 4 + 435600๐‘ฅ 3 + 59600๐‘ฅ 2 + 3600๐‘ฅ + 80
= 80(109๐‘ฅ 2 + 20๐‘ฅ + 1)(17๐‘ฅ + 1)(8๐‘ฅ + 1).
In other words, no new periodic solutions were found in this Four ๐‘ฉ case.
31
5 Conjectures
As mentioned before, there are several scenarios where patterns seem to arise in our data.
Below we will address the patterns we believe exist. Although we believe these to be actual patterns
that will be true for all cases, this has not been proven. Proving that these are indeed infinite families is
one of the suggestions for future work. Other ideas for future work are also given below.
5.1 Patterns for Products with One ๐‘ฉ
As most of the solutions in the One ๐‘ฉ case were periodic, we outline patterns where periodic
solutions do not appear to exist. As you can see from Table 4.1, there were two patterns we identified.
We found that when ๐‘ƒ = ๐‘„ and ๐‘› = 1 the result is probably not periodic. Also, when ๐‘„ = โˆ’๐‘ƒ and ๐‘› =
1 we did not find any periodic solutions. The final suspected pattern was also noted in Section 4.1. We
believe when ๐‘ƒ โ‰ก 2(๐‘š๐‘œ๐‘‘ 8) or ๐‘ƒ โ‰ก 4(๐‘š๐‘œ๐‘‘ 8), ๐‘„ = ๐‘ƒ + 2 and ๐‘› = 2 there will not be a periodic
solution. To check whether this holds, we expanded our restrictions on ๐‘ƒ and ๐‘„. In this case, we
checked โˆ’100 โ‰ค ๐‘„ โ‰ค 100. The results were consistent with the patterns we expected. In fact, if we
look at the general case ๐‘„ = ๐‘ƒ + 2, we see why this happens. When ๐‘ƒ is arbitrary and ๐‘„ = ๐‘ƒ + 2, since
๐‘› = 2 is quite small, we can easily find ๐‘“๐‘Š (๐‘ฅ) for this case. Given these circumstances, ๐‘“๐‘Š (๐‘ฅ) =
(๐‘ƒ + 1)2 (โˆ’8๐‘ฅ โˆ’ 1).
1
Therefore, when ๐‘ƒ is arbitrary, ๐‘„ = ๐‘ƒ + 2 and ๐‘› = 2, ๐‘ฅ = โˆ’ 8 is always the
solution. Note, in this case,
1
1
(๐‘ƒ โˆ’ 2)(๐‘ƒ + 2)(๐‘ƒ + 1)
โˆ’ (๐‘ƒ3 โˆ’ 2๐‘ƒ2 โˆ’ 4๐‘ƒ)
๐‘ฉ๐‘จ2 = [ 8
].
8
(๐‘ƒ โˆ’ 2)(๐‘ƒ + 1)
โˆ’๐‘ƒ(๐‘ƒ + 2)
Thus
1 โˆ’ (โˆ’๐‘ƒ(๐‘ƒ + 2))
(๐‘ƒ + 1)2
[
]=[
]
(๐‘ƒ โˆ’ 2)(๐‘ƒ + 1)
(๐‘ƒ โˆ’ 2)(๐‘ƒ + 1)
32
is an eigenvector with eigenvalue 1. When scaling the eigenvector to find the initial conditions, we
receive ๐‘Ž0 = ๐‘ƒ โˆ’ 2 and ๐‘Ž1 = ๐‘ƒ + 1. Since ๐‘› = 2, we expect there to be two terms before we can
multiply by ๐‘ฅ to achieve periodic behavior as expected. If we look at the sequence resulting from the
initial conditions, we have ๐‘ƒ โˆ’ 2, ๐‘ƒ + 1, ๐‘ƒ + 4, ๐‘ƒ โˆ’ 2, โˆ’8(๐‘ƒ + 1).
In order to multiply by ๐‘ฅ in the
appropriate place, we need ๐‘ƒ + 4 and ๐‘ƒ โˆ’ 2 to not be divisible by 8. Otherwise, the multiplication will
occur in the wrong place and probably cause the sequence to not be periodic. This explains why we did
not find a periodic solution when ๐‘ƒ โ‰ก 2(๐‘š๐‘œ๐‘‘ 8) or ๐‘ƒ โ‰ก 4(๐‘š๐‘œ๐‘‘ 8). There is some evidence that these
three families, and the six exceptions in Table 4.1, are the only cases without periodic solutions.
5.2 Patterns for Products with Two ๐‘ฉโ€™s
Unlike the One ๐‘ฉ case, here we characterize patterns that lead to periodic solutions. For
instance, when ๐‘„ = ๐‘ƒ โˆ’ 1, for ๐‘ƒ โ‰ฅ 3, all 496 possible combinations of ๐‘š and ๐‘› result in periodic
behavior. As a reminder, this is one of the cases where ๐‘ฅ = 1 is a root. In these cases, we found that
the subsequent ๐‘ฅ value always led to a periodic solution. Similarly, when ๐‘„ = โˆ’๐‘ƒ โˆ’ 1 the solution will
be periodic when ๐‘š and ๐‘› have matching parity.
As mentioned previously, there were some cases where (๐‘ฉ๐‘จ๐‘› )2 would not lead to periodic
behavior. One of these cases, as mentioned in Section 4.2, was when ๐‘ƒ โ‰ก 4(๐‘š๐‘œ๐‘‘ 8) or ๐‘ƒ โ‰ก 6(๐‘š๐‘œ๐‘‘ 8),
๐‘„ = โˆ’๐‘ƒ + 2 and ๐‘› = 2. This pattern is quite similar to the one explained in Section 5.1. When
determining our sequence, we get ๐‘ƒ + 2, 1 โˆ’ ๐‘ƒ, ๐‘ƒ โˆ’ 4, โˆ’๐‘ƒ โˆ’ 2, 8(1 โˆ’ ๐‘ƒ), โ€ฆ As you can see, whenever
1
๐‘ƒ โ‰ก 4(๐‘š๐‘œ๐‘‘ 8) or ๐‘ƒ โ‰ก 6(๐‘š๐‘œ๐‘‘ 8) we end up multiplying by โˆ’ 8 before the expected point. This causes
the solution to not be periodic.
As mentioned previously, the square of the One ๐‘ฉ case leads to a second solution. In most
cases this second ๐‘ฅ value leads to a periodic solution. All of the following cases led to periodic solutions
when ๐‘พ = (๐‘ฉ๐‘จ๐‘› )2 unless noted in Section 4.2. In addition to the square case, some combinations of ๐‘ƒ
and ๐‘„ have an additional pattern which is addressed below.
๐‘ƒ
๐‘„
๐‘พ
๐‘ฅ value
๐‘Ž0 , ๐‘Ž1
arbitrary
โˆ’1
๐‘ฉ๐‘จ๐‘›+2 ๐‘ฉ๐‘จ๐‘› when ๐‘› is odd
โˆ’๐‘ˆ๐‘›โˆ’1
๐‘ˆ๐‘›+1
๐‘ˆ๐‘›+1 , ๐‘ˆ๐‘› โˆ’ 1
๐‘˜ 2 + 1, ๐‘˜ โˆˆ โ„ค
1
๐‘ฉ๐‘จ๐‘›+1 ๐‘ฉ๐‘จ๐‘› for all ๐‘›
33
undetermined
๐‘ƒ2
arbitrary
even
divisible by 3
1 2
๐‘ƒ
2
1 2
๐‘ƒ
3
๐‘ฉ๐‘จ๐‘›+6๐‘˜ ๐‘ฉ๐‘จ๐‘› , ๐‘˜ โˆˆ โ„ค
undetermined
๐‘ฉ๐‘จ๐‘›+8๐‘˜ ๐‘ฉ๐‘จ๐‘› , ๐‘˜ โˆˆ โ„ค
undetermined
๐‘ฉ๐‘จ๐‘›+12๐‘˜ ๐‘ฉ๐‘จ๐‘› , ๐‘˜ โˆˆ โ„ค
undetermined
When ๐‘ƒ and ๐‘„ are defined as above, the corresponding product appears to lead to periodic behavior. In
almost all of these cases, we checked values for ๐‘ƒ and ๐‘„ greater than 20 to verify what we suspected to
be an infinite family. While this doesnโ€™t prove it is indeed a family, it makes us slightly more confident in
our assumption.
5.3 Patterns for Products with Three ๐‘ฉโ€™s
Similar to the Two ๐‘ฉ case, below are conditions we believe lead to periodic solutions. Again,
these are patterns in addition to the result from the One ๐‘ฉ case. In other words, when ๐‘พ = (๐‘ฉ๐‘จ๐‘› )3,
we expect there to be one periodic solution which results from the periodic solution of ๐‘ฉ๐‘จ๐‘› . Any cases
where this is not true were addressed in Section 4.3.
๐‘ƒ
๐‘„
๐‘พ
๐’™ value
arbitrary
โˆ’1
๐‘ฉ๐‘จ2๐‘›+3 ๐‘ฉ๐‘จ๐‘›+2 ๐‘ฉ๐‘จ๐‘›
โˆ’๐‘ˆ๐‘›+1
๐‘ˆ๐‘›+3
arbitrary
1
๐‘ฉ๐‘จ2๐‘›+3 ๐‘ฉ๐‘จ๐‘›+2 ๐‘ฉ๐‘จ๐‘›
arbitrary
๐‘ƒ2
undetermined
1 2
๐‘ƒ
2
1 2
divisible by 3
๐‘ƒ
3
even
undetermined
undetermined
Unfortunately, these patterns were harder to determine than cases with a smaller number of ๐‘ฉโ€™s. It is
clear that the same combinations of ๐‘›, ๐‘š and ๐‘˜ appear for any given pattern of ๐‘ƒ and ๐‘„, however the
pattern that ๐‘›, ๐‘š and ๐‘˜ follows is not easily decipherable. Therefore, we suspect these are infinite
families, but have not been able to determine exactly when we suspect periodic solutions to occur.
34
5.4 Patterns for Products with Four ๐‘ฉโ€™s
As mentioned previously, there were several occurrences where ๐‘“๐‘Š (๐‘ฅ) factored into the
quadratic from the Two ๐‘ฉ case and another quadratic which did not factor. In fact, it appears as though
most products of the form (๐‘ฉ๐‘จ๐‘› ๐‘ฉ๐‘จ๐‘š )2, including those where ๐‘› = ๐‘š, have only periodic solutions
from the Two ๐‘ฉ case. For instance, when ๐‘„ = ๐‘ƒ โˆ’ 1, for ๐‘ƒ โ‰ฅ 3, the only periodic solutions found were
of the form (๐‘ฉ๐‘จ๐‘› ๐‘ฉ๐‘จ๐‘š )2. These are the solutions addressed in Section 5.2. Additionally, when ๐‘„ =
โˆ’๐‘ƒ โˆ’ 1, the only periodic solutions were from the similar pattern in Section 5.2. In other words, there
were frequently no new periodic solutions in the Four ๐‘ฉ case.
There were 50 cases where ๐‘“๐‘Š (๐‘ฅ) factored in to all linear terms. The results of these cases
were addressed in Section 4.4. Excluding the single case with four rational ๐‘ฅ values, most of these cases
appear to fall in to patterns. We suspect ๐‘“๐‘Š (๐‘ฅ) will factor in to linear terms for the patterns below.
๐‘ƒ
๐‘„
๐‘พ
2
1
(๐‘ฉ๐‘จ๐‘›+2 ๐‘ฉ๐‘จ๐‘› )2
4
10
โˆ’1 (๐‘ฉ๐‘จ๐‘›+2 ๐‘ฉ๐‘จ๐‘› )2 where ๐‘› is even
(๐‘ฉ๐‘จ๐‘›+2 ๐‘ฉ๐‘จ๐‘› )2
1
In addition to the patterns above, there was the case where ๐‘ƒ = 4, ๐‘„ = โˆ’2 and ๐‘พ = (๐‘ฉ๐‘จ๐‘ฉ)2 which
had three distinct rational ๐‘ฅ values. This case did not appear to fall into any pattern.
The remaining new periodic solutions found appear to fall into patterns similar to those from
cases with a smaller number of ๐‘ฉโ€™s. These suspected patterns are outlined below.
๐‘ƒ
๐‘„
๐‘พ
arbitrary
โˆ’1
๐‘ฉ๐‘จ2๐‘›+3 ๐‘ฉ๐‘จ2๐‘›+3 ๐‘ฉ๐‘จ๐‘›+2 ๐‘ฉ๐‘จ๐‘›
arbitrary
๐‘ƒ2
undetermined
1 2
๐‘ƒ
2
1 2
divisible by 3
๐‘ƒ
3
even
undetermined
undetermined
35
The last three cases included periodic solutions in addition to the squares of the two ๐‘ฉ patterns.
Unfortunately, just like the Three ๐‘ฉ case, it was too difficult to determine the matrices which led to
periodic solutions.
36
6 Future Work
There are several ways in which this project might be extended. To begin with, there is simple
expansion. In this project, we limited ๐‘ƒ and ๐‘„ to relatively small intervals. One could consider many
more cases of ๐‘ƒ and ๐‘„. This might lead to a realization of patterns which we were unable to see. In
that respect, another logical step is to prove that what we suspect are infinite families are indeed just
that. Furthermore, we only looked at cases with a small number of ๐ตโ€™s, one could consider products
with a larger number of ๐ตโ€™s. Additionally, in this project we looked at a nonlinear variation on second
order homogeneous recurrence relations. One could consider nonhomogeneous systems next.
37
References
[1] J. Fraleigh and R. Beauregard, Linear Algebra (2nd Ed.), Addison-Wesley Pub., Reading, 1990.
[2] R. Grimaldi, Discrete and Combinatorial Mathematics: An applied introduction (5th Ed.), Pearson
Addison Wesley, Boston, 2004.
[3] K. Niedzielski, Periodic Solutions to Difference Equations, Masters Project, University of Minnesota
Duluth, 2008.
[4] I. Niven, Irrational Numbers, Math. Assoc. of America, Rahway, 1963.
[5] P. Ribenboim, The Book of Prime Number Records, Springer-Verlag, New York, 1988.
[6] H. Riesel, Prime Numbers and Computer Methods for Factorization (2nd Ed.), Birkhำ“user, Boston,
1994.
[7] K. Rosen, Discrete Mathematics and Its Applications (5th Ed.), McGraw-Hill, Boston, 2003.
[8] K. Rosen, Handbook of Discrete and Combinatorial Mathematics, CRC Press, Boca Raton, 2000.
[9] E. Weisstein, Lucas Sequence, MathWorld--A Wolfram Web Resource,
http://mathworld.wolfram.com/LucasSequence.html
[10] G. Williams, Linear Algebra with Applications (6th Ed.), Jones and Bartlett Pub., Sudbury, 2008.
38
A Mathematica Code
Here we give the Mathematica code used for this project. The code below was used to generate
a list of the ๐‘ˆ๐‘› sequence for a specific ๐‘ƒ and ๐‘„, which was needed to calculate ๐‘“๐‘Š (๐‘ฅ). A similar list is
generated and stored for the ๐‘Ž๐‘› sequence. Furthermore, the function isPeriodic will determine whether
or not a sequence is periodic. It uses the fact that we can determine the expected length of the period
based on the number of matrices in the product being examined. This code, PeriodicFunctions.nb, was
run as an initialization for some of the programs in the following sections.
PeriodicFunctions.nb
Usize=200;
Asize=200;
Areset[a1_,a2_]:=Module[{},
A=Table[0,{i,1,Asize}];
A[[1]]=a1;A[[2]]=a2;
Alength=2;
];
Ureset[]:=Module[{},
U=Table[0,{i,1,Usize}];
U[[1]]=0;U[[2]]=1;
Ulength=2;
];
ExpandU[index_]:=Module[{i},
For[i=Ulength+1,i๏‚ฃ index,i++,
Ulength++;
U[[Ulength]]=p*U[[Ulength-1]]-q*U[[Ulength-2]];
];
];
ExpandA[index_]:=Module[{i},
For[i=Alength+1,i๏‚ฃ index,i++,
Alength++;
A[[Alength]]=Piecewise[{{x*(p*A[[Alength-1]]-q*A[[Alength2]]),IntegerQ[x*(p*A[[Alength-1]]-q*A[[Alength-2]])]}},p*A[[Alength-1]]-q*A[[Alength2]]]];
];
u[m_]:=Module[{Uindex=m+1},
If[Uindex>Ulength,ExpandU[Uindex]];
U[[Uindex]]
];
a[m_]:=Module[{Aindex=m+1},
If[Aindex>Alength,ExpandA[Aindex]];
If[IntegerQ[x*(p*A[[Aindex-1]]-q*A[[Aindex-2]])]&&x*(p*A[[Aindex-1]]-q*A[[Aindex2]])๏‚น0,Flag=Flag<>"B";,Flag=Flag<>"A";];
A[[Aindex]]
];
39
isPeriodic[s_]:=Module[{positions,first=First[s],second=s[[2]],seconds,
out={0,0},periods},
positions=Position[s,first]//Flatten;
positions=Select[positions,2<#<Length[s]&];
periods=Select[positions+1,s[[#]]๏‚Šsecond&];
If[Length[periods]>0,
out={1,First[periods]-2};
];
out
];
A.1 Mathematica Code for Products with One ๐‘ฉ
This section contains the code used to achieve the results outlined in Section 4.1. It was run in
conjunction with PeriodicFunctions.nb.
X[m_]:=(1+q*u[m])/(u[m+2]-q^(m+1));
periodic=0;
nonperiodic=0;
undefined=0;
disregard=0;
For[p=1,p๏‚ฃ20,p++,
For[q=-20,q๏‚ฃ20,q++,
Ureset[];
If[q๏‚Š0,Continue[]];
For[n=1,n๏‚ฃ30,n++,
If[(u[n+2]-q^(n+1))๏‚Š0,
undefined++;
Print["p=",p,", q=",q,", n=",n];
Continue[];
];
x=X[n];
g=GCD[q*u[n]+1,u[n+1]];
If[g๏‚Š0|| x๏‚Š1||x๏‚Š0||x๏‚Š-1,
disregard++;
Continue[]];
Areset[(u[n+1])/g,(q*u[n]+1)/g];
Flag="";
output=Table[a[i],{i,0,n+2}];
If[isPeriodic[output][[1]]๏‚Š1,periodic++,nonperiodic++]
];
];];
periodic
nonperiodic
undefined
disregard
40
A.2 Mathematica Code for Products with Two ๐‘ฉโ€™s
This section contains the code used to achieve the results outlined in Section 4.2. It was run in
conjunction with PeriodicFunctions.nb.
f[x_]:=(x^2)*(u[m+2]*u[n+2]-(q^(n+m+2)))+x*(-2q*u[m+1]*u[n+1])+(q^2)*u[m]*u[n]-1;
periodic=0;
nonperiodic=0;
irrational=0;
rational=0;
disregard=0;
Periodic=List[];
Nonperiodic=List[];
Irrational=List[];
Disregard=List[];
For[p=1,p๏‚ฃ20,p++,
For[q=-20,q๏‚ฃ20,q++,
Ureset[];
If[q๏‚Š0,Continue[]];
For[m=0,m๏‚ฃ30,m++,
For[n=m,n๏‚ฃ30,n++,
If[Length[Solve[f[t]๏‚Š0,t,Rationals]]>0,
rational++;
s=t/.Solve[f[t]๏‚Š0,t,Rationals];,
AppendTo[Irrational,{p,q,m,n}];
irrational++;
Continue[];
];
For[i=1,i๏‚ฃLength[s],i++,
x=s[[i]];
g=GCD[(q*x*u[m+1]*u[n+1]-q*q*u[n]u[m]+1),(x*u[m+1]*u[n+2]-q*u[n+1]u[m])];
If[g๏‚Š0||!NumberQ[x],Continue[]];
If[x๏‚Š1||x๏‚Š0||x==-1,
AppendTo[Disregard,{p,q,m,n}];
disregard++;
Continue[];
];
Areset[(x*u[m+1]*u[n+2]-q*u[n+1]u[m])/g,
(q*x*u[m+1]*u[n+1]-q*q*u[n]u[m]+1)/g];
Flag="";
output=Table[a[i],{i,0,n+m+3}];
If[isPeriodic[output][[1]]๏‚Š1,
AppendTo[Periodic,{p,q,m,n,x,output[[1;;isPeriodic[output][[2]]+2]]}];
periodic++,
AppendTo[Nonperiodic,{p,q,m,n,x,output[[1;;isPeriodic[output][[2]]+2]]}];
nonperiodic++];
];
];
];
];
];
periodic
nonperiodic
irrational
rational
disregard
Export["C:\\Users\\mathoffice\\Desktop\\Final Runs\\nonperiodic2Bs.xls",Nonperiodic];
Export["C:\\Users\\mathoffice\\Desktop\\Final Runs\\periodic2Bs.xls",Periodic];
41
Export["C:\\Users\\mathoffice\\Desktop\\Final Runs\\irrational2Bs.xls",Irrational];
A.3 Mathematica Code for Products with Three ๐‘ฉโ€™s
This section contains the code used to achieve the results outlined in Section 4.3. Due to the
higher complexity, the periodic solutions were calculated separately from determining the number of
rational roots. Factor3.nb was used to determine how many rational roots occurred in each case.
Periodic3.nb used the rational ๐‘ฅ values to find periodic solutions. Both programs were run in
conjunction with PeriodicFunctions.nb.
Factor3.nb
f[x_]:=(x^3)*(u[k+2]*u[m+2]*u[n+2]-(q^(k+n+m+3)))q*(x^2)*(u[k+1]*u[m+1]*u[n+2]+u[k+1]*u[m+2]*u[n+1]+u[k+2]*u[m+1]*u[n+1])+(q^2)*x*(u[k+
1]*u[m+1]*u[n]+u[k+1]*u[m]*u[n+1]+u[k]*u[m+1]*u[n+1])-(q^3)*u[k]*u[m]*u[n]-1;
nofactor=0;
onefactor=0;
twofactor=0;
threefactor=0;
solutions=0;
total=0;
Monitor[For[p=1,p๏‚ฃ20,p++,
For[q=-20,q๏‚ฃ20,q++,
Ureset[];
If[q==0||(p๏‚Šq๏‚Š1),Continue[]];
For[k=0,k๏‚ฃ30,k++,
For[m=k,m๏‚ฃ30,m++,
For[n=m,n๏‚ฃ30,n++,
total++;
solution=Solve[f[t]๏‚Š0,t];
firstN=t/.solution[[1,1]];
secondN=t/.solution[[2,1]];
If[Length[solution]๏‚Š3,thirdN=t/.solution[[3,1]],thirdN="na"];
solutions=0;
If[NumberQ[firstN]&&Element[firstN,Rationals],solutions++];If[NumberQ[secondN]&&Elemen
t[secondN,Rationals],solutions++];If[NumberQ[thirdN]&&Element[thirdN,Rationals],soluti
ons++];
Switch[solutions,0,nofactor++,1,onefactor++,2,twofactor++,3,threefactor++];
];
];
];
];
];,{p,q,k,m,n}]
nofactor
onefactor
twofactor
threefactor
total
Periodic3.nb
f[x_]:=(x^3)*(u[k+2]*u[m+2]*u[n+2]-(q^(k+n+m+3)))-
42
q*(x^2)*(u[k+1]*u[m+1]*u[n+2]+u[k+1]*u[m+2]*u[n+1]+u[k+2]*u[m+1]*u[n+1])+(q^2)*x*(u[k+
1]*u[m+1]*u[n]+u[k+1]*u[m]*u[n+1]+u[k]*u[m+1]*u[n+1])-(q^3)*u[k]*u[m]*u[n]-1;
data=List[];
For[p=1,p๏‚ฃ20,p++,
AppendTo[data,{}];
AppendTo[data[[p]],{"n","m","k","p","q","period","","An","X"}];
For[q=-20,q๏‚ฃ20,q++,
Ureset[];
If[q๏‚Šp๏‚Š1||q==0,Continue[]];
For[k=0,k๏‚ฃ30,k++,
For[m=0,m๏‚ฃ30,m++,
For[n=0,n๏‚ฃ30,n++,
If[Length[Solve[f[t]๏‚Š0,t,Rationals]]>0,s=t/.Solve[f[t]๏‚Š0,t,Rationals],Continue[]];
For[i=1,i๏‚ฃLength[s],i++,
x=s[[i]];
g=GCD[((x*u[k+2]*(x*u[n+1]*u[m+2]-q*u[n]u[m+1]))+u[k+1]*((q*x*u[m+1]*u[n+1]+q*q*u[n]u[m]))),
((q*x*u[k+1]*(x*u[n+1]*u[m+2]-q*u[n]u[m+1]))+q*u[k]*((q*x*u[m+1]*u[n+1]+q*q*u[n]u[m]))+1)];
If[g๏‚Š0||!NumberQ[x]|| x==-2||x๏‚Š1||x๏‚Š0||x==-1,Continue[]];
Areset[((x*u[k+2]*(x*u[n+1]*u[m+2]-q*u[n]u[m+1]))+u[k+1]*((q*x*u[m+1]*u[n+1]+q*q*u[n]u[m])))/g,
((q*x*u[k+1]*(x*u[n+1]*u[m+2]-q*u[n]u[m+1]))+q*u[k]*((q*x*u[m+1]*u[n+1]+q*q*u[n]u[m]))+1)/g];
Flag="";
output=Table[a[i],{i,0,(k+m+n+4)}];
If[isPeriodic[output][[1]]๏‚Š1,AppendTo[data[[p]],{n,m,k,p,q,isPeriodic[output],Flag,out
put[[1;;isPeriodic[output][[2]]+2]],StringForm[x]}]
];
];
];
];
];]
];
Export["C:\\Users\\mathoffice\\Desktop\\Final Runs\\threeBsmore.xls",data];
A.4 Mathematica Code for Products with Four ๐‘ฉโ€™s
This section contains the code used to achieve the results outlined in Section 4.4. Once again,
the periodic solutions were calculated separately from determining the number of rational roots.
Factor4.nb was used to determine how many rational roots occurred in each case. Periodic4.nb used
the rational ๐‘ฅ values to find periodic solutions. Both programs contain the necessary code from
PeriodicFunctions.nb, thus each program was run without an initialization program.
Factor4.nb
Usize=200;
Ureset[]:=Module[{},
U=Table[0,{i,1,Usize}];
U[[1]]=0;U[[2]]=1;
Ulength=2;
43
];
ExpandU[index_]:=Module[{i},
For[i=Ulength+1,i๏‚ฃ index,i++,
Ulength++;
U[[Ulength]]=p*U[[Ulength-1]]-q*U[[Ulength-2]];
];];
u[m_]:=Module[{Uindex=m+1},
If[Uindex>Ulength,ExpandU[Uindex]];
U[[Uindex]]];
f[x_]:=(x^4)*a-q*(x^3)*b+(q^2)*(x^2)*c-(q^3)*x*d+e;
none=0;
one=0;
two=0;
three=0;
four=0;
total=0;
Monitor[For[p=1,p๏‚ฃ20,p++,
For[q=-20,q๏‚ฃ20,q++,
Ureset[];
If[q๏‚Š0||(p๏‚Šq๏‚Š1),Continue[];];
For[j=0,j๏‚ฃ20,j++,
For[k=j,k๏‚ฃ20,k++,
For[m=j,m๏‚ฃ20,m++,
For[n=j,n๏‚ฃ20,n++,
total++;
a=(u[j+2]*u[k+2]*u[m+2]*u[n+2]-(q^(j+k+n+m+4)));
b=(u[j+2]*u[k+1]*u[m+1]*u[n+2]+u[j+1]*u[k+2]*u[m+2]*u[n+1]+u[j+2]*u[k+2]*u[m+1]*u[n+1]
+u[j+1]*u[k+1]*u[m+2]*u[n+2]);
c=(u[j+1]*u[k]*u[m+1]*u[n+2]+u[j]*u[k+1]*u[m+2]*u[n+1]+u[j+1]*u[k+2]*u[m+1]*u[n]+u[j+2
]*u[k+1]*u[m]*u[n+1]+2*u[j+1]*u[k+1]*u[m+1]*u[n+1]);
d=(u[j+1]*u[k]*u[m]*u[n+1]+u[j+1]*u[k+1]*u[m]*u[n]+u[j]*u[k+1]*u[m+1]*u[n]+u[j]*u[k]*u
[m+1]*u[n+1]);
e=(q^4)*u[j]*u[k]*u[m]*u[n]-1;
fact=FactorList[f[x]];
If[a๏‚น0,
If[Length[fact]๏‚Š5,
four++;
Continue[];];
If[Length[fact]๏‚Š4&&Exponent[fact[[4,1]],x]๏‚น2,
three++;
Continue[];];
If[(Length[fact]๏‚Š2&&fact[[2,2]]๏‚Š4)||(Length[fact]๏‚Š3&&Exponent[fact[[3,1]],x]๏‚Š3)||(Leng
th[fact]๏‚Š3&&fact[[2,2]]๏‚Š2&&Exponent[fact[[3,1]],x]๏‚Š2),
one++;
Continue[];];
If[(Length[fact]๏‚Š4&&Exponent[fact[[4,1]],x]๏‚Š2)||(Length[fact]๏‚Š3&&fact[[2,2]]๏‚Š1&&fact[[
3,2]]๏‚Š3)||(Length[fact]๏‚Š3&&fact[[2,2]]๏‚Š3&&fact[[3,2]]๏‚Š1)||(Length[fact]๏‚Š3&&fact[[2,2]]
๏‚Š2&&fact[[3,2]]๏‚Š2),two++;Continue[];];
If[(Length[fact]๏‚Š2&&fact[[2,2]]๏‚Š2&&Exponent[fact[[2,1]],x]๏‚Š2)||(Length[fact]๏‚Š2&&Expone
nt[fact[[2,1]],x]๏‚Š4)||(Length[fact]๏‚Š3&&Exponent[fact[[2,1]],x]๏‚Š2&&Exponent[fact[[3,1]]
,x]๏‚Š2),
none++;
Continue[];];
,
44
If[b๏‚น0,
If[Length[fact]๏‚Š4,three++;Continue[];];
If[Length[fact]๏‚Š2&&fact[[2,2]]๏‚Š1,none++;Continue[];];
If[(Length[fact]๏‚Š2&&fact[[2,2]]๏‚Š3)||(Length[fact]๏‚Š3&&Exponent[fact[[3,1]],x]๏‚Š2),one++;
Continue[];];
If[Length[fact]๏‚Š3&&Exponent[fact[[3,1]],x]๏‚น2,two++;Continue[];];
,
If[c๏‚น0,
If[Length[fact]๏‚Š3,two++;Continue[];];
If[Length[fact]๏‚Š2&&fact[[2,2]]๏‚Š2,one++;Continue[];];
If[Length[fact]๏‚Š2&&Exponent[fact[[2,1]],x]๏‚Š2,none++;Continue[];];
,
If[d๏‚น0,one++;Continue[];,none++;Continue[];];];];];
Print[fact,"p=",p,"q=",q,"n=",n,"m=",m,"k=",k,"j=",j];
];];];];];];,{p,q,n,m,k,j}];
none
one
two
three
four
total
Periodic4.nb
CloseKernels[];
machineOpt={
{"blitzen",11},
{"rigel",5},
{"sirius",11},
{"comet",10},
{"merak",11},
{"santa",12},
{"zeus",23}
};
Needs["SubKernels`RemoteKernels`"]
LaunchKernels[RemoteMachine[#[[1]],#[[2]]]]&/@machineOpt;
saveTask=CreateScheduledTask[FrontEndExecute[FrontEndToken["Save"]],5*60];
StartScheduledTask[saveTask];
ParallelEvaluate[
$MaxExtraPrecision=1000;
$HistoryLength=0;
Asize=200;
Areset[a1_,a2_]:=Module[{},
A=Table[0,{i,1,Asize}];
A[[1]]=a1;A[[2]]=a2;
Alength=2;
];
ExpandA[index_]:=Module[{i},
For[i=Alength+1,i๏‚ฃ index,i++,
Alength++;
A[[Alength]]=Piecewise[{{x*(p*A[[Alength-1]]-q*A[[Alength2]]),IntegerQ[x*(p*A[[Alength-1]]-q*A[[Alength-2]])]}},p*A[[Alength-1]]-q*A[[Alength2]]]];
];
a[m_]:=Module[{Aindex=m+1},
If[Aindex>Alength,ExpandA[Aindex]];
A[[Aindex]]
];
isPeriodic[s_]:=Module[{positions,first=First[s],second=s[[2]],seconds,
out={0,0},periods},
positions=Position[s,first]//Flatten;
45
positions=Select[positions,2<#<Length[s]&];
periods=Select[positions+1,s[[#]]๏‚Šsecond&];
If[Length[periods]>0,
out={1,First[periods]-2};
];
out
];
Amat={{p,-q},{1,0}};
B={{p*x,-q*x},{1,0}};
W=B.MatrixPower[Amat,n].B.MatrixPower[Amat,m].B.MatrixPower[Amat,k].B.MatrixPower[Amat
,j];
disregard=0;
periodic=0;
nonperiodic=0;
counter=0;
iDontCare=0;
DrittIMidten[vector_]:=
Block[{system,xvaluesone,sol,xvaluestwo,i,solution,gcd,output},
Check[
p=vector[[1]];
q=vector[[2]];
j=vector[[3]];
k=vector[[4]];
m=vector[[5]];
n=vector[[6]];
If[q๏‚Š0||p๏‚Šq๏‚Š1||(n๏‚Šm๏‚Šj๏‚Šk),Return[]];
counter++;
Clear[x];
Quiet[Check[system=Eigensystem[W],Return[]]];
system[[2]]=Select[system[[2]],#๏‚น {0,0}&]; (* select nonzero eigenvectors *)
iDontCare+=Length[Select[system[[2]],#๏‚Š{0,0}&]];
(*Print[system];*)
If[Length[system[[2]]]๏‚Š0,Return[]]; (* Nothing to work with *)
system[[2]]=Simplify[#/PolynomialGCD[#[[1]],#[[2]]]&/@system[[2]]];
xvaluesone=Select[Solve[system[[1,1]]๏‚Š1,x],Element[#[[1,2]],Rationals]&&NumberQ[#[[1,2
]]]&];
sol=Partition[Riffle[xvaluesone, system[[2,1]]/.xvaluesone],2];
If[Length[system[[2]]]>1,
xvaluestwo=Select[Solve[system[[1,2]]๏‚Š1,x],
Element[#[[1,2]],Rationals]&&NumberQ[#[[1,2]]]&];
sol=Union[sol,Partition[Riffle[xvaluestwo, system[[2,2]]/.xvaluestwo],2]];
];
If[Length[sol]๏‚ณ1,
If[sol[[1]]๏‚Š{},
sol=Drop[sol,1];
]
];
For[i=1,i๏‚ฃLength[sol],i++,
solution=sol[[i]];
x=x/.solution[[1]];
If[x๏‚Š1||x๏‚Š-1||x๏‚Š0,
disregard++;
Continue[];];
If[solution[[2]]๏‚Š{0,0},
iDontCare++;
46
Continue[];];
gcd=GCD[solution[[2,1]],solution[[2,2]]];
solution[[2]]/=gcd;
Areset[solution[[2,2]],solution[[2,1]]];
output=Table[a[i],{i,0,n+m+k+j+4}];
If[isPeriodic[output][[1]]๏‚Š1,
periodic++;
Print["p=",p," q=",q," n=",n," m=",m," k=",k," j=",j," x=",x,output[[1;;2]]];,
nonperiodic++];
];
,Print["ERROR: p=",p," q=",q," n=",n," m=",m," k=",k," j=",j]];
];
];
T=Flatten[Table[{p,q,j,k,m,n},{p,1,1},{q,20,20},{j,0,20},{k,j,20},{m,j,20},{n,j,20}],5];
len=Length[T];
positionNext=100000;
Print["Length = ",len];
Monitor[
For[i=0,i๏‚ฃ len/100000,i++,
positionNext=(i+1)*100000;
If[positionNext๏‚ณ len,positionNext=len];
T2=T[[i*100000+1;;positionNext]];
SetSharedVariable[T2];
Parallelize[
DrittIMidten/@T2;
]
ParallelEvaluate[ClearSystemCache[]];
];,Refresh[i*100000,UpdateInterval๏‚ฎ1]]
counter=Total[ParallelEvaluate[counter]];
disregard=Total[ParallelEvaluate[disregard]];
nonperiodic=Total[ParallelEvaluate[nonperiodic]];
periodic=Total[ParallelEvaluate[periodic]];
iDontCare=Total[ParallelEvaluate[iDontCare]];
periodic
nonperiodic
disregard
iDontCare
counter
CloseKernels[];
47