previous up next
Previous: 4 Patterns Up: Patterns Occurring During the Next: 6 Other Sections

5 Relations between lengths and patterns of maths and maths

The idea to examine the relations between the lengths of maths and maths is not new. For example, the special case maths has been studied in [11].

Lemma 5.1   For all maths having the same parity and maths, we have

maths

Proof. When maths are even, there is nothing to prove. Otherwise, we have maths and maths. And the conclusion follows from maths. maths

Theorem 5.2   For all maths, not a perfect square, maths is maths-conjugated to maths. For all maths, maths is maths-conjugated to either maths or maths. Using notations 3.10, we have:

maths (5.1)

Proof. Put maths and maths. Then, by proposition 4.4, we have:

maths

proving that maths. But maths can be written as maths, where maths and, using again 4.4, the matrix maths belongs to maths. This matrix verifies also the other prerequisites of proposition 3.7, so that maths for some maths.

Similarly, we have

maths

proving that maths. If maths is even, maths can be written as maths, where maths. Thus maths and, as above, maths for some maths. This leads to maths. Applying theorem 2.6, we obtain maths and therefore maths.

In the remaining case (maths odd), lemma 5.1 shows that maths. From proposition 3.7, maths for some maths. Applying again theorem 2.6, we obtain maths. Since maths is not possible, we have maths i.e. maths. maths

Corollary 5.3   For a given maths, not a square, maths.

Proof. We have maths by 5.1 and maths. maths

Definition 5.4   Let us call maths (letters) the set maths where

maths (5.2)

When computing products like maths where maths, we will call maths and maths (respectively) "maths" and "maths".

Lemma 5.5   Given maths and the parity of maths, it exists one and only one suffix maths such that maths. Moreover, the following formulae hold for the remaining six possibilities:

maths (5.3)

Proof. Direct inspection. maths

Lemma 5.6   Let maths be a pattern, maths be a permutation of maths and maths an odd integer such that all three matrices maths belong to maths. Then maths and maths don't occur while the remaining possibilities are characterized by

maths

Proof. Direct inspection. maths

Algorithm 5.7 (Transcode)   . The automaton described LISTING 3 can be summarized as:

maths

It takes for input a list of positive integers and gives for output three lists of natural integers. The way each element of the initial list is translated depends on both the parity of the element and the current state of the automaton. After each elementary translation, the internal state is updated to another of the 6 permutations of the set maths according to the rules:


actual state ABC ACB BAC BCA CAB CBA
next state when maths is even CBA CAB BCA BAC ACB ABC
next state when maths is odd BCA BAC CBA CAB ABC ACB

When the input list is the period of a quadratic integer maths and the initial state chosen as maths, we will shorten the notations to maths.

Algorithm 5.8   The "combine" procedure, also described in LISTING 3, is designed to deal with zeroes appearing in the output lists of the transcode algorithm. When an ending zero occurs, the list will rotated two places to the right. When an internal zero occurs, it is removed according to maths.


maths

Proposition 5.9   When applying algorithm 5.7 to the period of a quadratic integer of second kind maths :

(i) The final state (say maths) can only be maths, maths or maths.

(ii) Defining maths when maths, maths (the concatenation of the three lists maths, maths and maths) when maths and maths when maths, the period of maths is maths.

(iii) The case maths in theorem 5.2 is nothing but maths while maths is maths.

Proof. Assertion (i) follows from 4.13 and the fact that signatures involved by final state maths are only occurring with quadratic integers of first kind. The remaining three possibilities are the even permutations of maths.

Assertion (ii) follows from the way the transition table has been built. Equations 5.3 have all the form maths and the algorithm consists into finding prefixes and suffixes such that any maths is an integer (or a sequence of integers), the internal prefixes and suffixes canceling according to maths. And we have:

maths

The former identity holds in any cases, but its interpretation must be carefully done. The easiest case is maths (so that maths by lemma 4.13) and maths, leading to maths so that maths by theorem 5.2. But, by 5.3, maths starts by maths and ends by maths (when maths is even) or by maths when maths is odd. The zeroes occurring in maths (if any) are only internal and can be removed by using maths. Thus maths is a list of positive integers and the unique factorization theorem 2.6 applies to maths, proving that maths is (in this case) the period of the confrac expansion of maths.

In the case maths and, for example, maths, we cannot have maths. By theorem 5.2, we have:

maths

and here again maths don't start or end by a zero, leading to the same conclusion as above.


When maths, list maths ever ends by maths and we have (whatever the ending state can be):

maths

where maths is either maths or maths, maths and maths. The conclusion follows since maths is the identity matrix. maths

Remark 5.10   The specificity of maths can be interpreted as follows. When building maths, automaton translates maths into maths so that a two places rotation of maths gives a sequence beginning by maths that leads, after reduction, to a sequence starting by maths as it should be (lemma 4.13).

