Functions on Antipower Prefix Lengths of the Thue-Morse Word
Shyam Narayanan
Department of Mathematics
Harvard University
Cambridge, MA, U.S.A.
[email protected]
Abstract
We say that a word w of length kn is a k-antipower if it can be written in the form w1ββ―wkβ, where each wiβ is a distinct word of length n. We analyze prefixes of the Thue-Morse word t and lengths of antipowers occurring in them. Define Ξ(k) to be the largest odd n such that the prefix of t of length kn is not a k-antipower, and Ξ³(k) to be the smallest odd n such that the corresponding prefix is a k-antipower. We provide strong bounds on the asymptotic values of Ξ³(k) and Ξ(k)βΞ³(k). Our bounds on Ξ³(k) affirmatively answer one conjecture of Defant and make substantial progress towards answering a second conjecture of Defant. It was previously known that Ξ(k) and Ξ³(k) grow linearly in k, but our bounds on Ξ(k)βΞ³(k) prove that Ξ(k)βΞ³(k) also grows linearly in k.
1 Introduction
A finite word W, i.e., a finite string of letters from a fixed alphabet, is called a k-power if W=wk=wwβ―w (concatenated k times), where w is another word. Thue [9] created an infinite binary word (i.e., a word with only two distinct letters) such that no finite contiguous subword of the word is a 3-power. This word, now famously known as the Thue-Morse word, can be defined as follows:
Definition 1**.**
For each ββ{0,1}, let β=1ββ. If W=β1ββ―βkβ is a finite word of length k over the alphabet {0,1}, let W=β1βββ―βkββ. Consider the sequence Anβ of finite words over the alphabet {0,1} such that A0β=0 and Anβ=Anβ1βAnβ1ββ for all nβ₯1. Define the Thue-Morse word t to be
[TABLE]
Let t=t0βt1βt2ββ¦, where tnβ is the (n+1)st letter in t.
The Thue-Morse word is known to be very useful in a variety of fields, such as combinatorics, economics [8], game theory [3], and analytic number theory [1]. Various sequences and constants relating to the Thue-Morse sequence have also been studied in detail [5, 7].
The Thue-Morse word is known to be overlap-free, meaning that for all finite words x,y such that x is nonempty, the word xyxyx is never a contiguous subword of t [9]. This condition implies that t does not contain any 3-powers as contiguous subwords, since letting y be the empty word tells us that xxx can never be a contiguous subword of t. Because the Thue-Morse word contains no 3-powers as contiguous subwords, looking at k-powers in the Thue-Morse word is not as interesting as looking at what are called k-antipowers, first introduced by Fici, Restivo, Silva, and Zamboni [6].
Definition 2**.**
A word W of length kn is called a k-antipower if W=w1ββ―wkβ, where β£wiββ£=n for all 1β€iβ€k and wiβξ =wjβ for all 1β€iξ =jβ€k.
Suppose x is a word and k is a positive integer. We consider the set AP(x,k)βN, defined to be the set of positive integers n such that the prefix of length kn in x (i.e., the word formed from the first kn letters of x) is a k-antipower. Note that replacing each occurrence of [math] with 01 and each occurrence of 1 with 10 in t again gives us t, so for all i,j, we have t(iβ1)nββ―tinβ1β=t(jβ1)nββ―tjnβ1β if and only if t2(iβ1)nββ―t2inβ1β=t2(jβ1)nββ―t2jnβ1β. This means that nβAP(t,k) if and only if 2nβAP(t,k). Consequently, we are mainly interested in AP(t,k)β©(2Nβ1), the set of odd nβAP(t,k).
Definition 3**.**
For kβ₯1, let F(k)=AP(t,k)β©(2Nβ1) be the set of odd n such that the prefix of t of length kn is a k-antipower.
It turns out that AP(t,k), and thus F(k), is nonempty for all k [6]. In fact, we have (2Nβ1)\F(k) is finite for all k [4]. As a result, we can define the following:
Definition 4**.**
Define Ξ³(k) to be the minimum element in F(k) and Ξ(k) to be the maximum element in (2Nβ1)\F(k). To avoid issues of the maximum of the empty set, we define Ξ(k)=0 if AP(t,k)=2Nβ1.
Remark 5*.*
For kβ₯3, note that Ξ(k)ξ =0. This is true since t=011010011β― and since t0βt1βt2β=t6βt7βt8β, the prefix of length 3k is not a k-antipower for all kβ₯3. Therefore, we have 3ξ βAP(t,k) for all kβ₯3, so Ξ(k)β₯3 for all kβ₯3.
To help us understand Ξ and Ξ³, we will analyze the following natural function:
Definition 6**.**
For an odd positive integer nβ₯3, define K(n) to be the smallest k such that the prefix of t of length kn is not a k-antipower. Our definition does not make sense for n=1 since every prefix of t is a 1-antipower, so define K(1)=0.
Note that for kβ₯3, we have that Ξ(k) is the largest odd n such that the prefix of length kn is not a k-antipower, which means Ξ(k) is the largest odd n such that K(n)β€k. Likewise, for kβ₯3, we have that Ξ³(k) is the smallest odd n such that the prefix of length kn is a k-antipower. Since Ξ³(k) does not equal 1 for kβ₯3 by Remark 5, this means Ξ³(k) is the smallest odd n such that K(n)>k.
Definition 7**.**
For positive integers c and n, define the cth block of size n in t to be the subword t(cβ1)nβt(cβ1)n+1ββ―tcnβ1β.
Remark 8*.*
Note that if K(n)=k, then the first kβ1 blocks of size n are distinct, but the kth block of size n equals one of the first kβ1 blocks of size n.
A basic application of the pigeonhole principle shows that K(n)β€2n+1. However, this bound is extremely poor. In fact, it is known that K(n) grows linearly in n for odd n, meaning limsupnβββnK(n)β<β and liminfnβββnK(n)β>0. It is also known that Ξ³(k) and Ξ(k) grow linearly in k, and Defant [4] proved the following, up to a small error in parts (a) and (b), which we explain and fix in A:
Theorem 9**.**
[4]
- (a)
21ββ€kββliminfβkΞ³(k)ββ€109β,
2. (b)
1β€kββlimsupβkΞ³(k)ββ€23β,
3. (c)
kββliminfβkΞ(k)β=23β,
4. (d)
kββlimsupβkΞ(k)β=3.
The growth of Ξ³(k) is not as well understood as that of Ξ(k). Defant made the following conjecture about the growth of Ξ³(k):
Conjecture 10**.**
[4]
- (a)
kββliminfβkΞ³(k)β=109β,
2. (b)
kββlimsupβkΞ³(k)β=23β.
In Section 2 of our paper, we note some simpler propositions which end up being very useful for Section 3, where we provide bounds for K(n) for odd integers n. In Section 4, we use our results from Section 3 to prove Conjecture 10 (b) and improve the lower bound for kββliminfβkΞ³(k)β to 43β, thus making progress towards solving Conjecture 10 (a). As suggested in [4], we also study Ξ(k)βΞ³(k) and show that Ξ(k)βΞ³(k) grows linearly in k in Section 4. We summarize our results in the following theorem:
Theorem 11**.**
- (a)
43ββ€kββliminfβkΞ³(k)ββ€109β,
2. (b)
kββlimsupβkΞ³(k)β=23β,
3. (c)
21ββ€kββliminfβkΞ(k)βΞ³(k)ββ€43β,
4. (d)
611ββ€kββlimsupβkΞ(k)βΞ³(k)ββ€49β.
Understanding the asymptotic values of Ξ(k)βΞ³(k) is quite interesting, because if Ξ(k)βΞ³(k)=o(k) for some value of k, then F(k) contains all odd positive integers less than some n1β but no odd integer greater than some n2β, where n2β=(1+o(1))n1β. Thus, all elements of F(k) are tightly clustered together. However, our proof that Ξ(k)βΞ³(k) grows linearly in k implies that such a phenomenon never happens.
For visualizations of the growth of K(n) as well as Ξ³(k) and Ξ(k), we point the reader to the end of [4], which provides plots describing the growth of Ξ³(k)/k,Ξ(k)/k, and K(n). We also provide a visualization of K(n) in Section 5 to provide intuition of the behavior of K(n) for large n and to support a conjecture we make.
2 Preliminary Results
In this section, we establish some important propositions that are useful in proving lemmas for bounding K(n) in the next section. We first note the following well-known result (see for example [2, Proposition 1]):
Proposition 12**.**
The sum of the digits of n in base 2, reduced modulo 2, equals tnβ.
Using Proposition 12, we make the following definition and observation.
Definition 13**.**
For positive integers m,n, we say that n is equivalent to m if tnβ=tmβ. We denote this by nβ‘tβm. Note that nβ‘tβm if and only if the binary digit sums of n and m are congruent mod 2.
The following result gives us a cleaner way to compare the cth and (cβ²)th blocks of size n, given c and cβ² differ by a power of 2. We use the following proposition several times to show that the cth and (c+2i)th blocks are the same for some i and some sufficiently small c, which will give us upper bounds for K(n).
Proposition 14**.**
Let n be odd and i be a nonnegative integer. For all nonnegative integers c, the (c+1)th and (c+1+2i)th blocks of size n in t are equal if and only if xβ‘tβx+n for every integer x such that β2icnβββ€xβ€β2i(c+1)nβ1ββ.
Proof.
For the βifβ direction, it suffices to prove that yβ‘tβy+2in for all y such that cnβ€yβ€cn+nβ1. Note that yβ‘y+2inΒ (modΒ 2i). By the binary digit sum definition of t, it suffices to show that β2iyβββ‘tββ2iy+2inββ=β2iyββ+n. But we know that β2iyββ is between β2icnββ and β2i(c+1)nβ1ββ, so we are done.
The βonly ifβ direction follows from the fact that if the (c+1)th and the (c+1+2i)th blocks match, then cn+(aβ1)β‘tβ(c+2i)n+(aβ1) for all 1β€aβ€n, because the ath element of the (c+1)th and (c+1+2i)th length-n blocks of positive integers must match. However, as cn+(aβ1)β‘(c+2i)n+(aβ1)Β (modΒ 2i), it follows from the binary digit sum definition of tiβ that β2icn+(aβ1)βββ‘tββ2i(c+2i)n+(aβ1)ββ. This can be thought of as chopping off the last i digits and checking Thue-Morse equivalence. However, we clearly have β2i(c+2i)n+(aβ1)ββ=β2icn+(aβ1)ββ+n, so letting a vary from 1 to n gives the desired result.
β
The following proposition implies that K(n)β₯1+21+βlog2β(n/3)β for nβ₯5, and is a direct consequence of [4, Proposition 6(a)].
Proposition 15**.**
Let n be odd and i be a positive integer. Suppose that c,cβ² are positive integers such that the cth and (cβ²)th blocks of size n in the Thue-Morse word are equal. If 3β
2iβ1<n, then cβ‘cβ²Β (modΒ 2i).
Finally, we note the following:
Proposition 16**.**
For all odd positive integers m, there exists yβ{1,2} such that yβ‘tβy+m and yβ²β{1,2} such that yβ²ξ β‘tβyβ²+m. Thus, if 2jβ£m but 2j+1β€m for some integer j, there exists a positive integer yβ€2j+1 such that yβ‘tβy+m and a positive integer yβ²β€2j+1 such that yβ²ξ β‘tβyβ²+m.
Proof.
The first statement follows by the fact that 1β‘tβ2 but m+1ξ β‘tβm+2 since m+1 is even. Therefore, y and yβ² will equal 1 and 2 in some order. The second statement is immediate by looking at y,yβ² equaling 2j and 2j+1 in some order, after we note that yβ‘tβy+m if and only if 2jyββ‘tβ2jy+mβ=2jyβ+2jmβ. Here, we use the fact that 2jyβ is an integer and 2jmβ is an odd integer.
β
3 Bounds on K(n)
To establish bounds for Ξ³(k) and Ξ(k)βΞ³(k), we prove many lemmas bounding K(n). We remark that n is always odd in what follows.
Lemmas 17, 18, 19, and 20 allow us to bound K(n) for all odd n between 2i and 3β
2iβ1β13, which will in turn allow us to bound Ξ³(k). Lemmas 17, 18, 19, and 20 bound K(n) by looking at various cases for n based on the residue of n modulo 32 as well as whether n is very close to a multiple of a large power of 2.
Lemma 17**.**
Suppose that 2i<n<3β
2iβ1 and i is sufficiently large. If n=aβ
2j+1 or n=aβ
2jβ1, where jβ₯3 and a is odd, then K(n)β€2i+2j+1+5.
Proof.
Define m=aβ
2jβ3. If n=aβ
2j+1, then n=8m+1, and if n=aβ
2jβ1, then n=8mβ1.
Since 2jβ3 is the largest power of 2 dividing m, there exists 1β€yβ€2jβ2 such that yξ β‘tβy+m by Proposition 16. Now, let y be the smallest nonnegative integer such that yξ β‘tβy+m, and let x=8y+3 if n=8mβ1 and x=8y+2 if n=8m+1.
If n=8mβ1, then
[TABLE]
Similarly, if n=8m+1, then
[TABLE]
In either case, this shows that x+sβ‘tβx+n+s for s=0,1,2. Let c be the smallest integer such that β2icnβββ₯x. If β2icnββ=x, then β2i(c+1)nβββ€x+2, so it follows from Proposition 14 that the (c+1)th and (c+1+2i)th blocks of t match. Else, β2icnββ=x+1, so either β2i(c+1)nββ=x+2 or β2i(cβ1)nββ=x since 2i2nβ<3. Thus, either the (c+1)th block matches with the (c+1+2i)th block or the cth block matches (c+2i)th block. Because c+1β€x+2, we can take cβ²β{c,c+1} such that cβ²β€x+2β€8y+5 and the (cβ²)th and (cβ²+2i)th blocks match.
Since yβ€2jβ2 and xβ€2j+1+3, there is some cβ²β€2j+1+5 such that the (cβ²)th and (cβ²+2i)th blocks match. This means that K(n)β€2i+2j+1+5.
β
Lemma 18**.**
Suppose that 2i<n<3β
2iβ1 and i is sufficiently large. Also, suppose that n=aβ
2j+d, where jβ₯5, a is odd, and dβ{Β±3,Β±5,Β±11,Β±13}. Then K(n)β€2i+2j+1+28.
Proof.
Define m=aβ
2jβ5, which is an integer since jβ₯5. Now define the function Ο such that
[TABLE]
The values of Ο at 1 and β1 are not used for this lemma, but for Lemma 19.
It is straightforward to verify that for all dβ{3,β3,5,β5} and sβ{0,1,2}, we have that d+Ο(d)+sβ‘tβΟ(d)+s. In addition, one can verify that for all dβ{1,β1,11,13,β11,β13} and sβ{0,1,2}, we have d+Ο(d)+sξ β‘tβΟ(d)+s.
Also, since 0β€Ο(d),d+Ο(d)<30, the binary sum definition of t tells us that if x,y are positive integers such that x=32y+Ο(d), then
[TABLE]
and
[TABLE]
for sβ{0,1,2}. Therefore, if yβ‘tβy+m and if dβ{3,β3,5,β5}, then we must have x+sβ‘tβx+n+s for x=32y+Ο(d) and for all sβ{0,1,2}. Similarly, if yξ β‘tβy+m and if dβ{11,13,β11,β13}, then x+sβ‘tβx+n+s for all sβ{0,1,2}.
As 2jβ5 is the largest power of 2 dividing m, there exist positive integers y1β,y2ββ€2jβ4 such that y1βξ β‘tβy1β+m and y2ββ‘tβy2β+m. Let y=y1β if dβ{11,13,β11,β13} and y=y2β if dβ{3,5,β3,β5}, and let x=32y+Ο(d). As in the proof of the previous lemma, there is some integer cβ€x+2 such that the cth and (c+2i)th blocks of t match, since there exists an integer cβ€x+2 such that β2icnβββ€x+2 but β2i(cβ1)nβββ₯x. Consequently, we have that K(n)β€2i+2j+1+max(Ο(d))+2=2i+2j+1+28.
β
In the following lemma, we will assume that 2iβ1<n<3β
2iβ1 rather than 2i<n<3β
2iβ1. We allow a weaker assumption to fix an error in [4], which will be explained in detail in A.
Lemma 19**.**
Let n=aβ
2j+d, where a is odd and dβ{Β±1,Β±3,Β±5,Β±11,Β±13}. Suppose that 2iβ1<n<3β
2iβ1 for some sufficiently large i, and define k=iβj. If jβ₯43i+11β, and if kβ₯2 when 2i<n<3β
2iβ1 and kβ₯3 when 2iβ1<n<2i, then K(n)β€2i+7.
Proof.
Let Ο(d) be as in the proof of Lemma 18. We wish to find some cβ€2iβ1+6 such that
[TABLE]
for all 0β€ββ€aβ
2j+d. It will then follow (by Proposition 14) that the (c+1)th and (c+1+2iβ1)th blocks of t are the same, which will prove the lemma. It suffices to find some cβ€2iβ1+6 such that the following three conditions hold:
-
[TABLE]
2. 2.
[TABLE]
3. 3.
There exists pβ{1,2} such that
[TABLE]
and such that Ο(d)β‘tβd+Ο(d) if and only if a+pβ‘tβp.
Indeed, suppose these three conditions hold. We may write
[TABLE]
where 0β€v<2jβ5. Then
[TABLE]
Note that Ο(d),d+Ο(d)<30. Either Ο(d)+sβ‘tβd+Ο(d)+s for all 0β€sβ€2 or Ο(d)+sξ β‘tβd+Ο(d)+s for all 0β€sβ€2. Thus, by condition (3), we have tpβ+tvβ+tΟ(d)+sββ‘ta+pβ+tvβ+td+Ο(d)+sβΒ (modΒ 2). Because
[TABLE]
and
[TABLE]
for all 0β€sβ€2, it follows that for all 0β€sβ€2,
[TABLE]
Therefore, for all β2iβ1(aβ
2j+d)(c)βββ€xβ€β2iβ1(aβ
2j+d)(c+1)βββ€β2iβ1(aβ
2j+d)(c)ββ+2, we have xβ‘tβx+(aβ
2j+d) by condition (1), so K(n)β€2iβ1+c+1β€2i+7.
Now, we show such a c exists. Define r as the positive integer less than 2k+4 such that raβ‘1Β (modΒ 2k+4) (which is well-defined as a is odd). Then
[TABLE]
for some integer z. Since rd>β2k+4β
16=β2k+8 and jβ₯3k+11>k+8, we have that 2j+rd is positive. Now, consider the sequence rn,2rn,β¦. Since jβ€iβ2, dβ€13, and 0β€rβ€2k+4, we have that 2j+rd<2iβ1 for sufficiently large i, so Ο(d)2iβ1+(2j+rd)<(Ο(d)+1)2iβ1β€2i+4.
If we look at the remainder when we divide these terms by 2i+4, the remainder either increases by 2j+rd or decreases by 2i+4β(2j+rd) when we change from grn to (g+1)rn for some g.
Note that since a is odd, there exists pβ{1,2} such that a+pβ‘tβp. There also exists pβ{1,2} such that a+pξ β‘tβp. Therefore, we can choose a value of p accordingly based on n to satisfy the second part of condition (3). Define g as the smallest integer such that β2iβ1grnββ>pβ
2j. Note that g is positive as β2iβ10β
rnββ=0<pβ
2j. Then there exists hβ₯g such that hβgβ€ar and the remainder of hrn when divided by 2i+4 is between Ο(d)2iβ1 and Ο(d)2iβ1+(2j+rd), inclusive. This is because
[TABLE]
[TABLE]
for sufficiently large i, as jβ₯3k+11. Therefore, the set of remainders when grn,(g+1)rn,β¦,(g+ar)rn is divided by 2i+4 must intersect the set of integers between Ο(d)2iβ1 and Ο(d)2iβ1+(2j+rd), inclusive. Let c1β=hr. If the remainder when c1βn is divided by 2i+4 is between Ο(d)2iβ1 and Ο(d)2iβ1+(2jβd)β1, inclusive, then the remainder when (c1β+1)n=c1βn+n is divided by 2i+4 is at most
[TABLE]
This means that if we set c=c1β, both conditions (1) and (2) are satisfied.
Otherwise, d>0 and the remainder when c1βn is divided by 2i+4 is between Ο(d)2iβ1+(2jβd) and Ο(d)2iβ1+(2j+rd), inclusive. Now, define c2β=c1β+(aβ1)rβ1. If c1βnβ‘Ο(d)2iβ1+2j+dβ²Β (modΒ 2i+4) for some βdβ€dβ²β€rd, then
[TABLE]
which is between Ο(d)2iβ1+(aβ1)rdβ2d and Ο(d)2iβ1+(aβ1)rd+(rdβd), which equals Ο(d)2iβ1+ardβd. However, aβ₯5 since kβ₯3 if n<2i and kβ₯2 if n>2i. This means (aβ1)rdβ2d>0 and therefore Ο(d)2iβ1<Ο(d)2iβ1+(aβ1)rdβ2d. Also,
[TABLE]
which means that c2βn when divided by 2i+4 has remainder between Ο(d)β
2iβ1 and Ο(d)β
2iβ1+2jβdβ1, and β2iβ1c2βnβββ‘Ο(d)Β (modΒ 32). However, note that
[TABLE]
[TABLE]
Therefore, β2iβ1(c2β+1)nββ is congruent to one of Ο(d),Ο(d)+1, or Ο(d)+2Β (modΒ 32). But since 2β
2iβ1<n<3β
2iβ1, we must have that β2iβ1(c2β+1)nββββ2iβ1(c2β)nββ either equals 2 or 3, so β2iβ1(c2β+1)nββββ2iβ1(c2β)nββ=2. Thus, both conditions (1) and (2) are satisfied if c=c2β.
Whether or not c=c1β or c=c2β we have
[TABLE]
Therefore, β2iβ1cnβββ₯β2iβ1(gr)nββ>pβ
2j. Now, since aβ€3β
2kβ1 and rβ€2k+4,
[TABLE]
with the last inequality true since 3β
23k+9+1<23k+11β€2j. This proves that condition (3) holds for c.
Finally, we show that condition (3) implies cβ€2iβ1+6. If n>2i, since (p+1)β
2jβ€3β
2jβ€aβ
2j, we have that 2iβ1(aβ
2jβ13)cβ<aβ
2j and thus c<aβ
2jβ13aβ
2jβ
2iβ1β. As aβ
2j>2i+13, we have aβ
2jβ13aβ
2jβ
2iβ1β<2iβ1β
2i2i+13β<2iβ1+7, so cβ€2iβ1+6. If n<2i, recall that c1ββ€(ar+g)r and c2ββ€(ar+g)r+(aβ1)r<(2ar+g)r. So we just have to check that (2ar+g)rβ€2i+6. However, since 2iβ1grnββ€(p+1)β
2jβ€3β
2j and nβ₯2iβ1, we have grβ€3β
2j. Also, 2ar2β€2β
2kβ
(2k+4)2β€23k+9β€2j, which means that (2ar+g)rβ€2j+2β€2iβ1, since we are assuming that iβ3β₯j.
β
Lemma 20**.**
If dβ{1,3,5,11,13} and i is sufficiently large, then K(2i+d)β€2i+5.
Proof.
First, suppose that dβ{1,5,11,13}. If β2ic(2i+d)ββ,β¦,β2i(c+1)(2i+d)ββ are equivalent, respectively, to β2ic(2i+d)ββ+(2i+d),β¦,β2i(c+1)(2i+d)ββ+(2i+d), then the (c+1)th and (c+1+2i)th blocks of t are identical. Observe also that for cβ€4 and sufficiently large i, the sequences β2ic(2i+d)ββ,β¦,β2i(c+1)(2i+d)ββ and c,c+1 are identical.
Let
[TABLE]
For all dβ{1,5,11,13}, it is straightforward to verify that Ο(d)β‘tβ2i+d+Ο(d) and Ο(d)+1β‘tβ2i+d+Ο(d)+1. Thus, by setting c=Ο(d), we are done in the case dβ{1,5,11,13}.
Next, assume d=3. Note that if β2iβ1c(2i+3)ββ+(2i+3),β¦,β2iβ1(c+1)(2i+3)ββ+(2i+3) are equivalent respectively to β2iβ1c(2i+3)ββ+(2i+1+6),β¦,β2iβ1(c+1)(2i+3)ββ+(2i+1+6), then the (c+1+2iβ1)th and (c+1+2i)th blocks are the same. Choose c=4. The sequences β2iβ1c(2i+3)ββ+(2i+3),β¦,β2iβ1(c+1)(2i+3)ββ+(2i+3) and 2i+11,2i+12,2i+13 are identical. Similarly, the sequences β2iβ1c(2i+3)ββ+(2i+1+6),β¦,β2iβ1(c+1)(2i+3)ββ+(2i+1+6) and 2i+1+14,2i+1+15,2i+1+16 are identical. Since 11β‘tβ14, 12β‘tβ15, and 13β‘tβ16, we have that 2i+11β‘tβ2i+1+14, 2i+12β‘tβ2i+1+15, and 2i+13β‘tβ2i+1+16.
For each d, we were able to choose an appropriate cβ€4 such that (c+1)th and (c+1+2i)th blocks of t are identical. It follows that K(2i+d)β€2i+5.
β
We use Lemmas 17, 18, 19, and 20 to provide a strong upper bound on K(n) for all odd n, which will help improve bounds for both Ξ³(k) and Ξ(k)βΞ³(k).
Theorem 21**.**
For odd n, we have nββlimsupβnK(n)ββ€34β.
Proof.
If 2i<n<3β
2iβ1β13, then K(n)β€2iβ
(1+o(1))<nβ
(1+o(1)), where the inequality K(n)β€2iβ
(1+o(1))β€nβ
(1+o(1)) follows directly from Lemmas 17 through 20. If 3β
2iβ1β13β€n<2i+1, then [4, Lemma 14] implies K(n)β€2i+1β
(1+o(1))β€nβ
34ββ
(1+o(1)). We note, however, that there is an error in [4, Lemma 14], which we fix in A.
β
For n=2i+1,2i+3, and 22iβ3, we determine exact values of K(n). These values will be used to compute bounds for Ξ(k)βΞ³(k) for specific values of k, which will prove useful in understanding their asymptotic bounds.
Lemma 22**.**
We have that K(2i+1)=2iβ1+2 and K(2i+3)=2i+5 for all sufficiently large i.
Proof.
To show K(2i+1)β€2iβ1+2, note that if we set c=1, then β2iβ1c(2i+1)ββ=2 and β2iβ1(c+1)(2i+1)ββ=4. But for iβ₯4 and x=2,3,4, we have xβ‘tβ2iβ1+x+1. This means that K(2i+1)β€2iβ1+c+1=2iβ1+2 for iβ₯4 by Proposition 14.
However, we know if the jth and (jβ²)th blocks of length 2i+1 in t match, then jβ‘jβ²Β (modΒ 2iβ1). Hence, if K(2i+1)<2i+1+2, then the 1st and (2i+1)th blocks match. But the (2iβ1+1)th letter in the (2i+1+1)th block is t2iβ1(2i+1)+2iβ1β=0 while the (2iβ1+1)th letter in the first block is t2iβ1β=1. Therefore, K(2iβ1)=2iβ1+2.
Note that K(2i+3)β₯2iβ2 as a consequence of [4, Lemma 19]. Suppose that K(2i+3)β€2i. By Proposition 15, there exists dβ{0,1,2} such that the (2iβ1βd)th and (2iβd)th blocks of t are the same. For these blocks to be the same, the sequences β2iβ1(2i+3)(2iβ1βdβ1)ββ,β¦,β2iβ1(2i+3)(2iβ1βd)β1ββ and β2iβ1(2i+3)(2iβdβ1)ββ,β¦,β2iβ1(2i+3)(2iβd)β1ββ must have the same respective binary digit sums modulo 2. These sequences equal
[TABLE]
Since 2iβ4 has binary digit sum iβ2 and 2i+1β1 has binary digit sum i+1, we have dξ =2. We also know dξ =1 since 2iβ2 and 2iβ1 have binary digit sums iβ1 and i, respectively, while 2i+1+1 and 2i+1+2 both have binary digit sum 2. Finally, dξ =0 since 2i has binary digit sum 1 and 2i+1+2 has binary digit sum 2.
We may now assume K(2i+3)=2i+c for some cβ₯1. This is only possible if the (2i+c)th block in t is the same as either the cth block or the (2iβ1+c)th block. If cβͺi then the cth block of length 2i+3 of positive integers, when divided by 2iβ1 term-by-term, gives the sequence 2cβ2,2cβ1,2c, and the (c+2iβ1)th and (c+2i)th blocks of positive integers give 2i+2c+1,2i+2c+2,2i+2c+3 and 2i+1+2c+4,2i+1+2c+5,2i+1+2c+6. Since cβͺi, adding a 2i+1 or 2i term simply changes the letter t2c+xβ (from 1 to [math] or vice verse) for 1β€xβ€6. In other words, c is the smallest positive integer such that at least two of
[TABLE]
match. Just looking at tnβ for 0β€nβ€16 tells us that the first c for which we have a match is c=5. Therefore, K(2i+3)=2i+5.
β
Remark 23*.*
Note that we already knew K(2i+3)β€2i+5 for sufficiently large i from Lemma 20; now we know equality holds.
Lemma 24**.**
We have K(22iβ3)=22i+10.
Proof.
Let n=22iβ3. Because 3β
22iβ2<22iβ3 for iβ₯2, if the jth and (jβ²)th blocks of t match, then jβ‘jβ²Β (modΒ 22iβ1). First, assume K(n)β€22iβ1+2. Then either blocks 1 and 22iβ1+1 or blocks 2 and 22iβ1+2 match. However, this means either xβ‘tβx+n for all x such that 0=β22iβ10βββ€xβ€β22iβ1nβ1ββ=1 or xβ‘tβx+n for all x such that 1=β22iβ1nβββ€xβ€22iβ12nβ1β=3. But t1β=1 and t22iβ1β2β=0, so K(n)β₯22iβ1+3.
Next, suppose that K(n)β€22i. Then there exists some 2β€cβ€22iβ1β1 such that xβ‘tβx+n for all β22iβ1cnβββ€xβ€β22iβ1(c+1)nβ1ββ. However, any such x must satisfy 3β€x<22iβ1. Therefore, whenever β22iβ1cnβββ€xβ€β22iβ1(c+1)nβ1ββ, we have xξ β‘tβxβ3. But since β22iβ1cnβββ€β22iβ1(c+1)nβ1βββ1, there exists x such that txβξ =txβ3β,tx+1βξ =txβ2β. Since either x or x+3 is odd, we must have txβξ =tx+1β and txβ3βξ =txβ2β, so the only possible sequences for txβ3βtxβ2βtxβ1βtxβtx+1β are 01010,01110,10101,10001. We know none of 01010,10101,111, and 000 can appear as contiguous subwords of t because t is overlap-free. This yields a contradiction, so K(n)>22i.
Now, assume K(n)=22i+c for c<22iβ1. This means that either xβ‘tβx+2n for all x such that β22iβ1(cβ1)nβββ€xβ€β22iβ1cnβ1ββ or x+nβ‘tβx+2n for all such x. Writing out the possible values of x,x+n,x+2n for 1β€cβ€10 gives us the following table:
But it is straightforward to check the following for iβ₯3:
[TABLE]
These show that K(n)>22i+9. However,
[TABLE]
which means that indeed K(n)=22i+10.
β
Lemma 25**.**
For all sufficiently large i, there exists an odd n such that 617ββ
2iβ96<n<617ββ
2i and K(n)β€2i+6.
Proof.
Note that if i is sufficiently large, then 617ββ
2iβ96>514ββ
2i. This means that if c=6, then β2i(cβ1)nββ,β¦,β2icnβ1ββ is the sequence 14,15,16. Note that t15β=t17βξ =t16β and if we choose nβ‘1Β (modΒ 32), then 14+nβ‘15Β (modΒ 32) so t14+nβ=t16+nβξ =t15+nβ. Thus, it suffices to find an n such that t14β=t14+nβ and nβ‘1Β (modΒ 32). There exist 3 values of n, say n1β,n2β,n3β, between 617ββ
2iβ96 and 617ββ
2i satisfying the latter condition, such that n3β=n2β+32=n1β+64. It suffices to show 14+n1ββ‘tβ14+n2ββ‘tβ14+n3β cannot hold, because then t14β=t14+nIββ for some niβ. If 14+n1ββ‘tβ14+n2ββ‘tβ14+n3β, then β3214+n1ββββ‘tββ3214+n2ββββ‘tββ3214+n3βββ since n1ββ‘n2ββ‘n3βΒ (modΒ 32). This means that 3 consecutive integers are Thue-Morse equivalent, a contradiction. Thus, the 6th block and (2i+6)th block of length n are the same for some nβ{n1β,n2β,n3β}.
β
4 Bounds on Ξ³(k) and on Ξ(k)βΞ³(k)
First, we directly use the results of the previous section to improve bounds on Ξ³(k).
Theorem 26**.**
We have kββlimsupβkΞ³(k)β=23β.
Proof.
Since limsupkβββkΞ³(k)ββ€23β is true by Theorem 9, proven in [4], we only need to prove that limsupkβββkΞ³(k)ββ₯23β. Suppose n=aβ
2j+d is between 2i and 3β
2iβ1β13. If jβ₯43i+11β, then it follows from Lemmas 19 and 20 that K(n)β€2i+7. Otherwise, K(n)β€2i+3β
2j+28β€2i+3β
2(3i+11)/4+28 by Lemmas 17 and 18. For n<2i, we have that K(n)<2i(1+o(1)) [4, Lemma 17], which means that we can choose k=2i(1+o(1)) such that Ξ³(k)β₯23ββ
2iβ13. Taking this limit as i goes to infinity, we get the desired result.
β
Theorem 27**.**
We have kββliminfβkΞ³(k)ββ₯43β.
Proof.
This follows from Theorem 21, since Ξ³(k) is clearly the smallest n such that K(n)β₯k. Note that for all Ξ΅ we can choose N such that Ξ³(n)β€(34β+Ξ΅)n for all nβ₯N. Now, let K=maxnβ€NβK(n). Then for all kβ₯K, Ξ³(k)β₯N. If Ξ³(k)=n, then K(n)β₯k. But K(n)β€(34β+Ξ΅)n, so (34β+Ξ΅)nβ₯k. Therefore, Ξ³(k)β₯kβ
4/3+Ξ΅1β for all sufficiently large k, so the conclusion follows.
β
Thus, we have proven the second part of Defantβs conjecture and improved the lower bound for kββliminfβkΞ³(k)β to 43β.
It turns out that Ξ(k)βΞ³(k) also grows linearly in k. Note that limsupkβββkΞ(k)βΞ³(k)β is clearly positive and bounded above by 49β, since
[TABLE]
since limsupkβββkΞ(k)β=3 by Theorem 9 (d) and liminfkβββkΞ³(k)ββ₯43β by Theorem 27. However, if we look at liminfkβββkΞ(k)βΞ³(k)β similarly using Theorems 9 (c) and 26, we get
[TABLE]
so it is not obvious from our bounds on Ξ(k) and Ξ³(k) that Ξ(k)βΞ³(k) grows linearly in k. However, we can use the lemmas of the previous section and results from [4] to find stronger bounds on Ξ(k)βΞ³(k).
Theorem 28**.**
We have
[TABLE]
Proof.
Suppose that 2iβ€k<2i+1 and i is sufficiently large. If kβ€2i+5, then K(2i+3)β₯k, so Ξ³(k)β€2i+3. However, if i is even, then [4, Lemma 10] proves that Ξ(2iβ1+3β
2i/2+2+49)β₯3β
2iβ1β2i/2β2+1. But both Ξ³ and Ξ are clearly nondecreasing functions, so Ξ(k)β₯3β
2iβ1β2i/2β2+1 for sufficiently large i. Therefore, Ξ(k)βΞ³(k)β₯2iβ1β2i/2β2β2β₯(1/2βo(1))β
k. Similarly, if i is odd, [4, Lemma 10] proves that Ξ(2iβ1+2(iβ1)/2+2)β₯3β
2iβ1β2(iβ1)/2+1. Thus, Ξ(k)β₯3β
2iβ1β2(iβ1)/2+1, and Ξ(k)βΞ³(k)β₯2iβ1β2(iβ1)/2β2β₯(1/2βo(1))β
k.
Alternatively, if k>2i+5, then [4, Lemma 10] clearly implies that there exist sequences anβ,bnβ converging to [math] such that K((3βanβ)β
2i)<2iβ
(1+bnβ). Also,
[TABLE]
for sufficiently large i, with the first inequality true by [4, Lemma 19]. Therefore, Ξ³(k)β€3β
2iβ1+1 if kβ€2i(1+bnβ). However, K(2i+1+1)=2i+2<k, which means that Ξ(k)β₯2i+1+1. Therefore, Ξ(k)βΞ³(k)β₯2iβ1β₯(1/2βo(1))β
k.
Finally, if k>2i(1+bnβ), then Ξ(k)β₯(3βanβ)2i. As K(2i+1+3)>2i+1>k, we have that Ξ³(k)β€2i+1+3, which means Ξ(k)βΞ³(k)β₯(1βanβ)β
2iβ3β₯(1/2βo(1))k since k<2i+1. This proves liminfkβββkΞ(k)βΞ³(k)β>21β and proves that ΞβΞ³ indeed grows linearly in k, as we know Ξ(k)βΞ³(k)β€Ξ(k) and thus limsupkβββkΞ(k)βΞ³(k)β<β.
The upper bound is quite direct, since
[TABLE]
Unfortunately, we were unable to establish stronger bounds on this value. It appears unlikely that the true value of liminfkβββkΞ(k)βΞ³(k)β is 43β.
Theorem 29**.**
We have
[TABLE]
Proof.
The second inequality has been proven already. The first inequality comes from setting k=22i+9. Note that Ξ³(22i+9)β€22iβ3 for sufficiently large i by Lemma 24, but Ξ(22i+9)β₯617ββ
22iβ96 for sufficiently large i by Lemma 25. Therefore,
[TABLE]
so the conclusion follows by letting i go to infinity.
β
5 Conclusion and Further Directions
A natural way to view these results is to consider an infinite grid 2Nβ1ΓN, where (x,y) is shaded if y<K(x). In the interval [3β
2iβ1β13,3β
2iβ13)ΓN, we know that every element (x,y) where x is odd and yβ€2i is shaded, and every element (x,y) where x is odd and yβ₯2i+1β
(1+o(1)) is unshaded.
Unfortunately we know very little about the in-between region, with the exception of some values of K(n) for a few special values of n. This makes improving bounds for liminfkβββnΞ³(n)β and liminfkβββnΞ³(n)βnΞ(n)βΞ³(n)β difficult. While we know K(n) is between 2i and 2i+1(1+o(1)) for 3β
2iβ1<n<3β
2i, and while naturally it appears that K(n) should usually be close to 2i, there are certain values of n such as 3β
2iβ1+1 and 2i+1+3 where K(n) can get very large. Improving the asymptotic bounds on kΞ³(k)β and kΞ(k)βΞ³(k)β rely on understanding for what n is K(n) much larger than expected to be.
We make the following conjecture about the growth of K(n), which if true would prove useful in understanding Ξ(k)βΞ³(k) as well:
Conjecture 30**.**
There exists some sequence aiβ converging to [math] such that K(n)β€K(3β
2i+1) for all odd n with 3β
2i<n<2i+2β
(1βaiβ).
Conjecture 30 is supported by Figure 1. Note that Conjecture 30 implies that limsupkβββnΞ³(n)β=109β and liminfkβββkΞ(k)βΞ³(k)β=21β. Moreover, it implies that limsupkβββkΞ(k)βΞ³(k)ββ€2 since for all 2iβ€k<2i+1, Ξ(k)<3β
2i and Ξ³(k)>2iβ
(1βo(1)).
Finally, define the infinite word tn=t0nβt1nβt2nββ― so that tinβ is the sum of the digits of i in base n, reduced mod n. Similar questions to the ones we studied could be asked about corresponding values of K,Ξ³,Ξ for tn.
Acknowledgments
This research was funded by NSF grant 1358659 and NSA grant H98230-16-1-0026
as part of the 2016 Duluth Research Experience for Undergraduates (REU).
The author would like to thank Prof.Β Joe Gallian for running a wonderful REU and supervising the research, as well as Colin Defant, a fellow student at the REU whose research he encouraged me to look at. The author would also like to thank Gallian and Defant as well as Levent Alpoge and the anonymous reviewers for helpful comments on editing the paper.
Appendix A Fix to Error in Lemma 14 in Defantβs paper
In [4, Lemma 14], Defant attempts to prove K(n)<(1+n37β)β
2βlog2βnβ for all nβ‘29Β (modΒ 32), though his proof has a flaw. In his proof, he claims that
[TABLE]
which is incorrect. Here, we fix this issue by proving something slightly weaker which is sufficient for our purposes. We prove that for all sufficiently large n such that nβ‘29Β (modΒ 32), K(n)<(1+o(1))β
2βlog2βnβ. One can verify this is sufficient to fix any issues with [4, Lemma 14] as well as any future issues in Defantβs to get the required bounds on Ξ³(n) and Ξ(n)βΞ³(n).
The following lemma corresponds closely to Lemma 18. In addition to Lemma 19 for nβ‘29Β (modΒ 32) where 2iβ1<n<2i, it will take care of almost all cases where nβ‘29Β (modΒ 32) and 2iβ1<n<2i.
Lemma 31**.**
Suppose that i is sufficiently large and 2iβ1β€nβ€2i. Also, suppose that n=aβ
2jβ3 where a is odd and jβ₯5. Then K(n)β€2i+4β
2j+39.
Proof.
Recall that Ο(β3)=18, where Ο was the function from Lemma 18. Now, for some nonnegative integer y, let x=32y+18. Since nβ€2i, there must exist some integer c such that β2icnββ=x. We also must have β2i(c+1)nβ1βββ€x+1.
Now, suppose that we chose y such that yβ‘tβy+aβ
2jβ5. Then xβ‘tβx+n and x+1β‘tβx+n+1 since x=32y+18 and x+n=32(y+aβ
2jβ5)+15. Therefore, the (c+1)th and (c+1+2i)th blocks of size n are equal, which means that since cβ€2(x+1) as n>2iβ1 and β2icnββ=x, K(n)β€2i+2x+3=2i+64y+39.
Now, the only goal is to find a sufficiently small y. However, since a is odd then we must have either 1β‘tβa+1 or 2β‘tβa+2. This is because 1β‘tβ2 but a+1 is even so a+1ξ β‘tβa+2. If sβ{0,1,2} is the smallest nonnegative integer such that sβ‘tβa+s, then sβ
2jβ5=y satisfies yβ‘tβy+aβ
2jβ5. Therefore, K(n)β€2i+64β
(2β
2jβ5)+39=2i+4β
2j+39.
β
Now, the only cases remaining are n=2iβ3 and n=3β
2iβ2β3.
Lemma 32**.**
K(2iβ3)β€2i+10 for all sufficiently large i.
Proof.
Note that 2i+14β‘tβ2i+1+11,2i+15β‘tβ2i+1+12, and 2i+16β‘tβ2i+1+13. This means that xβ‘tβx+(2iβ3) for all 2i+14β€xβ€2i+16, i.e., for all β2iβ1(2iβ1+9)(2iβ3)βββ€xβ€β2iβ1(2iβ1+10)(2iβ3)β1ββ. Therefore, setting c=2i+9 and using Proposition 14 gives us the desired result.
β
Lemma 33**.**
K(3β
2iβ1β3)β€2i+14 for all sufficiently large i.
Proof.
Note that 19β‘tβ3β
2iβ1+16 and 20β‘tβ3β
2iβ1+17. Therefore, we have that xβ‘tβx+(3β
2iβ1β3) for all 19β€xβ€20, so xβ‘tβx+(3β
2iβ1β3) for all β2i13β
(3β
2iβ1β3)βββ€xβ€β2i14β
(3β
2iβ1β3)β1ββ. Now, using Proposition 14 with c=13 gives us the desired result.
β
Lemmas 19, 31, 32, and 33, in addition to the work of [4], give us that for all odd 2iβ1β€nβ€2i, K(n)β€2iβ
(1+o(1)) for sufficiently large i. This fixes all issues in Defantβs paper.