Restricted walks in regular trees
Abstract
Let T be the Cayley graph of a finitely generated free group F. Given two vertices in T consider all the walks of a given length between these vertices that at a certain time must follow a number of predetermined steps. We give formulas for the number of such walks by expressing the problem in terms of equations in F and solving the corresponding equations.
Full text
RESTRICTED WALKS IN REGULAR TREES LAURA CIOBANU∗AND SAˇ SA RADOMIROVI´ C† Abstract. Let Tbe the Cayley graph of a finitely generated free group F. Given two vertices in Tconsider all the walks of a given length between these vertices that at a certain time must follow a number of predetermined steps. We give formulas for the number of such walks by expressing the problem in terms of equations in Fand solving the corresponding equations. 1. Introduction Let Tbe an infinite regular tree and na positive integer. Fix two vertices xand yin T. By a walk or a path between xand ywe mean any finite sequence of edges that connect xand yin which backtrackings are allowed. There are many formulas in literature which give the number of walks of length nbetween xand y, such as recurrence formulas, generating functions, Green functions, and others. Here we consider walks of length nbetween x and ywhich at a certain time follow a number of predetermined steps. This work was motivated by the following question of Tatiana Smirnova- Nagnibeda, in relation to finding the spectral radius of a given surface group. Let F2be the free group on generators aand b,Ka field of characteristic 0, T=a−1+a+b−1+ban element in the group algebra K[F2] and c= [a, b] = aba−1b−1. What is the projection, for any m, and for any m-tuple of integers (k1, ..., km), of Tck1Tck2...Tckmonto the group algebra of the subgroup generated by c? Alternately, this can be formulated as a question in the free group F2. Given an m-tuple of integers (k1, ..., km), how many of the words of type x1ck1x2ck2...xmckmwith xi∈ {a±1, b±1}, turn out to be a power of c? In turn, this question can be translated into counting certain paths in the Cayley graph of F2, since each word in F2corresponds uniquely to a walk in the Cayley graph of F2, the infinite regular tree of degree four. In the rest of the paper we will use the formulation of the ∗Partially supported by the Marie Curie Intra-European Fellowship number 515027 and a University of Auckland Postdoctoral Fellowship. †This work was carried out during the tenure of an ERCIM Fellowship. 1
2 LAURA CIOBANU AND SAˇ SA RADOMIROVI question in terms of the free group or in terms of walks in regular trees interchangeably. We answer this question in the case (k1, . . . , km) = (0, . . . , 0, ki,0, . . . , 0), ki6= 0, not only for the free group on two generators, but on any number of generators, by counting (see Section 5) the number of solutions (x1, x2, . . . , xm) of the equation x1. . . xickxi+1 . . . xm=cl. This equation is a particular instance of an equation of type WX =Y U in a free group, where Wand Uare given fixed words. The study of equations in free groups is a fully-developed area, with Makanin [3] and Razborov [4] having provided an algorithm that finds the solutions to equations that have solutions, and Diekert, Gutierez and Hagenah [2] having considered solutions to equations with rational constraints. While W X =Y U clearly has infinitely many solutions (X, Y ) in a free group and does not require the complicated machinery developed by Makanin-Razborov, when we put restrictions on the lengths of Xand Y, finding the number of solutions becomes delicate. We treat the equation W X =Y U in Section 4. Section 3 contains results about a type of restricted words or paths which will be used in later sections, but is also of independent interest. 2. Background and Example Let us fix a set X={a1, a2, . . . , ar}, where ris a positive integer, and let X−1be a set of formal inverses for the elements of X, that is, X−1= {a−1 1, . . . , a−1 r}. Let X±=X∪X−1. Elements of Xwill be called generators and elements of X±will be called letters. For x∈Xset (x−1)−1=x. A finite string of letters is called a word. We define the inverse of a word U=x1···xnto be U−1=x−1 n···x−1 1. The length of Uwill be denoted by |U|. For a word W, a string of consecutive letters in Wforms a subword of W. A word Wis reduced if it contains no subword of the form xx−1with x in X∪X−1. We will denote the free group on generators a1, . . . , arby Fr. The elements of Frare the reduced words in letters a±1 1, . . . , a±1 r. Reduced words correspond to paths without backtracking in the Cayley graph of Fr, while unreduced words or simply “words” correspond to arbitrary paths in the Cayley graph. Let aand bbe the generators of F2,Ka field of characteristic 0, T= a−1+a+b−1+ban element in the group algebra K[F2] and c= [a, b] = aba−1b−1. Let us consider the easiest case of the projection computation we mentioned in the Introduction. In the case in which ki= 0 for all i, one simply counts how many words of length nin a±1and b±1are powers of the commutator c= [a, b]. This is a special case of the following computation. Let xand ybe fixed points in the Cayley graph of Fr, let l=d(x, y) be the distance between xand y, and let Vr l(n) be the number of paths of length
RESTRICTED WALKS IN REGULAR TREES 3 nbetween xand y. If r= 2, then the projection of T ck1T ck2...T cknwith k1=k2=. . . =kn= 0 is · · · +V2 8(n)c−2+V2 4(n)c−1+V2 0(n)c0+V2 4(n)c+V2 8(n)c2+... In other words, among all the elements of length nin F2we get V2 0(n) of them equal to the identity, V2 4(n) equal to the commutator c, and so on. We will use the same additive notation to count the number of words in F2 equal to commutators. Note that if n−lis an odd integer, then V2 l(n) = 0. Formulas for Vr l(n) have been known for a long time and are often used in the context of random walks on graphs [5, 1]. After computing the values of V2 l(n) we get, that among all the words of length 4 in F2, there are c−1+28c0+c1commutators. Among all the words of length 6 in F2, we get 16c−1+ 232c0+ 16c1since the generating function for V2 0(n) is 3 1+√4−3x2, with V2 0(0) = 1, V2 0(2) = 4, V2 0(4) = 28, V2 0(6) = 232, V2 0(8) = 2092. Bartholdi gives a generalization to the computation of Vr l(n) in [1], where he considers more general graphs, not just regular trees. His computations of the number of walks also involve the number of backtrackings or ‘bumps’ in the walks. One standard tool for studying random walks on graphs or groups is the Green function. Definition. Let Gbe a graph with x, y ∈ G and let p(n)(x, y) be the probability that the walker who started at point xwill be at point yat the n-th step. Then the associated Green function is G(x, y|z) = ∞ X n=0 p(n)(x, y)zn, where z∈C. For a regular infinite tree of degree Mthe Green function is [5] G(x, y|z)= 2(M−1) M−2+pM2−4(M−1)z2ÃM−pM2−4(M−1)z2 2(M−1)z!d(x,y) Thus the generating function for Vr l(n) is G(x, y|2rz), where d(x, y) = l is fixed. 3. Restricted words In this section we count the number of a type of reduced words that will appear in our later results. Let |A|denote the cardinality of the set A, and let A−1={a−1:a∈A}.
4 LAURA CIOBANU AND SAˇ SA RADOMIROVI Proposition 1. Let a1, . . . , arbe the generators of Fr,Aand Bbe subsets of {a±1 1, . . . , a±1 r}. The number of elements of length nin Frthat do not start with a letter in Aand do not end with a letter in Bis equal to φ0 n(A, B) = (2r− |A|)(2r− |B|)(2r−1)n−1+δr + (−1)n(|A||B| − σr) 2r, where δ=|A∩B|−|A−1∩B|,σ=|A∩B|+|A−1∩B|. Proof. Let χA(x) be the characteristic function for A, i.e. χA(x) = (1x∈A 0x6∈ A, let A+=A∩ {a1, . . . , an}and A−=A∩ {a−1 1, . . . , a−1 n}. Furthermore, let αi,n be the number of reduced words of length n > 0 that do not start with a letter in A, but end in ai, and let ¯αi,n be the number of reduced words of length nthat do not start with a letter in A, but end in a−1 i. Then we have α1,n + ¯α1,n +· · · +αr,n + ¯αr,n = (2r− |A|)(2r−1)n−1,(1) and αi,1= 1 −χA(ai), ¯αi,1= 1 −χA(a−1 i). The following recursion relations hold αi,n+1 = (α1,n + ¯α1,n +· · · +αr,n + ¯αr,n)−¯αi,n, ¯αi,n+1 = (α1,n + ¯α1,n +· · · +αr,n + ¯αr,n)−αi,n, where i≥1. This implies αi,n −¯αi,n =χA(a−1 i)−χA(ai) for all nand i. Now fix i. Then for any jwith 1 ≤j≤r, when we subtract the recursion relation for αj,n+1, from the recursion relation for αi,n+1, we get αi,n+1 −αj,n+1 = ¯αj,n −¯αi,n =αj,n −αi,n +χA(aj)−χA(a−1 j) + χA(a−1 i)−χA(ai).Let ej,n =αi,n −αj,n and ¯ej,n =αi,n −¯αj,n . Then ej,1=χA(aj)−χA(ai) and it is easy to see that ej,2k=χA(a−1 i)−χA(a−1 j), ej,2k+1 =χA(aj)−χA(ai), and ¯ej,n =ej,n +χA(a−1 j)−χA(aj). Equation (1) can now be written as (αi,n −e1,n)+(αi,n −e1,n +χA(a1)−χA(a−1 1)) + . . . + (αi,n −er,n)+(αi,n −er,n+χA(ar)−χA(a−1 r))=(2r−|A|)(2r−1)n−1.
RESTRICTED WALKS IN REGULAR TREES 5 This gives αi,n =(2r−|A|)(2r−1)n−1+2 P jej,n−|A+|+|A−| 2r,where the sum runs from 1 to r. Thus αi,2k=(2r− |A|)(2r−1)2k−1+ 2rχA(a−1 i)− |A| 2r, αi,2k+1 =(2r− |A|)(2r−1)2k−2rχA(ai) + |A| 2r, ¯αi,2k=(2r− |A|)(2r−1)2k−1+ 2rχA(ai)− |A| 2r, ¯αi,2k+1 =(2r− |A|)(2r−1)2k−2rχA(a−1 i) + |A| 2r. Now, the number of reduced words of length nthat do not start with a letter in Aand do not end with a letter in Bis equal to (α1,n + ¯α1,n +· · · +αr,n + ¯αr,n)−X j:χB(aj)=1 αj,n −X j:χB(a−1 j)=1 ¯αj,n = (2r− |A|)(2r−1)n−1−|B| 2r((2r− |A|)(2r−1)n−1−(−1)n|A|) (2) −(−1)n X j:χB(aj)=1 χA(a−(−1)n j) + X j:χB(a−1 j)=1 χA(a(−1)n j) . If nis even, then we have X j:χB(aj)=1 χA(a−1 j) + X j:χB(a−1 j)=1 χA(aj) = |A−1∩B| If nis odd, then we have X j:χB(aj)=1 χA(aj) + X j:χB(a−1 j)=1 χA(a−1 j) = |A∩B| By simplifying (2), one easily obtains that the number of these reduced words is ((2r−|A|)(2r−|B|)(2r−1)n−1+|A||B| 2r− |A−1∩B|if neven, (2r−|A|)(2r−|B|)(2r−1)n−1−|A||B| 2r+|A∩B|if nodd. The desired formula follows now by averaging the two expressions, then adding and subtracting the deviation to and from the average for even and odd n, respectively. ¤ A more natural quantity to count is the number of reduced words that start with a letter from a given set and end with a letter from another set.
6 LAURA CIOBANU AND SAˇ SA RADOMIROVI By applying the De Morgan formulas for set identities to Proposition 1 we obtain the following Corollary 1. Let Aand Bbe subsets of {a±1 1, . . . , a±1 r}. The number of elements of length nin Frthat start with a letter in Aand end with a letter in Bis equal to φn(A, B) = |A||B|(2r−1)n−1+δr + (−1)n(|A||B| − 2r(|A|+|B|) + σr) 2r, where δ=|A−1∪B|−|A∪B|,σ=|A∪B|+|A−1∪B|. 4. Main results In this section we count the number of solutions (X, Y ) of the equation WX =Y U, (3) in the free group Fr, for fixed elements Wand U, and fixed lengths of X and Y. The number of solutions varies widely, depending on the lengths of Wand Uwith respect to the lengths of Xand Y. We will need the following. Definition. : (i) Let (W)ibe the i-th letter in the word W, where 1≤i≤ |W|, with the convention that (W)0= (W)|W|+1 =e, where eis the empty word. :(ii) Define (W)j ito be the subword of Wwhich starts with the i-th letter of Wand ends with the j-th letter of Wand the convention that (W)j i=eif j < i. :(iii) Let γW,U (i, n, j) be the correlation function of two words W, U. Whenever Wand Uare fixed we will use γ(i, n, j) instead of γW,U (i, n, j). The correlation function identifies whether Wand U have a common maximal subword sof length exactly n, followed by jletters in W, and preceded by iletters in U. More precisely, when n > 0 γ(i, n, j) = 1 if (W)|W|−j |W|−n−j+1 = (U)i+n i+1 , (W)|W|−n−j6= (U)i,(W)|W|−j+1 6= (U)i+n+1 0 else. If n= 0, γ(i, 0, j) = 1 if (W)|W|−j(U)i+1 6=e, (W)|W|−j6=(U)i,(W)|W|−j+1 6= (U)i+1 0 else. Example. Let W=abc and U=bcd be words in the free group on four letters. Then γ(0,2,0) = 1, but γ(1,1,0) = γ(0,1,1) = 0. In all three cases the overlap between Wand Uis bc, a subword of both Wand U. Since bc doesn’t have length 1 it follows that γ(1,1,0) = γ(0,1,1) = 0.
RESTRICTED WALKS IN REGULAR TREES 7 Definition. Let LW,U (N, M) be the number of solutions of the equation WX =Y U, where Xand Yare reduced words of length Nand M, respectively. It can be seen at once that LU,W (N, M) = LW,U (N, M),(4) LW,U (N, M) = LW−1,U−1(M, N) (5) LW,U (N, M) = 0 whenever |U|+|W|+N+Mis odd (6) In the following propositions we adopt the convention that if e, the identity element of Fr, is in some set A, then A=A\ {e}. Proposition 2. The number LW,U (N, M)of solutions of W X =Y U, where Xand Yare reduced words of length Nand M, respectively, is given below. Let d=N−M+|W|−|U| 2and n=N+M−|W|−|U| 2, :(i) If N+M < ¯¯|U|−|W|¯¯or n6∈ Zthen LW,U (N, M) = 0, :(ii) If ¯¯|U|−|W|¯¯≤N+M≤ |W|+|U|,n∈Z, LW,U (N, M) = min(|U|,M) X i=0 γ(i, −n, i +d)if d≥0 min(|W|,N) X i=0 γ(i−d, −n, i)if d < 0 :(iii) If N+M > |W|+|U|,n∈Z, then LW,U (N, M) = min(|U|,|W|−d) X i=max(0,−d) φ0 n(Ai, Bi) where Ai={((W)|W|−d−i)−1,(W)|W|−d−i+1}, Bi={(U)i,((U)i+1)−1}. Proof. :(i) If |W|−|X|>|U|+|Y|, then the length of the reduced word equal to W X is strictly longer than the length of the reduced word equal to Y U, so there is no solution. Similarly, if |W|+|X|< |U|−|Y|there is no solution. :(ii) For a solution (X, Y ), |X|=N,|Y|=M, the length of the resulting reduced words on both sides of the equation is N+|W| − 2|w|=M+|U|−2|u|,and it is easy to see that Uand Wmust have a common subword sof exactly |W|−M+|u|−|w|=|U|−N+|w|−|u| letters. From the equation above it follows that 2|w| − 2|u|=N− M+|W|−|U|= 2d, thus |s|=|W|+|U|−N−M 2=−n.
8 LAURA CIOBANU AND SAˇ SA RADOMIROVI :(iii) The equation WX =Y U can be rewritten as W0¯wwX0=Y0u¯uU0, where w, u, X0, Y 0are reduced words with wand umaximal such that W=W0¯w,X=wX0,Y=Y0uand U= ¯uU0. From this equation we have 2|w|=|W|−|U|+N−M+ 2|u|.(7) Since N+M > |W|+|U|, the suffix of X0is U0=uU and the prefix of Y0is W0=W w. Thus we can write every solution (X, Y ) as (wX00uU, W wY 00u)=(wX00U0, W0Y00u), where X00 =Y00 is any reduced word of length n=M+N−|U|−|W| 2which does not begin with the inverse of the last letter of W0or w, nor end with the inverse of the first letter of U0or u, since Xand Yare reduced words. Notice that the inverses of the last letter of W0and ware (W)−1 |W|−|w|and (W)|W|−|w|+1, respectively, and the inverses of the first letter of uand U0are (U)|u|and (U)−1 |u|+1, respectively. Note that the length of X00 is constant, regardless of the length of uand w. The following diagram better exemplifies the equalities between the words. W X Y U =W0¯w wX0 Y0u¯uU0=Ww X00 U0 W0Y00 uU Let d=|W|−|U|+N−M 2, then it follows from (7) that |W|−|w|= |W| − d− |u|. For every (possibly empty) word usuch that u−1 is a prefix of U, let A|u|={(W)−1 |W|−d−|u|,(W)|W|−d−|u|+1}and B|u|={(U)|u|,(U)−1 |u|+1}. Thus for a fixed u, and n=|X00|=M+N−|U|−|W| 2, the number of choices for X00 is φ0 n(A|u|, B|u|). To obtain the total number of solutions, we consider the cases d≥0 and d < 0 separately. •d≥0 It follows from equation (7) that the smallest length of |w|for which there can be a solution is |w|=|W|−|U|+N−M 2in which case we have |u|= 0. Thus |u|ranges from 0 to min(|U|, M−n), while |w|ranges from |W|−|U|+N−M 2to |W|+|U|+N−M 2=N−n (if |U|< M −n) or |W|−|U|+N+M−2n 2=|W|(else). •d < 0
RESTRICTED WALKS IN REGULAR TREES 9 It follows from equation (7) that the smallest length of |u|for which there can be a solution is |u|=|U|−|W|+M−N 2in which case |w|= 0. Thus |w|ranges from 0 to min(|W|, N −n), while |u|ranges from |U|−|W|+M−N 2to |U|+|W|+M−N 2=M−n (if |W|< N −n) or |U|−|W|+M+N−2n 2=|U|(else). In both cases, the formula follows immediately. ¤ Note that Proposition 2 not only counts the number of solutions to an equation of the form (3) but the proof also sketches a strategy for computing the actual solutions of that equation. We can now use Proposition 2 to give a formula for the number of restricted walks in regular trees. Theorem 1. Let Ube a fixed element in Fr,Tthe Cayley graph of Fr, and Pa fixed point in T. Let Wbe the element in Frdescribing the path from the origin to P. Then the number of paths in T, from the origin to the point P, of length M+|U|+Nwhich after Msteps follow the path outlined by Uand proceed with Narbitrary steps is equal to N X n=0 M X m=0 LW,U (n, m)Vr n(N)Vr m(M). Proof. The Theorem follows easily from Proposition 2, because for every reduced word Rof length ρ, there are exactly Vr ρ(l) words of length lwhich are equal to R.¤ 5. The commutator case For ease of notation, let a=a1,b=a2and c= [a, b] = aba−1b−1. Here we consider the projection computation in the case when ki= 0 for all except one value of i. Let us fix integers kand l. Then we want to find the number of solutions of the equation: x1. . . xickxi+1 . . . xm=cl,(8) where xi∈ {a±1 1, . . . , a±1 r}. We count the number of solutions by first rearranging the equation as ckX=Y cl,(9) where X=xi+1 . . . xmand Y= (xi. . . x1)−1. Let Lk,l(N, M) be the number of solutions of the equation 9, where Xand Yare reduced words of length Nand M, respectively. We compute Lk,l(N, M) by specializing our results from the previous section to the case when Wand Uare commutators. Clearly Lk,l(N, M) = Ll,k(N, M), Lk,l(N, M) = L−k,−l(M, N), Lk,l(N, M) = 0 whenever N+M≡1 (mod 2),
16 LAURA CIOBANU AND SAˇ SA RADOMIROVI We finish this section by computing the following expressions for the Lk,l(N, M) function in the case r= 2 using Propositions 4 and 5. Let d= 2|k|−2|l|+N−M 2,n=N+M 2−2|l|−2|k|,R= min(4|l|,4|k|−d)−max(0,−d). Proposition 3 directly computes Lk,l(N, M) for the case N+M≤4|k|+4|l|. If d6= 0 and 4|l| 6= 4|k| − d, then Lk,l(N, M) = 3n−1(R+ 2) + sgn(kl) (−1)d/2R d even, kl < 0 sgn(d)(−1)d+1 2dodd,|N−M|>¯¯4|k| − 4|l|¯¯ 0 else. If d= 0 or 4l= 4k−d, then Lk,l(N, M) = (R−1)3n−1+3n+1+(−1)n 2+ 1 d= 0 and k=l (R−1)3n−1+3n+1−(−1)n 2−R d = 0 and k=−l (R−1)3n−1+5·3n+(−1)n 4+1 2(d6= 0 or k6=l) and kl > 0 (R−1)3n−1+5·3n−(−1)n 4−Relse. 6. Conclusion We have counted the number of bounded length solutions to two variable equations of the form W X =Y U, which is equivalent to counting the number of restricted walks that lie in a given ball of an infinite regular tree of even degree. While we have tackled only the simplest case of the general question posed in the Introduction, the methods used can be generalized to obtain formulas for more complicated cases. The expressions for the Lk,l(N, M) function in the case r= 2 indicate that writing out a formula for a more general case will be very tedious. References [1] Laurent Bartholdi. Counting paths in graphs. Enseign. Math., 45:83–131, 1999. [2] Volker Diekert, Claudio Gutierrez, and Christian Hagenah. The existential theory of equations with rational constraints in free groups is PSPACE-complete. Inform. and Comput., 202(2):105–140, 2005. [3] G. S. Makanin. Equations in a free groups (Russian). Izv. Akad. Nauk SSSR Ser. Mat. 46, 1982. [4] A. A. Razborov. On systems of equations in a free group. Math USSR - Izv., 25(1):115–162, 1985. [5] Wolfgang Woess. Random walks on infinite graphs and groups. Cambridge University Press, 2000. Laura Ciobanu, Department of Mathematics, University of Auckland, Private Bag 92019, Auckland, New Zealand E-mail: [email protected]kland.ac.nz
RESTRICTED WALKS IN REGULAR TREES 17 Saˇsa Radomirovi´c, Department of Telematics, NTNU, O.S. Bragstads plass 2B, N-7491 Trondheim, Norway E-mail: [email protected]u.no