## Navigating in the Cayley graphs of $S{L}_{N}\left(\mathbb{Z}\right)$and $S{L}_{N}\left({\mathbb{F}}_{p}\right)$

### October 2004

Abstract
We give a non-deterministic algorithm that expresses elements of $S{L}_{N}\left(\mathbb{Z}\right)$  , for $N\ge 3$  , as words in a finite set of generators, with the length of these words at most a constant times the word metric. We show that the non-deterministic time-complexity of the subtractive version of Euclid's algorithm for finding the greatest common divisor of $N\ge 3$  integers ${a}_{1},\dots ,{a}_{N}$  is at most a constant times $Nlogn$  where $n:=max\left\{|{a}_{1}|,\dots ,|{a}_{N}|\right\}$  . This leads to an elementary proof that for $N\ge 3$  the word metric in $S{L}_{N}\left(\mathbb{Z}\right)$  is biLipschitz equivalent to the logarithm of the matrix norm – an instance of a theorem of Mozes, Lubotzky and Raghunathan. And we show constructively that there exists $K>0$  such that for all $N\ge 3$  and primes $p$  , the diameter of the Cayley graph of $S{L}_{N}\left({\mathbb{F}}_{p}\right)$  with respect to the generating set $\left\{{e}_{ij}|i\ne j\right\}$  is at most $K{N}^{2}logp$  .
2000 Mathematics Subject Classification: 20F05 Key words and phrases: special linear, normal form, diameter, Cayley graph, Euclid's algorithm

1 Introduction

