, p, q, r, s ≥ 0.
is called row-balanced if (a < c & b > d) or (c < a & d > b).
and R =
, we express A uniquely as a product of positive powers of L and R, followed by a row-balanced B.
and A =
.
, we note that Ua0··· Ua2n = Ra0La1··· Ra2nU0 and that Ua0··· Ua2n+1 = Ra0La1··· La2n+1I2.The number of terms L and R in the factorisation is returned.
We remark that if A is a positive unimodular matrix, the factorisation cannot consist wholly of powers of R or powers of L.
If r ≥ p and s ≥ q, we take m = min([r/p], [s/q]) if p > 0 and q > 0, m = [r/p] if q = 0 and m = [s/q] if p = 0 and use the identity
= LmB.
= RmB.
(See On continued fractions and finite automata, George N. Raney, Math. Annalen, 206, 265-283 (1973).)
Last modified 5th February 2009
Return to main page