Algorithm 5.11   Another automaton can be build using the same maths but maths instead of maths. The rules for state transitions remain the same, and the output rules are now:

maths (5.4)

Proposition 5.12   When applying algorithm 5.11 to a quadratic integer of first kind maths such that maths, the final state (say maths) of can only be maths, maths or maths. And we have


maths maths maths maths maths
maths maths maths 0 maths
maths maths maths 1 maths
maths -1 maths 0 maths
maths -1 maths 1 maths
.

Proof. Follows the same guidelines as the proof of proposition 5.9. maths

Remark 5.13   Algorithm 5.11 can be shortened into :

maths

From proposition 5.12, we start and stop in state maths and use maths when maths is odd, while we start and stop in state maths and use maths when maths is even.

Theorem 5.14   Let maths be maths or maths and maths be positive integers such that

maths (5.5)

Then it exists maths such that

maths

Conversely, when maths we have maths and, for all other maths, the period length of maths and maths obey to relations 5.5.

FIG.  5.1: Eventual values for the pair maths.
[When maths.]maths [When maths.]maths

Proof. This theorem will be proven by the following lemma. maths

Lemma 5.15   Inequalities (2) and (4) hold and equality occur iff maths.

Proof. From algorithm 3 we have maths and equality holds if and only if no zeroes occur, i.e. when maths. When maths (i.e. when maths is odd), we have exactly maths since any quotient leads to exactly five numbers (what depends on the internal state is the way these numbers are affected to the three output lists).

When maths is even, automaton ends in state maths, and maths. Therefore any maths quotient generates at most three maths quotients. In order to maximize maths, we have to go in state maths as soon as possible (implying maths to be odd) and then remain in this state (implying others maths to be even). In any case, the first two maths quotients generate only two maths quotients, leading to the maths in inequality (2). maths

Lemma 5.16   We have maths and equality occur iff maths or maths is an "any, one, one" pattern.

Proof. From algorithm 5.11, we have maths. Since the first maths quotient is ever even, it follows from 5.4 that maths. Again from 5.4, assuming that maths, maths can only be achieved when all the maths are even and at least maths, leading to an "any, one, one" pattern for maths (and therefore maths). The special case maths appears from the fact that maths collapses into maths (and therefore maths). maths

Lemma 5.17   When maths, we have maths. Apart from maths, inequality (1) i.e. maths ever holds. When, additionally maths, (1) can be refined into maths.

Proof. Let maths and obtain maths by substituting all maths by maths and all maths by maths, other quotients remaining the same. Choosing maths, we have maths from maths and lemma 5.15. Thus maths. Going back to maths from maths introduces two zeroes in maths and a maths-decrease of maths, while going back to maths from maths introduces one zero in maths and a maths-decrease of maths. From the palindromic property and the fact that middle element is odd or none, the maths occur by pairs, proving the first affirmation.

In order to obtain maths, the maximal length maths should decrease by maths. This can only happens if all quotients, including maths, were maths. But maths implies maths. Otherwise maths , i.e. (1) holds and equality implies that maths is a "nothing but ones" pattern. From proposition 4.15, such a pattern leads to maths when maths: in this case maths is forbidden and we must have maths. maths

Lemma 5.18   When k=1, maths. When, additionally maths then (4) can be refined into maths.

Proof. Let maths, obtain maths by substituting all maths by maths and all maths by maths (other quotients remaining the same) and choose maths. It follows from 5.13 that at each stage input+output is maths or maths so that maths. Therefore maths. The eventual difference between maths and maths is caused by occurrence of zeroes in maths. But maths is palindromic, and it's middle element cannot be 0 from corollary 4.11 : the zeroes occur by pairs and maths is proven.

From the proof of lemma 5.15, equality occurs in (4) when maths is odd, and the other maths are even. But the middle element of maths can only be odd or none. Therefore maths is forbidden when maths is even. maths

Lemma 5.19   All possibilities not excluded by 5.5 are actually reached.

Proof. When maths, the following table describe how to construct an maths such that maths and maths have the requested length. Column maths gives a pattern such that maths. When substituting a palindromic pair of non-middle maths by a pair of maths, maths decrease by maths. When substituting a middle maths by maths or a pair of maths by a pair of maths, maths decrease by maths. When maths, this maths-decrease can be achieved by a substitution maths acting over a well chosen pair.

maths

In the maths case, the descent from maths down to maths is easier to describe when split into two overlapping processes, the first one descending from maths down to maths :

maths

and the other one from maths down to maths.

maths

A direct examination of what happens when maths and maths completes the proof. maths

Fact 5.20   When maths, and maths has a middle element maths then maths and maths (in the general case, maths is even or none). .

Proof. ***********From parity, maths has also a middle element, maths. From maths, maths is "any, one, one" and maths. maths


previous up next
Previous: 4 Patterns Up: Patterns Occurring During the Next: 6 Other Sections


douillet@ensait.fr
2004-02-06