This paper concerns expressing elements of $S{L}_{N}\left(\mathbb{Z}\right)$  and $S{L}_{N}\left({\mathbb{F}}_{p}\right)$  , for $N\ge 3$  , as words in the generating set $\left\{{e}_{ij}|i\ne j\right\}$  consisting of the ${N}^{2}-N$  elementary matrices ${e}_{ij}$  that have $1$  's along the diagonal, the off-diagonal $ij$  -entry $1$  , and all other entries 0.
What gets our study off the ground is an explicit means of writing powers ${{e}_{ij}}^{m}$  in $S{L}_{N}\left(\mathbb{Z}\right)$  , for $N\ge 3$  , as products of $O\left(log\left(1+|m|\right)\right)$  matrices in ${\left\{{e}_{ij}|i\ne j\right\}}^{±1}$  . This is explained in Section  2 and involves expressing $m$  as a sum of Fibonacci numbers. It is used (in Section  3 ) in a study of the non-deterministic time complexity of the subtractive Euclid's algorithm for finding the greatest common divisor of integers ${a}_{1},\dots ,{a}_{N}$  . This differs from the standard Euclid's algorithm in that in each step one integer is added to or subtracted from another, rather than a remainder on division taken.
Yao and Knuth [? proved that the average number of steps to compute $gcd\left(m,n\right)$  by the (deterministic) subtractive version of Euclid's algorithm, where $m$  is uniformly distributed in the range $1\le m\le n$  , is $6{\pi }^{-2}\left(lnn{\right)}^{2}+O\left(logn\left(loglogn{\right)}^{2}\right)$  . We show that the worst–case non–deterministic complexity of Euclid's algorithm for computing the g.c.d. of $N\ge 3$  integers $\left({a}^{1},\dots ,{a}^{N}\right)$  is $O\left(Nlogn\right)$  , where $n:=max\left\{|{a}^{1}|,\dots ,|{a}^{N}|\right\}$  .
Theorem  3.1 Suppose $\left({a}^{1},\dots ,{a}^{N}\right)$  is an $N$  -tuple of integers, not all zero, and $N\ge 3$  . Define $n:=max\left\{|{a}^{1}|,\dots ,|{a}^{N}|\right\}$  . There is a constant $K>0$  , independent of $n$  and $N$  , such that there is a sequence of no more than $K\left(N-1\right)\left(1+logn\right)$  additions and subtractions of one entry from another, after which all but one entry in the $N$  -tuple are zero.
The innovation is to use the compression techniques of Section  2 to accelerate repeated additions or subtractions of one entry to or from another. By contrast, the non–deterministic complexity is $\sim n$  in the case $N=2$  – we supply a group theoretic proof of this, presumably well-known, result. A vivid example is that it requires $|n|$  steps (additions and subtractions) to convert $\left(1,n\right)$  to $\left(1,0\right)$  , but $\left(1,n,0\right)$  can be reduced to $\left(1,0,0\right)$  in $O\left(log|n|\right)$  steps.
Then, in Section  4 , we run our accelerated version of Euclid's algorithm of Section  3 on the columns of a matrix $\mathcal{ℳ}$  in $S{L}_{N}\left(\mathbb{Z}\right)$  , in the course of reducing $\mathcal{ℳ}$  to the identity by row operations. This leads to a new proof of an instance of a celebrated theorem of Mozes, Lubotzky and Raghunathan [?, [?, and we contribute information about the constants:
Theorem  4.1 Fix $N\ge 3$  . Let $\ell \left(\mathcal{ℳ}\right)$  denote the word length of $\mathcal{ℳ}\in S{L}_{N}\left(\mathbb{Z}\right)$  , with respect to a fixed finite generating set. There exist ${C}_{1},{C}_{2}>0$  such that for all $\mathcal{ℳ}\in S{L}_{N}\left(\mathbb{Z}\right)$  ${C}_{1}log||\mathcal{ℳ}||\le \ell \left(\mathcal{ℳ}\right)\le {C}_{2}log||\mathcal{ℳ}||.$  Moreover, if the generating set is $\left\{{e}_{ij}|i\ne j\right\}$  then ${C}_{1}$  is independent of $N$  and ${C}_{2}\le {C}_{3}{N}^{N}$  for a constant ${C}_{3}>0$  that is independent of $N$  .
Our proof of Theorem  4.1 is constructive (as are the proofs of the results in Sections  2 and  3 it appeals to) and amounts to an effective algorithm for finding a normal form for $S{L}_{N}\left(\mathbb{Z}\right)$  for $N\ge 3$  – that is, for every $\mathcal{ℳ}\in S{L}_{N}\left(\mathbb{Z}\right)$  , a word ${w}_{\mathcal{ℳ}}$  on a fixed finite generating set and representing $\mathcal{ℳ}$  .
Equivalently, a normal form is a choice for all $\mathcal{ℳ}$  of path in the Cayley graph from the identity to $\mathcal{ℳ}$  . By homogeneity, it amounts to a means of navigating between any two vertices in the graph.
Our normal form for $S{L}_{N}\left(\mathbb{Z}\right)$  is of linearly bounded length ; that is, there exists $K>0$  such that for all $\mathcal{ℳ}\in S{L}_{N}\left(\mathbb{Z}\right)$  , the length of ${w}_{\mathcal{ℳ}}$  is at most $K$  times the length $\ell \left(\mathcal{ℳ}\right)$  of the shortest word that represents $\mathcal{ℳ}$  . This is because, the length of ${w}_{\mathcal{ℳ}}$  is at most ${C}_{2}log||\mathcal{ℳ}||$  , on account of its role in the proof of Theorem  4.1 , and ${C}_{2}log||M||\le \left({C}_{2}/{C}_{1}\right)\ell \left(\mathcal{ℳ}\right)$  .
The author's original motivation for embarking on the work in this article was a potential application to the construction of van Kampen diagrams to establish certain isoperimetric functions (concerning filling loops with discs):
a long-standing claim of Thurston, originally quoted in [? and repeated in [?,§5.A8̇, is that ${\text{SL}}_{N}\left(\mathbb{Z}\right)$  admits a quadratic isoperimetric function for all $N\ge 4$  . By contrast, Epstein and Thurston showed that the minimal isoperimetric function for $S{L}_{3}\left(\mathbb{Z}\right)$  grows at least exponentially [?,Chapter 10. By a theorem of Gromov [?,§5A7̇, $S{L}_{3}\left(\mathbb{Z}\right)$  admits an exponential isoperimetric function. The author hopes the normal form will be of use towards proving Thurston's assertion and giving an elementary proof of Gromov's result.
However there may be formidable obstacles; the geometry of the normal form has to be complicated in the following sense. For $N\ge 3$  , no normal form for $S{L}_{N}\left(\mathbb{Z}\right)$  of linearly bounded length can (either synchronously or asynchronously ) fellow-travel. This result was proved by Epstein and Thurston [?,Chapter 10to show that $S{L}_{N}\left(\mathbb{Z}\right)$  is not automatic for $N\ge 3$  ; they use isoperimetric inequalities concerning filling $\left(N-2\right)$  -spheres with $\left(N-1\right)$  -balls (we mentioned the case $N=3$  above).
Finally, in Section  5 , we apply similar techniques to $S{L}_{N}\left({\mathbb{F}}_{p}\right)$  . We find a normal form and prove the following result about Cayley graph diameter. Theorem  5.1 There exists $C>0$  such that for all $N\ge 3$  and primes $p$  , $DiamCay\left(S{L}_{N}\left({\mathbb{F}}_{p}\right),\left\{{e}_{ij}|i\ne j\right\}\right)\le C{N}^{2}logp.$  We remark, for comparison, that a lower bound on the diameter of a constant times $\left({N}^{2}/logN\right)logp$  follows from $|S{L}_{N}\left({\mathbb{F}}_{p}\right)|\sim {p}^{{N}^{2}-1}$  because $|\left\{{e}_{ij}|i\ne j\right\}|={N}^{2}-N$  .
Define ${\mathcal{A}}_{N}:=\left(\begin{array}{ccccc}1& 1& & & \\ & 1& & & \\ & & 1& & \\ & & & ...& \\ & & & & 1\end{array}\right),{\mathcal{ℬ}}_{N}:=\left(\begin{array}{ccccc}0& 1& & & \\ & 0& 1& & \\ & & 0& ...& \\ & & & ...& 1\\ \left(-1{\right)}^{N-1}& & & & 0\end{array}\right).$  In Lemma  5.2 (which is due to M. Kassabov) we show using elementary, constructive means that every ${e}_{ij}$  equals a word in ${{\mathcal{A}}_{N}}^{±1}$  and ${{\mathcal{ℬ}}_{N}}^{±1}$  of length at most $10N$  . Applying this to Theorem  5.1 we get:
Corollary 1.1 There exists $C>0$  such that for all $N\ge 3$  and primes $p$  , $DiamCay\left(S{L}_{N}\left({\mathbb{F}}_{p}\right),\left\{{\mathcal{A}}_{N},{\mathcal{ℬ}}_{N}\right\}\right)\le C{N}^{3}logp.$
Lubotzky [? explains a non-constructive proof that given $N\ge 3$  and a generating set $X$  for $S{L}_{N}\left(\mathbb{Z}\right)$  , there exists $K>0$  , that will depend on $N$  and potentially (see Problem  1.5 below) on $X$  , such that $DiamCay\left(S{L}_{N}\left({\mathbb{F}}_{p}\right),X\right)\le Klogp$  for all primes $p$  : since $S{L}_{N}\left(\mathbb{Z}\right)$  enjoys Property (T ) for $N\ge 3$  , the graphs $\left\{Cay\left(S{L}_{N}\left(\mathbb{Z}/n\mathbb{Z}\right),X\right)|n\in \mathbb{N}\right\}$  are a family of expanders, and the result follows. This article supplies an elementary, constructive proof that avoids the big guns of Property (T ) and Selberg's Theorem. The prior absence of such a proof is lamented on of [?,page102.
The argument above can be made quantitative as follows to yield a result that is weaker than that of Theorem  5.1 in that it gives ${N}^{3}$  in place of the ${N}^{2}$  term in the estimate. Kassabov [?, extending methods of Shalom [?, [?, shows that the Kazhdan constant for $S{L}_{N}\left({\mathbb{F}}_{p}\right)$  with respect to $\left\{{e}_{ij}|i\ne j\right\}$  is at least $k:=\left(31\sqrt{N}+700{\right)}^{-1}$  . Define ${\Gamma }_{N,p}:=Cay\left(S{L}_{N}\left({\mathbb{F}}_{p}\right),\left\{{e}_{ij}|i\ne j\right\}\right)$  .
The first non-zero eigenvalue ${\lambda }_{1}$  of the discrete Laplacian on ${l}_{2}\left({\Gamma }_{N,p}\right)$  is $1-s$  where $s$  is the spectral gap; $s\ge {k}^{2}/2$  by [?; and $Diam{\Gamma }_{N,p}\le -\left(log2|S{L}_{N}\left({\mathbb{F}}_{p}\right)|\right)/\left(log{\lambda }_{1}\right)$  by [?,Proposition 5.24. In fact, any upper bound on diameter obtained this way is also an upper bound on mixing time of the random walk on the Cayley graph, and so Theorem  5.1 suggests that, as is often the case, mixing time and diameter differ for ${\Gamma }_{N,p}$  .
It is an open question $\text{1}$  [?,Problem8.1.3whether the ${N}^{3}$  of Corollary  1.1 can be improved to ${N}^{2}$  . Such a result would be best possible because $|S{L}_{N}\left({\mathbb{F}}_{p}\right)|\sim {p}^{{N}^{2}-1}$  . Lubotzky, himself, gets close by proving with Babai and Kantor:
Proposition 1.2 [?, [?,Proposition8.1.7There exists $C>0$  such that for all $N\ge 3$  and primes $p$  , there is a set $S$  of three generators for $S{L}_{N}\left({\mathbb{F}}_{p}\right)$  such that $DiamCay\left(S{L}_{N}\left({\mathbb{F}}_{p}\right),S\right)\le C{N}^{2}logp.$  In fact, $S$  can be taken to be $\left\{{\mathcal{A}}_{N},{\mathcal{ℬ}}_{N},{\mathcal{C}}_{N}\right\}$  where ${\mathcal{A}}_{N}$  and ${\mathcal{ℬ}}_{N}$  are defined above and ${\mathcal{C}}_{N}:={e}_{12}{{e}_{21}}^{-1}{e}_{12}$  .
The proof in [? appeals to Selberg's Theorem, but the proof in [? is constructive and elementary save that “unnatural” generators of $S{L}_{2}\left({\mathbb{F}}_{p}\right)\le S{L}_{N}\left({\mathbb{F}}_{p}\right)$  are used in place of ${\mathcal{A}}_{N}$  and ${\mathcal{C}}_{N}$  . An alternative route to Corollary  1.1 is to apply Lemma  5.2 to Proposition  1.2 .
The following problems provide a wider context for the study of diameters of Cayley graphs of $S{L}_{N}\left({\mathbb{F}}_{p}\right)$  .
Problem 1.3 Fix $N\ge 3$  . Does $S{L}_{N}\left(\mathbb{Z}\right)$  enjoy uniform Property (T )?
Problem 1.4 (An Independence Problem for $S{L}_{N}\left(\mathbb{Z}\right)$  .) Fix $N\ge 3$  . Is $\left\{Cay\left(S{L}_{N}\left(\mathbb{Z}\right)/H,X\right)|\left[S{L}_{N}\left(\mathbb{Z}\right):H\right]<\infty ,〈X〉=S{L}_{N}\left(\mathbb{Z}\right)\right\}$  a family of expanders?
Problem 1.5 Fix $N\ge 2$  . Does there exist $K>0$  such that for all generating sets $X$  for $S{L}_{N}\left(\mathbb{Z}\right)$  and all primes $p$  $DiamCay\left(S{L}_{N}\left({\mathbb{F}}_{p}\right),X\right)\le Klogp?$
For fixed $N\ge 3$  , an affirmative answer to Problem  1.3 would imply an affirmative answer to  1.4 , and that, in turn, would imply an affirmative answer to  1.5 . In the case $N=2$  , the same implications apply between  1.5 and the following analogues of  1.3 and  1.4 : does $S{L}_{2}\left(\mathbb{Z}\right)$  enjoy uniform Property ( $\tau$  ) with respect to congruence subgroups (“The Selberg Property” [?), and is $\left\{Cay\left(S{L}_{2}\left(\mathbb{Z}/m\mathbb{Z}\right),X\right)|〈X〉=S{L}_{2}\left(\mathbb{Z}\right)\right\}$  a family of expanders?
More details can be found in [? and [?; groups in which the analogue of Problem  1.3 has a negative answer are constructed in [?; the original (more general) independence problems are in [?; and a rare example of an independence result is due to Gamburd [? who (roughly speaking) finds a large class of generating sets $X$  for $S{L}_{2}\left(\mathbb{Z}\right)$  and primes $p$  for which $Cay\left(S{L}_{2}\left({\mathbb{F}}_{p}\right),X\right)$  forms a family of expanders.
We briefly mention related results for $S{L}_{N}\left(\mathbb{Z}\right)$  and $S{L}_{N}\left({\mathbb{F}}_{p}\right)$  when $N=2$  .
Property ( $\tau$  ) is enjoyed by $S{L}_{2}\left(\mathbb{Z}\right)$  as a consequence of Selberg's Theorem (see [?, [?, [?), and so for any fixed finite generating set $X$  for $S{L}_{2}\left(\mathbb{Z}\right)$  , we find $\left\{Cay\left(S{L}_{N}\left({\mathbb{F}}_{p}\right),X\right)|p\text{prime}\right\}$  is a family of expanders. So there exists $K>0$  such that $DiamCay\left(S{L}_{2}\left({\mathbb{F}}_{p}\right),X\right)\le Klogp$  for all primes $p$  . This proof (explained in [?) is not constructive and neither is the only other known proof, which uses the circle method for lifting elements of $S{L}_{2}\left({\mathbb{F}}_{p}\right)$  to elements of $S{L}_{2}\left(\mathbb{Z}\right)$  with short word representations [?. But Larsen [? has given an algorithm that produces word representations of length $O\left(logploglogp\right)$  . In common with this article, representing powers such as ${{e}_{12}}^{m}$  by short words is key, and the subtractive version of Euclid's algorithm plays a role.
Another constructive result is due to Gamburd and Shahshahani [? and is in the direction of Problem  1.5 in the case $N=2$  . They give an algorithm that produces paths in Cayley graphs to prove the following uniform diameter bound: for all primes $p>2$  , and for all finite sets $X$  of elements of $PS{L}_{2}\left(\mathbb{Z}\right)$  such that $〈X〉$  is a ${p}^{2}$  -dense subgroup of $PS{L}_{2}\left(\mathbb{Z}\right)$  $DiamCay\left(PS{L}_{2}\left(\mathbb{Z}/{p}^{n}\mathbb{Z}\right),X\right)=c{log}^{d}|PS{L}_{2}\left(\mathbb{Z}/{p}^{n}\mathbb{Z}\right)|,$  where $d={log}_{2}420$  and $c$  depends on $X$  . This has been recently improved by Dinai [? who shows that for all $d>3$  , there exists $c>0$  such that $DiamCay\left(S{L}_{2}\left(\mathbb{Z}/{p}^{n}\mathbb{Z}\right),X\right)\le c{log}^{d}|S{L}_{2}\left(\mathbb{Z}/{p}^{n}\mathbb{Z}\right)|$  for all generating sets $X$  for $S{L}_{2}\left(\mathbb{Z}\right)$  .
Acknowledgements. I am grateful to Tsachik Gelander, Martin Kassabov and Alex Lubotzky for explaining background to the subject of diameters of the Cayley graphs of $S{L}_{N}\left({\mathbb{F}}_{p}\right)$  to me, and to Karen Vogtmann for encouragement to investigate Thurston's claims about isoperimetric function for $S{L}_{N}\left(\mathbb{Z}\right)$  .
I additionally wish to thank Martin Kassabov for providing Lemma  5.2 , improving a lemma in an earlier version of this article.

$\text{1}$  Added 31st January, 2005: this question has been answered in the affirmative by M. Kassabov and the author.

2 Compressing powers ${{e}_{ij}}^{m}$

This section is devoted to proving the following result about representing powers ${{e}_{ij}}^{m}$  in $S{L}_{N}\left(\mathbb{Z}\right)$  by words of length $O\left(log\left(1+|m|\right)\right)$  .
Proposition 2.1 Suppose $N,m,i,j\in \mathbb{Z}$  with $N\ge 3$  , with $1\le i,j\le N$  , and with $i\ne j$  . There exists a word ${w}_{m}\in {\left\{{{e}_{pq}}^{±1}|1\le p,q\le N,p\ne q\right\}}^{◆}$  such that ${w}_{m}={{e}_{ij}}^{m}$  in $S{L}_{N}\left(\mathbb{Z}\right)$  and $\ell \left(w\right)\le 4+6{log}_{\tau }\left(1+|m|\sqrt{5}\right).$
It suffices to prove the result for $N=3,m>0,i=1$  and $j=3$  , which we do by giving ${w}_{m}$  explicitly in the second of the two lemmas below. The first lemma addresses the case where $m$  is a Fibonacci number (defined recursively by ${F}_{0}=0,{F}_{1}=1,{F}_{i+2}={F}_{i+1}+{F}_{i}$  ), and will be superseded by the second lemma. The detailed calculation in the proof of the first lemma is key to understanding the proof of the second.
Lemma 2.2 For non-negative integers $n$  , the words
${{e}_{23}}^{-1}\left({e}_{23}{e}_{32}{\right)}^{-n}{{e}_{13}}^{-1}\left({e}_{23}{e}_{32}{\right)}^{n}{{e}_{23}}^{-1}\left({e}_{23}{e}_{32}{\right)}^{-n}{e}_{13}\left({e}_{23}{e}_{32}{\right)}^{n}{{e}_{23}}^{2},$  and ${{e}_{23}}^{-1}\left({e}_{23}{e}_{32}{\right)}^{-n}{{e}_{12}}^{-1}\left({e}_{23}{e}_{32}{\right)}^{n}{{e}_{23}}^{-1}\left({e}_{23}{e}_{32}{\right)}^{-n}{e}_{12}\left({e}_{23}{e}_{32}{\right)}^{n}{{e}_{23}}^{2}$
equal ${{e}_{13}}^{{F}_{2n}}$  and ${{e}_{13}}^{{F}_{2n+1}}$  , respectively, in $S{L}_{3}\left(\mathbb{Z}\right)$  .
Proof. We multiply out the first of these words from right to left as follows.
The calculation for the second is very similar. The notation for each step shown is $\mathcal{A}-\to \mathcal{ℬ}\mathcal{ℬ}\mathcal{A}$  .
$\left(\begin{array}{ccc}1& 0& 0\\ 0& 1& 0\\ 0& 0& 1\end{array}\right)$  $-----\to {{e}_{23}}^{2}$  $\left(\begin{array}{ccc}1& 0& 0\\ 0& 1& 2\\ 0& 0& 1\end{array}\right)$  $-----\to \left({e}_{23}{e}_{32}{\right)}^{n}$  $\left(\begin{array}{ccc}1& 0& 0\\ 0& {F}_{2n+1}& {F}_{2n+3}\\ 0& {F}_{2n}& {F}_{2n+2}\end{array}\right)$  $----\to {e}_{13}$  $\left(\begin{array}{ccc}1& {F}_{2n}& {F}_{2n+2}\\ 0& {F}_{2n+1}& {F}_{2n+3}\\ 0& {F}_{2n}& {F}_{2n+2}\end{array}\right)$  $-----\to \left({e}_{23}{e}_{32}{\right)}^{-n}$  $\left(\begin{array}{ccc}1& {F}_{2n}& {F}_{2n+2}\\ 0& 1& 2\\ 0& 0& 1\end{array}\right)$  $----\to {{e}_{23}}^{-1}$  $\left(\begin{array}{ccc}1& {F}_{2n}& {F}_{2n+2}\\ 0& 1& 1\\ 0& 0& 1\end{array}\right)$  $-----\to \left({e}_{23}{e}_{32}{\right)}^{n}$  $\left(\begin{array}{ccc}1& {F}_{2n}& {F}_{2n+2}\\ 0& {F}_{2n+1}& {F}_{2n+2}\\ 0& {F}_{2n}& {F}_{2n+1}\end{array}\right)$  $----\to {{e}_{13}}^{-1}$  $\left(\begin{array}{ccc}1& 0& {F}_{2n}\\ 0& {F}_{2n+1}& {F}_{2n+2}\\ 0& {F}_{2n}& {F}_{2n+1}\end{array}\right)$  $-----\to \left({e}_{23}{e}_{32}{\right)}^{-n}$  $\left(\begin{array}{ccc}1& 0& {F}_{2n}\\ 0& 1& 1\\ 0& 0& 1\end{array}\right)$  $----\to {{e}_{23}}^{-1}$  $\left(\begin{array}{ccc}1& 0& {F}_{2n}\\ 0& 1& 0\\ 0& 0& 1\end{array}\right)$
The following result can be proved by an easy induction.
Zeckendorf 's Theorem [?, [?. Every positive integer $m$  can be expressed in a unique way as
 $\begin{array}{c}m={F}_{{k}_{1}}+{F}_{{k}_{2}}+\cdots +{F}_{{k}_{r}},\end{array}$ (1)
with ${k}_{1}\ge 2$  and ${k}_{j+1}-{k}_{j}\ge 2$  for all $1\le j  .
In fact, ${F}_{{k}_{r}}$  is the largest Fibonacci number no bigger than $m$  , and ${F}_{{k}_{r-1}}$  is the largest no bigger than $m-{F}_{{k}_{r}}$  , and so on. Recall that ${F}_{n}=\left({\tau }^{n}-\left(-\tau {\right)}^{-n}\right)/\sqrt{5}$  for all $n$  , where $\tau :=\left(1+\sqrt{5}\right)/2$  , and so
 $\begin{array}{c}{F}_{n}\ge \frac{{\tau }^{n}-1}{\sqrt{5}}.\end{array}$ (2)
Thus, as ${F}_{{k}_{r}}\le m$  ,
 $\begin{array}{ccc}{k}_{r}& \le & {log}_{\tau }\left(1+m\sqrt{5}\right).\end{array}$ (3)
Lemma 2.3 Suppose $m$  is a positive integer expressed as in ( 1 ). Write $m=\left({F}_{{\stackrel{^}{k}}_{1}}+{F}_{{\stackrel{^}{k}}_{2}}+\cdots +{F}_{{\stackrel{^}{k}}_{\stackrel{^}{r}}}\right)+\left({F}_{{\overline{k}}_{1}}+{F}_{{\overline{k}}_{2}}+\cdots +{F}_{{\overline{k}}_{\overline{r}}}\right)$  where ${\stackrel{^}{k}}_{1}<\dots <{\stackrel{^}{k}}_{\stackrel{^}{r}}$  are the even numbers amongst ${k}_{1},\dots ,{k}_{r}$  and ${\overline{k}}_{1}<\dots <{\overline{k}}_{\overline{r}}$  are the odd numbers. Let $n$  be the integer such that either $2n={k}_{r}$  or $2n+1={k}_{r}$  . Let ${u}_{m}$  be the word ${a}_{n}{b}_{n}\left({e}_{23}{e}_{32}\right)\dots {a}_{2}{b}_{2}\left({e}_{23}{e}_{32}\right){a}_{1}{b}_{1}\left({e}_{23}{e}_{32}\right)$  in which ${a}_{i}={e}_{13}$  if $2i\in \left\{{\stackrel{^}{k}}_{1},\dots ,{\stackrel{^}{k}}_{\stackrel{^}{r}}\right\}$  and is the empty string otherwise, and ${b}_{i}={e}_{12}$  if $2i+1\in \left\{{\overline{k}}_{1},\dots ,{\overline{k}}_{\overline{r}}\right\}$  and is the empty string otherwise. Let ${v}_{m}$  be the word obtained from ${u}_{m}$  by replacing every ${e}_{12}$  and ${e}_{13}$  by ${{e}_{12}}^{-1}$  and ${{e}_{13}}^{-1}$  , respectively. Define ${w}_{m}:={{e}_{23}}^{-1}\left({e}_{23}{e}_{32}{\right)}^{-n}{v}_{m}{{e}_{23}}^{-1}\left({e}_{23}{e}_{32}{\right)}^{-n}{u}_{m}{{e}_{23}}^{2}.$  Then ${w}_{m}$  equals ${{e}_{13}}^{m}$  in $S{L}_{3}\left(\mathbb{Z}\right)$  and has length
 $\begin{array}{ccc}\ell \left({w}_{m}\right)\le 4+6{log}_{\tau }\left(1+m\sqrt{5}\right).& & \end{array}$ (4)
Proof. Lemma  2.2 is a special case of this lemma: when $m={F}_{2n}$  we find ${u}_{m}={e}_{13}\left({e}_{23}{e}_{32}{\right)}^{n}$  and ${v}_{m}={{e}_{13}}^{-1}\left({e}_{23}{e}_{32}{\right)}^{n}$  , and when $m={F}_{2n+1}$  we find ${u}_{m}={e}_{12}\left({e}_{23}{e}_{32}{\right)}^{n}$  and ${v}_{m}={{e}_{12}}^{-1}\left({e}_{23}{e}_{32}{\right)}^{n}$  . Multiply out ${w}_{m}$  from right to left, as follows, using a more general and concise version of the calculation used to establish Lemma  2.2 . All the sums are over $i=1,\dots ,r$  .
$\left(\begin{array}{ccc}1& 0& 0\\ 0& 1& 2\\ 0& 0& 1\end{array}\right)$  $-----\to {u}_{n}$  $\left(\begin{array}{ccc}1& \sum {F}_{{k}_{i}}& \sum {F}_{{k}_{i}+2}\\ 0& {F}_{2n+1}& {F}_{2n+3}\\ 0& {F}_{2n}& {F}_{2n+2}\end{array}\right)$  $---------\to \left({e}_{23}{e}_{32}{\right)}^{-n}$  $\left(\begin{array}{ccc}1& \sum {F}_{{k}_{i}}& \sum {F}_{{k}_{i}+2}\\ 0& 1& 2\\ 0& 0& 1\end{array}\right)$  $---------\to {v}_{m}{{e}_{23}}^{-1}$  $\left(\begin{array}{ccc}1& 0& \sum \left({F}_{{k}_{i}+2}-{F}_{{k}_{i}+1}\right)\\ 0& {F}_{2n+1}& {F}_{2n+2}\\ 0& {F}_{2n}& {F}_{2n+1}\end{array}\right)$  $---------\to {{e}_{23}}^{-1}\left({e}_{23}{e}_{32}{\right)}^{-n}$  $\left(\begin{array}{ccc}1& 0& \sum {F}_{{k}_{i}}\\ 0& 1& 0\\ 0& 0& 1\end{array}\right).$
The length of ${w}_{m}$  is $4+8n+2r$  , from which we get ( 4 ) by using ( 3 ), $r\le {k}_{r}$  and $n\le {k}_{r}/2$  .

3 Accelerating the subtractive version of Euclid's algorithm

The subtractive version of Euclid's algorithm for finding the greatest common divisor of an $N$  -tuple of integers differs from the standard Euclid's algorithm in that at each step an addition or subtraction is made rather than a remainder taken. That is, in one step an $N$  -tuple $\left({a}_{i+1}^{1},\dots ,{a}_{i+1}^{N}\right)$  is produced from the previous $k$  -tuple $\left({a}_{i}^{1},\dots ,{a}_{i}^{N}\right)$  , as follows. Take $p$  and $q$  so that ${a}_{i}^{p}$  and ${a}_{i}^{q}$  have the greatest and second greatest absolute values amongst ${a}_{i}^{1},\dots ,{a}_{i}^{N}$  . (To resolve dead-heats, take $p$  minimal, and then take $q$  minimal amongst the remaining indices.) Define ${a}_{i+1}^{p}:={a}_{i}^{p}±{a}_{i}^{p}$  , with the sign chosen so that $|{a}_{i+1}^{p}|<|{a}_{i}^{p}|$  , and define ${a}_{i+1}^{j}:={a}_{i}^{j}$  for all $j\ne p$  . Stop when all but one entry is zero and output the absolute value of that entry.
For example, in 6 steps the algorithm gives $gcd\left(-32,8,-12\right)=4$  :
$\left(-32,8,-12\right)↦\left(-20,8,-12\right)↦\left(-8,8,-12\right)↦\left(-8,8,-4\right)$  $↦\left(0,8,-4\right)↦\left(0,4,-4\right)↦\left(0,0,-4\right).$  There is a non–deterministic version of this algorithm in which obtaining $\left({a}_{i+1}^{1},\dots ,{a}_{i+1}^{N}\right)$  from $\left({a}_{i}^{1},\dots ,{a}_{i}^{N}\right)$  by adding one entry to another or by subtracting one entry from another constitutes a step. Again, the algorithm stops when all but one entry is zero, and the output is the absolute value of that entry.
Yao and Knuth [? proved that the average number of steps to compute $gcd\left(m,n\right)$  by the (deterministic) subtractive version of Euclid's algorithm, where $m$  is uniformly distributed in the range $1\le m\le n$  , is $6{\pi }^{-2}\left(lnn{\right)}^{2}+O\left(logn\left(loglogn{\right)}^{2}\right)$  . We will show that the worst–case non–deterministic complexity of Euclid's algorithm for computing the $gcd$  of $N\ge 3$  integers $\left({a}^{1},\dots ,{a}^{N}\right)$  is $O\left(logn\right)$  , where $n:=max\left\{|{a}^{1}|,\dots ,|{a}^{N}|\right\}$  . (In particular, the greatest common divisor of two integers $\left({a}^{1},{a}^{2}\right)$  can be calculated non-deterministically in $O\left(log\left(n\right)\right)$  steps by starting with $\left({a}^{1},{a}^{2},0\right)$  .) That is, we prove:
Theorem 3.1 Suppose $\left({a}^{1},\dots ,{a}^{N}\right)$  is an $N$  -tuple of integers, not all zero, and $N\ge 3$  . Define $n:=max\left\{|{a}^{1}|,\dots ,|{a}^{N}|\right\}$  . There is a constant $K>0$  , independent of $n$  and $N$  , such that there is a sequence of no more than $K\left(N-1\right)\left(1+logn\right)$  additions and subtractions of one entry to or from another, after which all but one entry in the $N$  -tuple are zero.
Proof. First consider running the standard Euclid's algorithm on the first two entries ${a}_{0}:={a}^{1}$  and ${b}_{0}:={a}^{2}$  in the $N$  -tuple. This proceeds via a sequence $\left({a}_{i},{b}_{i}\right)$  of pairs of integers finishing with a pair $\left({a}_{k},{b}_{k}\right)$  one of which is zero. The pair $\left({a}_{i+1},{b}_{i+1}\right)$  is obtained from $\left({a}_{i},{b}_{i}\right)$  by replacing the entry with the larger absolute value by the remainder on division by the other. So for all $i=0,\dots ,k-1$  there is some integer ${q}_{i}$  such that either ( ${a}_{i+1}={a}_{i}±{q}_{i}{b}_{i}$  and ${b}_{i+1}={b}_{i}$  ), or ( ${a}_{i+1}={a}_{i}$  and ${b}_{i+1}={b}_{i}±{q}_{i}{a}_{i}$  ).
It takes the standard subtractive algorithm ${q}_{i}$  steps to get from $\left({a}_{i},{b}_{i}\right)$  to $\left({a}_{i+1},{b}_{i+1}\right)$  . But, as $N\ge 3$  , Proposition  2.1 gives us a word ${w}^{{q}_{i}}$  that has length at most $4+6{log}_{\tau }\left(1+{q}_{i}\sqrt{5}\right)\right)$  and that, reading right-to-left, describes a sequence of steps with the same effect. (The step described by the letter ${{e}_{pq}}^{±1}$  corresponds to left-multiplying the transpose of the $N$  -tuple. The entries ${a}^{3},\dots ,{a}^{N}$  in the $N$  -tuple may be disturbed in the course of these steps, but are recovered.) Define ${c}_{i}:=max\left\{|{a}_{i}|,|{b}_{i}|\right\}$  . Then ${q}_{i}\le {c}_{i}/{c}_{i+1}$  and ${q}_{0}\le n$  . So it is possible to get from $\left({a}_{0},{b}_{0}\right)$  to $\left({a}_{k},{b}_{k}\right)$  in $S$  steps where $S\le {\sum }_{i=0}^{k-1}\left(4+6{log}_{\tau }\left(1+\frac{{c}_{i}}{{c}_{i+1}}\sqrt{5}\right)\right).$  But, as ${c}_{i}/{c}_{i+1}\ge 1$  for all $0\le i\le k-1$  , and ${c}_{0}/{c}_{k}\le n$  , this is at most
 $\begin{array}{ccc}S& \le & 4k+6{\sum }_{i=0}^{k-1}{log}_{\tau }\left(\frac{{c}_{i}}{{c}_{i+1}}\left(1+\sqrt{5}\right)\right)\end{array}$
 $\begin{array}{ccc}& \le & 4k+6\left({log}_{\tau }n+k{log}_{\tau }\left(1+\sqrt{5}\right)\right).\end{array}$ (5)
Now $n\ge {F}_{k+1}$  by an easy induction. So by inequality ( 2 ) of Section  2  $n\ge \frac{{\tau }^{k+1}-1}{\sqrt{5}},$  and thus $k\le -1+{log}_{\tau }\left(1+n\sqrt{5}\right)$  . This inequality together with ( 5 ) shows there exists $K>0$  such that $S\le K+Klogn$  .
Obtain the bound claimed in the theorem by next arguing as above for ${a}^{3}$  and whichever or the first and second entries in the $N$  -tuple is now non-zero, and then similarly for ${a}^{4}$  , and so on, until finally for ${a}^{N}$  .
The proof above can be developed into a deterministic algorithm to calculate $gcd\left({a}^{1},\dots ,{a}^{N}\right)$  . What are needed are the ${q}_{i}$  together with the words ${w}^{{q}_{i}}$  of Lemma  2.3 . But those ${w}^{{q}_{i}}$  are built using the expression for ${q}_{i}$  of Zeckendorf 's Theorem. Whilst is not hard to write routines to supply the ${q}_{i}$  and the expressions as per Zeckendorf 's Theorem, it is not clear that producing a deterministic algorithm to calculate $gcd\left({a}^{1},\dots ,{a}^{N}\right)$  in this manner has any computational advantages.
Theorem  3.1 fails when $N=2$  (it is likely the following results are well known, but we include them for completeness and for the contrast):
Proposition 3.2 To convert $\left(1,n\right)$  to $\left(±1,0\right)$  or $\left(0,±1\right)$  by successively subtracting one entry from, or adding one entry to, the other, requires $n$  steps.
Proof. The number of steps required is at least the distance from ${{e}_{21}}^{n}$  to the identity in the word metric on $S{L}_{2}\left(\mathbb{Z}\right)$  with respect to the generating set ${e}_{12},{e}_{21}$  . This is because reading a word $w$  that represents ${{e}_{21}}^{n}$  from right to left would give a sequence of steps that transforms $\left(1,0{\right)}^{t}$  to $\left(1,n{\right)}^{t}$  .
But such a word $w$  descends to a word $\stackrel{^}{w}$  in the images $\text{}{\stackrel{^}{e}}_{12}{\text{}}^{±1}$  , $\text{}{\stackrel{^}{e}}_{21}{\text{}}^{±1}$  of ${{e}_{12}}^{±1}$  , ${{e}_{21}}^{±1}$  under the natural map $S{L}_{2}\left(\mathbb{Z}\right)\to \to PS{L}_{2}\left(\mathbb{Z}\right)$  . And $PS{L}_{2}\left(\mathbb{Z}\right)\sim =\left(\mathbb{Z}/2\mathbb{Z}\right)*\left(\mathbb{Z}/3\mathbb{Z}\right)$  , presented by $〈\stackrel{^}{s},\stackrel{^}{t}|{\stackrel{^}{s}}^{2},{\stackrel{^}{t}}^{3}〉$  , where $s=\left(\begin{array}{cc}0& -1\\ 1& 0\end{array}\right)\text{and}t=\left(\begin{array}{cc}1& 1\\ -1& 0\end{array}\right).$  Now, $st={e}_{21}$  and so $\left(st{\right)}^{n}={{e}_{21}}^{n}$  . And $\left(\stackrel{^}{s}\stackrel{^}{t}{\right)}^{n}$  is of minimal length amongst all words in ${\left\{{\stackrel{^}{s}}^{±1},{\stackrel{^}{t}}^{±1}\right\}}^{◆}$  that represent $\text{}{\stackrel{^}{e}}_{21}{\text{}}^{n}$  in the free product $\left(\mathbb{Z}/2\mathbb{Z}\right)*\left(\mathbb{Z}/3\mathbb{Z}\right)$  . So the minimal length of words in ${\left\{{{e}_{12}}^{±1},{{e}_{21}}^{±1}\right\}}^{◆}$  that equal $\text{}{e}_{21}{\text{}}^{n}$  in $S{L}_{2}\left(\mathbb{Z}\right)$  is $n$  .
Corollary 3.3 The (worst case ) non-deterministic time complexity of the subtractive version of Euclid's algorithm for finding the greatest common divisor of two integers $a,b$  with $n:=max\left\{|a|,|b|\right\}$  is between $n$  and $2n$  .
In the next section we will need the following more technical result that is proved in the same way as Theorem  3.1 .
Theorem  3.1  ${}^{\prime }$  Suppose $\left({a}^{1},\dots ,{a}^{N}\right)$  is an $N$  -tuple of integers, not all zero, where $N\ge 3$  , and suppose $1\le k\le N$  . Define $n:=max\left\{|{a}^{N-k+1}|,\dots ,|{a}^{N}|\right\}$  .
There is a constant $K>0$  , independent of $k,n$  and $N$  , such that there is a sequence of no more than $\left(k-1\right)K\left(1+logn\right)$  steps after which the first $N-k$  entries in the $N$  -tuple are unchanged, all but one of the remaining entries in the $N$  -tuple are zero, and that remaining entry is $±gcd\left({a}^{N-k+1},\dots ,{a}^{N}\right)$  .

4 The Mozes-Lubotzky-Raghunathan Theorem

In this section we give an elementary proof of the following result which is an instance of a theorem of Mozes, Lubotzky and Raghunathan on irreducible lattices in semi-simple Lie groups of rank at least 2. In [? they proved the case addressed below before generalising it to lattices in other Lie groups in [?. We add information about the constants. (For a matrix $\mathcal{ℳ}$  with real entries, $||\mathcal{ℳ}||$  denotes the sup-norm, the maximum of the absolute values of the entries.)
Theorem 4.1 Fix $N\ge 3$  . Let $\ell \left(\mathcal{ℳ}\right)$  denote the word length of $\mathcal{ℳ}\in S{L}_{N}\left(\mathbb{Z}\right)$  , with respect to a fixed finite generating set. There exist ${C}_{1},{C}_{2}>0$  such that for all $\mathcal{ℳ}\in S{L}_{N}\left(\mathbb{Z}\right)$  ${C}_{1}log||\mathcal{ℳ}||\le \ell \left(\mathcal{ℳ}\right)\le {C}_{2}log||\mathcal{ℳ}||.$  Moreover, if the generating set is $\left\{{e}_{ij}|i\ne j\right\}$  then ${C}_{1}$  is independent of $N$  and ${C}_{2}\le {C}_{3}{N}^{N}$  for a constant ${C}_{3}>0$  that is independent of $N$  .
Proof. One easily checks that if the first part of the theorem holds for one finite generating set for $S{L}_{N}\left(\mathbb{Z}\right)$  then it holds for all. We will work with the generating set $\left\{{e}_{ij}|i\ne j\right\}$  .
The first inequality is straightforward. The sup-norm of a matrix that is the product of $n$  matrices in $\left\{{e}_{ij}|i\ne j\right\}$  is at most ${F}_{n}$  , and ${F}_{n}$  grows exponentially with $n$  .
The second inequality will take more work. Suppose $\mathcal{ℳ}\in S{L}_{N}\left(\mathbb{Z}\right)$  .
Below, is a (well-known) procedure for reducing $\mathcal{ℳ}$  to the identity by row operations. Each row operation corresponds to left-multiplication by some ${{e}_{ij}}^{±1}$  and so a word $w\in {\left\{{{e}_{ij}}^{±1}|i\ne j\right\}}^{◆}$  that equals $\mathcal{ℳ}$  in $S{L}_{N}\left(\mathbb{Z}\right)$  can be extracted.
• ( $1$  ) Convert $\mathcal{ℳ}$  to an upper triangular matrix whose diagonal entries are all $±1$  , as follows.
• ( ${1}_{1}$  ) Run Euclid's algorithm on the first column. This will leave all entries zero except one that is $±1$  , because $det\mathcal{ℳ}=1$  . Let ${i}_{1}$  be the row containing the non-zero entry in the first column.
If ${i}_{1}\ne 1$  then premultiply by ${e}_{1{i}_{1}}{{e}_{{i}_{1}1}}^{-1}{e}_{1{i}_{1}}$  , which reverses the signs of the entries in row 1 and then interchanges rows $1$  and ${i}_{1}$  .
• ( ${1}_{2}$  ) Run Euclid's algorithm on the entries in rows $2$  to $N$  of second column, leaving all zero except one that is $±1$  and lies in row ${i}_{2}$  . If ${i}_{2}\ne 2$  then premultiply by ${e}_{2{i}_{2}}{{e}_{{i}_{2}2}}^{-1}{e}_{2{i}_{2}}$  .
• .
.
.
• ( ${1}_{N-1}$  ) Run Euclid's algorithm on the entries in rows $N-1$  and $N$  of the $\left(N-1\right)$  -st column, to make one entry $0$  and the other $±1$  . Then, if necessary, premultiply by ${e}_{N-1,N}{{e}_{N,N-1}}^{-1}{e}_{N-1,N}$  to get an upper triangular matrix.
• ( $2$  ) Get a matrix $\left({m}_{ij}\right)$  for which all the entries on the diagonal are 1 by premultipling by at most $N/2$  matrices $\left({e}_{ij}{{e}_{ji}}^{-1}{e}_{ij}{\right)}^{2}$  that reverse the signs of all the entries in rows $i$  and $j$  .
• ( $3$  ) Clear all the above–diagonal entries in $\left({m}_{ij}\right)$  , one column at a time, as follows.
• ( ${3}_{2}$  ) Premultiply by ${{e}_{12}}^{-{m}_{12}}$  .
• ( ${3}_{3}$  ) Premultiply by ${{e}_{13}}^{-{m}_{13}}{{e}_{23}}^{-{m}_{23}}$  .
• .
.
.
• ( ${3}_{N}$  ) Premultiply by ${{e}_{1,N}}^{-{m}_{1,N}}\dots {{e}_{N-1,N}}^{-{m}_{N-1,N}}$  .
As it stands, the number of ${{e}_{ij}}^{±1}$  used in the procedure above may wildly exceed $log||\mathcal{ℳ}||$  on account of steps ( $1$  ) and ( $3$  ). However, we can accelerate ( ${1}_{1}$  )–( ${1}_{N-1}$  ) as per Theorem  3.1  ${}^{\prime }$  . Define ${\mathcal{ℳ}}_{0}:=\mathcal{ℳ}$  . Performing ( ${1}_{1}$  ) then takes at most ${k}_{1}:=\left(N-1\right)K\left(1+log||\mathcal{ℳ}||\right)$  steps and leaves a matrix ${\mathcal{ℳ}}_{1}$  such that $||{\mathcal{ℳ}}_{1}||\le ||{\mathcal{ℳ}}_{0}||{F}_{{k}_{1}+2}$  . And, proceeding inductively, ( ${1}_{i}$  ) costs at most ${k}_{i}:=\left(N-i\right)K\left(1+log||{\mathcal{ℳ}}_{i-1}||\right)$  steps and leaves a matrix ${\mathcal{ℳ}}_{i}$  with $||{\mathcal{ℳ}}_{i}||\le ||{\mathcal{ℳ}}_{i-1}||{F}_{{k}_{i}+2}$  .
So there is a constant $C>0$  such that for all $1\le i\le N-1$  ,
 $\begin{array}{ccc}{k}_{i}& \le & KN\left(1+log||{\mathcal{ℳ}}_{i-1}||\right)\text{and}\end{array}$
 $\begin{array}{ccc}log||{\mathcal{ℳ}}_{i}||& \le & C{k}_{i}+log||{\mathcal{ℳ}}_{i-1}||.\end{array}$
These inequalites and induction can be used to establish that for $1\le i\le N$
 $\begin{array}{ccc}log||{\mathcal{ℳ}}_{i-1}||& \le & \left(1+log||\mathcal{ℳ}||\right)\left(1+CKN{\right)}^{i-1}-1,\end{array}$ (6)
and for all $1\le i\le N-1$
 $\begin{array}{ccc}{k}_{i}& \le & KN\left(1+log||\mathcal{ℳ}||\right)\left(1+CKN{\right)}^{i-1}.\end{array}$
So there is a constant ${C}^{\prime }>0$  , independent of $\mathcal{ℳ}$  and $N$  , such that the contribution of ( $1$  ) to $\ell \left(w\right)$  is at most ${\sum }_{i=1}^{N-1}{k}_{i}\le {C}^{\prime }{N}^{N-1}log||\mathcal{ℳ}||$  .
The contribution of step ( $2$  ) to $\ell \left(w\right)$  is at most $3N$  . To assess the contribution of step ( $3$  ), first note that $|{m}_{ij}|\le ||{\mathcal{ℳ}}_{i}||$  for all $i,j$  because in the course of step ( $1$  ), row $i$  is not disturbed after ( ${1}_{i}$  ). So, by inequality ( 6 ) and by compressing each of the $N\left(N-1\right)/2$  terms ${{e}_{ij}}^{-{m}_{ij}}$  as per Proposition  2.1 , we see that the effect of step ( $3$  ) can be achieved whilst contributing at most
 $\begin{array}{c}{C}^{\prime }+{C}^{\prime }\left(1+log||\mathcal{ℳ}||\right){\sum }_{i=1}^{N-1}\left(N-i\right)\left(1+CKN{\right)}^{i}\end{array}$ (7)
to $\ell \left(w\right)$  , for some constant ${C}^{\prime }>0$  independent of $\mathcal{ℳ}$  and $N$  . But the summation term in ( 7 ) is at most a constant times $1+N+{N}^{2}+\cdots +{N}^{N}$  , which is at most $4{N}^{N}$  as $N>2$  . The outstanding claims of the theorem then follow.

5 The diameter of $S{L}_{N}\left({\mathbb{F}}_{p}\right)$  .

We adopt the notation ${\alpha }^{\beta }:={\beta }^{-1}\alpha \beta$  and $\left[\alpha ,\beta \right]={\alpha }^{-1}{\beta }^{-1}\alpha \beta$  .
Theorem 5.1 There exists $C>0$  such that for all $N\ge 3$  and primes $p$  , $DiamCay\left(S{L}_{N}\left({\mathbb{F}}_{p}\right),\left\{{e}_{ij}|i\ne j\right\}\right)\le C{N}^{2}logp.$
Proof. Suppose $\mathcal{ℳ}\in S{L}_{N}\left({\mathbb{F}}_{p}\right)$  . We reduce $\mathcal{ℳ}$  to the identity matrix by successively premultiplying by matrices in $\left\{{e}_{ij}|i\ne j\right\}$  in a similar manner to that used to prove Theorem  4.1 .
First lift the entries in the first column of $\mathcal{ℳ}$  to $\left[0,p-1\right]$  and run the accelerated version of the subtractive version of Euclid's algorithm on the first column of the matrix. Then swap two rows (changing the sign of one) to move the non-zero entry to the first row. Next run the accelerated version of the subtractive version of Euclid's algorithm on the lift to $\left[0,p-1\right]$  of all but the first entry of second column, and move the non-zero entry to place 2,2 in the matrix. Continue similarly through all the columns. By Theorem  3.1  ${}^{\prime }$  , the cost is at most a constant times $logp{\sum }_{j=1}^{N-1}\left(N-j\right)<{N}^{2}logp.$  We now have an upper triangular matrix $\left({m}_{ij}\right)$  such that every diagonal entry is non-zero. As $p$  is prime and the diagonal entries in the matrix are non-zero, we can clear all the $N\left(N-1\right)/2$  entries above the diagonal by premultiplying by matrices of the form ${{e}_{ij}}^{-{m}_{ij}}$  where $j>i$  . By Proposition  2.1 the effect of premultiplying by ${{e}_{ij}}^{-{m}_{ij}}$  can be achieved by premultiplying by a sequence of at most a constant times $logp$  matrices in $\left\{{{e}_{ij}}^{±1}|i\ne j\right\}$  . So we can reduce $\mathcal{ℳ}$  to a diagonal matrix $\mathcal{D}=\text{diag}\left({a}_{1},\dots ,{a}_{N}\right)$  with total cost at most a constant times ${N}^{2}logp$  .
As ${a}_{1}$  and ${a}_{1}{a}_{2}$  are invertible in ${\mathbb{F}}_{p}$  , we can convert $\mathcal{D}$  to $\text{diag}\left(1,{a}_{1}{a}_{2},{a}_{3},\dots ,{a}_{N}\right)$  by premultiplying by ${{e}_{12}}^{±1},{{e}_{21}}^{±1}$  as follows,
$\left(\begin{array}{ccc}{a}_{1}& 0& \\ 0& {a}_{2}\\ & & ...\end{array}\right)$  $-------\to {e}_{12}{{e}_{21}}^{-1}{e}_{12}$  $\left(\begin{array}{ccc}0& {a}_{2}& \\ -{a}_{1}& 0& \\ & & ...\end{array}\right)$  $--------\to {{e}_{12}}^{-{{a}_{1}}^{-1}}$  $\left(\begin{array}{ccc}1& {a}_{2}& \\ -{a}_{1}& 0& \\ & & ...\end{array}\right)$  $-------\to {{e}_{21}}^{{a}_{1}}$  $\left(\begin{array}{ccc}1& {a}_{2}& \\ 0& {a}_{1}{a}_{2}& \\ & & 0\end{array}\right)$  $--------\to {{e}_{12}}^{-{a}_{2}\left({a}_{1}{a}_{2}{\right)}^{-1}}$  $\left(\begin{array}{ccc}1& 0& \\ 0& {a}_{1}{a}_{2}& \\ & & ...\end{array}\right).$
Using Proposition  2.1 the same effect can achieved by pre-multiplying by at most a constant times $logp$  matrices in $\left\{{{e}_{ij}}^{±1}|i\ne j\right\}$  . Applying this same process to the second and third rows, and then the third and fourth, and so on we reduce the matrix to the identity, at a total cost of at most a constant times $Nlogp$  .
To deduce Corollary  1.1 we use the following lemma, due to M. Kassabov, concerning the matrices ${\mathcal{A}}_{N}$  and ${\mathcal{ℬ}}_{N}$  given in Section  1 .
Lemma 5.2 For all $1\le i,j\le N$  with $i\ne j$  it is possible to express ${e}_{ij}$  as a word in ${{\mathcal{A}}_{N}}^{±1}$  and ${{\mathcal{ℬ}}_{N}}^{±1}$  of length at most $10N$  .
Proof. We will drop the subscripts from ${\mathcal{A}}_{N}$  and ${\mathcal{ℬ}}_{N}$  . For all $i\ne j$  we have ${{e}_{i,j}}^{\mathcal{ℬ}}={{e}_{i+1,j+1}}^{±1}$  where the indices are in $\left\{1,\dots ,N\right\}$  and are taken modulo $N$  . So it suffices to express all ${e}_{1,1+k}$  , for $1\le k\le N-1$  , as words in ${\mathcal{A}}^{±1}$  and ${\mathcal{ℬ}}^{±1}$  of length at most $8N$  .
For $k=2,\dots ,n$  define ${\mathcal{P}}_{k}:={e}_{12}{e}_{23}\dots {e}_{k-1,k}$  . Then ${\mathcal{P}}_{k}=\mathcal{A}{\mathcal{A}}^{\mathcal{ℬ}}\cdots {\mathcal{A}}^{{\mathcal{ℬ}}^{k-2}}=\mathcal{A}{\mathcal{ℬ}}^{-1}\mathcal{A}{\mathcal{ℬ}}^{-1}\dots \mathcal{A}{\mathcal{ℬ}}^{-1}\mathcal{A}{\mathcal{ℬ}}^{k-2}.$  Now ${\mathcal{N}}_{k}:={\mathcal{P}}_{k}{{\mathcal{P}}_{k-1}}^{-1}$  which, due to cancellations, equals a word of length $4k-7$  in ${\mathcal{A}}^{±1}$  and ${\mathcal{ℬ}}^{±1}$  , and is
 $\begin{array}{ccc}\left(\begin{array}{cccccc}1& 1& ...& 1& 1& \\ & 1& \ddots & ⋮& ⋮& \\ & & \ddots & 1& 1& \\ & & & 1& 1& \\ & & & & 1& \\ & & & & & {\text{Id}}_{n-k}\end{array}\right)\left(\begin{array}{cccccc}1& -1& & & & \\ & 1& \ddots & & & \\ & & \ddots & -1& & \\ & & & 1& & \\ & & & & 1& \\ & & & & & {\text{Id}}_{n-k}\end{array}\right)=\left(\begin{array}{cccccc}1& & & & 1& \\ & 1& & & 1& \\ & & \ddots & & ⋮& \\ & & & 1& 1& \\ & & & & 1& \\ & & & & & {\text{Id}}_{n-k}\end{array}\right).& & \end{array}$
For $k=3,\dots ,n$  , we calculate that ${\mathcal{N}}_{k}\left({\mathcal{ℬ}}^{-1}{\mathcal{N}}_{k-1}\mathcal{ℬ}{\right)}^{-1}$  is
 $\begin{array}{ccc}\left(\begin{array}{cccccc}1& & & & 1& \\ & 1& & & 1& \\ & & \ddots & & ⋮& \\ & & & 1& 1& \\ & & & & 1& \\ & & & & & {\text{Id}}_{n-k}\end{array}\right)\left(\begin{array}{cccccc}1& & & & 0& \\ & 1& & & -1& \\ & & \ddots & & ...& \\ & & & 1& -1& \\ & & & & 1& \\ & & & & & {\text{Id}}_{n-k}\end{array}\right)={e}_{1k}.& & \end{array}$
So ${e}_{1k}$  can be expressed as a word of length $8k-16$  in ${\mathcal{A}}^{±1},{\mathcal{ℬ}}^{±1}$  .
Tim R. Riley Mathematics Department, 10 Hillhouse Avenue, P.O. Box 208283, New Haven, CT 06520-8283, USA tim.riley@yale.edu, http://www.math.yale.edu/users/riley/