All published worksheets from http://sagenb.org
Image: ubuntu2004
Nonstandard matrix representation of continued fractions
In this workbook I will show matrix representation of continued fractions (CF) different from typical one. In typical representation, two matrix L, and R are used. On the Stern-Brocot tree ( SBTree) representation of CF, matrix R decodes move to the right child and L move to the left child of given SBTree node. We may call it RL representation of CF.
Representation below gives other, complementary picture, where matrix S means "reverse direction" whilst matrix T means "go step forward".I will call it S(ST) representation for te reasons which will be explained below.
Matrix representations of CF, both RL representation and S(ST) form monoids. For monoid S(ST) I wil define ring over rational numbers, with generators I,S,T,L where I is identity matrix, S,T are defined below, and L=ST-TS = [S,T] where [.,.] means "commutator in the ring". Every matrix M representing given CF may be decomposed in the ring Q[S(ST)] into the form M = a*I+b*S+c*T+d*L . Requirement that det(M) = +-1 gives us quadratic form in the vector space [a,b,c,d] which means that every four "a,b,c,d" representing CF lays on quadric with given below equation.
Lets define matrices which will be used below:
CF of may be represented as formula: . For example (please, note the exponents of G in formula below) :
For we obtain:
Matrices S, T and G has several interesting properties:
Teraz komutatory S,T,G:
And another interesting relations:
***************************************
I would like to buld ring Q[{I,S,T,L}] over rational numbers and construct multiplication table of coefficeints where summation over repeating indices is assumed, and . In order to do so, I will have to solve several linear systems od equations for
***************************************
Reasumming - the following elements:
I | S | T | L=[S,T] | G=ST | X=[S,G] | Y=[T,G] | |
macierz | \left(\right) | \left(\right) | \left(\right) | \left(\right) | \left(\right) | \left(\right) | \left(\right) |
forms the folowing multiplication table:
generator | I | S | T | L=[S,T] | G=ST | X=[S,G] | Y=[T,G] |
I | I | S | T | L | G | X | Y |
S | S | I | I+(1/2)S+(1/2)L | -I-2S +2T | T | L | S-T+L |
T | T | I+(1/2)S-(1/2)L | I+T | -I-(5/2)S +2T +(1/2)L | -S+2T | -S +T +L | L |
L | L | I+2S-2T | I+(5/2)S-2T+(1/2)L | -I | S-T+L | S | T |
G | G | I+2S -T | I+(3/2)S +(1/2)L | -I-S+T+L | I+S+L | -I-(3/2)S+2T+(1/2)L | -I-2S +2T |
X | X | -L | -S+T-L | -S | -I-(5/2)S+2T-(1/2)L | I | I+(1/2)S +(1/2)L |
Y | Y | -I -S +T -L | -I-(5/2)S+2T-(3/2)L | I-T | -I-3S+2T-L | I-(1/2)S-(1/2)L | I |
--------------------------------------
What leasd us to the following ring ( in fact noncommutative algebra) wit the following multiplication table, for base elements I,S,T,L
--------------------------------------
generator | I | S | T | L=[S,T] |
I | I | S | T | L |
S | S | I | I+(1/2)S+(1/2)L | -I-2S +2T |
T | T | I+(1/2)S-(1/2)L | I+T | -I-(5/2)S +2T +(1/2)L |
L | L | I+2S-2T | I+(5/2)S -2T +(1/2)L | -I |
Reasaume once again in different way.
We start with monoid S(ST) generated by two generators . are matrices for which so means that for every monoid element M we have . Every element is matrix representation of certain confinued fraction, preciselly - matrix of continuats for such fraction - CF matrix for short.
The monoid has one relation so it means our monoid S(ST) has finite presentation of the form . We have also interesting equation which in fact is algebraic relation outside monoid S(ST) since is has addition inside. So it sugges to to be fruitful to move further to ring over rational numbers Q[S(ST)]. It consists of formal sums of monoid elements with rational coefficients. Of course elements of Q[S(ST)] has determinant which do not obey very important relation so generaly speaking we have new class of elements - elements of ring Q[S(ST)] wich are with loose relation to our starting monoid ad which do not represent any CF matrix.
But now we consider structure described in table above. It consists of elements of ring monoid Q[S(ST)] given by linear comnbinations of four elements namely elements obeying relations from the table. In fact we have to build bigger structure because in the ring Q[S(ST)] element is algebraically independent of S and T. For every element M, every sum and multiply of it by any ring element is also of the form M with some other coefficients a',b',c',d', and then set of elements M is ideal of ring . In fact this ideal is equal to whole ring as every element of may be decomposed to form of M for some coefficients.
But now if we consider some subset of elements M, namely set for which then we get elements of the ring which may represents elements from original monoid and thus may be represeentation of continued fractions.
So set W of a,b,c,d such that is some algebraic curve inside of ideal of monoid ring .
Below we will show the equation for this curve, which as is shown is quadrics.
******************************
Some additional remarks: adding elements from ring we get operations called mediant of monoid elements, but we have to simplify rationals we obtain - so it is operation throwing us outside monoid, but stil inside ring! Multiplying them we "concatenate" continued fractions which is normal monoid operation and also proper ring operation. Also normal addition and multiplication of ordinary continued fractions ( which valuse are normal rational numbers) generates some internal operations in the monoid . In any of this cases we start from two rational numbers represented by some matrices M and M' in the and at the end we obtain another number represented by element of - so our algebraic qurve nas interesting algebraic structure on it.
There is another,interesting property. For a given continuant matrix ParseError: KaTeX parse error: Unknown column alignment: a at position 26: … \begin{array}{a̲|b}a&b\\c&d\end… we may compute continued fraction value:
where is of course trace matrix operation.
So this is reverse operation to this defined by MCFFR, and it is given explicite!