Extended-cycle integrals of modular functions for badly approximable numbers
Abstract.
Cycle integrals of modular functions are expected to play a role in real quadratic analogue of singular moduli. In this paper, we extend the definition of cycle integrals of modular functions from real quadratic numbers to badly approximable numbers. We also give explicit representations of values of extended-cycle integrals for some cases.
1. Introduction
The elliptic modular -function is an -invariant holomorphic function on the upper half-plane . It plays an essential role in the complex multiplication theory. Indeed, its special values at imaginary quadratic points generate the Hilbert class fields of imaginary quadratic fields. On the other hand, for real quadratic fields, any definitive construction of the Hilbert class fields or ray class fields is still unknown except for a few cases, that is [Shi72], [Shi78]. With this motivation, Kaneko [Kan09] introduced the “value” of , written derived from Dedekind’s notation, at any real quadratic number which is defined by
(1.1) |
where is any point, is the non-trivial Galois conjugate of , is the stabilizer of in , and is the unique element of such that and . The integral is independent of since the integrand is holomorphic and invariant under . We can prove that is the minimal unit greater than with the norm in the order in the real quadratic field whose discriminant coincides with the discriminant of .
This value can be written as , where
(1.2) |
are cycle integrals, , and is the geodesic in from to .
In the last decade, it turned out that the values of have interesting properties. They are related to a mock modular form of weight for studied by Duke–Imamoglu–Tóth [DIT11], which is a real quadratic analogue of Zagier’s work on traces of singular moduli in [Zag02]. They are also related to a locally harmonic Maass form of weight studied by Matsusaka [Mat20, Theorem 1.1]. Bengoechea–Imamoglu [BI19, Theorem 1.1] showed some kind of continuity for the values of at Markov quadratics which is conjectured by Kaneko [Kan09]. The author [Mur20, Theorem 1.1] generalized it to the values of at real quadratic numbers whose periods of continued fraction expansions have long cyclic parts. It revealed that the continuity of differs from Euclidean topology. However, the definition of the continuity of is still missing. We would expect a topological space containing all real quadratic numbers and a continuous function such that the diagram
(1.3) |
commutes.
In this paper, we attempt to choose as a set of badly approximable numbers and give some partial continuity of on . Here, badly approximable numbers are defined as irrational numbers whose regular continued fraction expansions
(1.4) |
have bounded coefficients, that is, the set is bounded. For example, real quadratic irrational numbers are badly approximable since they have periodic continued fraction expansions.
We define and related values for a badly approximable number as
(1.5) | ||||
(1.6) | ||||
(1.7) | ||||
(1.8) |
where , is the geodesic in from to ,
(1.9) |
and be the denominator of the rational number . In Section 3 later, we will introduce more general representations of these values.
We will prove that these limit values are bounded, but we do not know if the limit values are singleton. Hence, the right-hand sides of the above equations do converge for any badly approximable number. We can also prove that if is a real quadratic number, then the limits , and converge, coincides with the values defined in 1.1, and we can write
(1.10) |
where are half of the length of the minimum even period of the continued fraction expansion of . Thus, for a badly approximable number is an analog of fundamental units of real quadratic orders.
Our purpose in this paper is to give uncountable infinitely many badly approximable numbers such that the limits and converge. We also explicitly represent values of extended function at badly approximable numbers which have infinitely long cyclic parts in their continued fractions.
To explain the main results, we introduce some notation for even words. For an even number and positive integers , we call a tuple an even word. In the case when , we call it the empty word and denote it by . For even words , define their product
(1.11) |
For an infinite sequence of even words , define
(1.12) |
For a non-empty even word , define
(1.13) |
Our first main result is as follows.
Theorem 1.1.
Let be even words, be non-empty even words, and , , be sequences in such that and when goes to infinity. Let , ,
(1.14) |
and
(1.15) |
Then the limits and converge and it holds and . Moreover, it also holds
(1.16) |
Here we remark that the author proved that the right-hand side in 1.16 equals to the limit of in [Mur20, Theorem 1.1].
Next, we consider the value of function at the Thue–Morse word. It is a typical word which is repetition-free. We fix two even words and . Let be the set of even words generated by which are of finite length. Let be the set of even words generated by which are of infinite length. We define the monoid homomorphism by . In this setting, the word
(1.17) |
is called the Thue–Morse word. It is known that is cubefree (for example, see [CK97, Section 3]), and thus it is not a word which satisfies the conditions in Theorem 1.1.
The value of function at the Thue–Morse word is calculated as follows.
Theorem 1.2.
Let and . Then converges if and only if converges. Moreover, we have
(1.18) |
The definitions of and are like the Birkoff average in ergodic theory. Khinchin-Lévy’s theorem in ergodic theory asserts that for almost all with respect to the measure
(1.19) |
on , the limit defining converges and we have
(1.20) |
Although ergodic theory makes it possible to study values like the Birkoff average at almost all points, it does not tell us about a value at each point, for example, a badly approximable number. We can state that this paper studies a range which ergodic theory does not deal with.
This paper will be organized as follows. In Section 2, we give renewal definitions of , and for real quadratic numbers , which are suitable to generalize for badly approximable numbers. In Section 3, we state some fundamental properties of the limits and for each badly approximable number . In Section 4, we describe in terms of the limit value along a geodesic and study its properties. In Section 5, we also study basic properties of and which are defined using the continued fraction expansion of . In Section 6, we study and a relation between it and . Finally we prove Theorem 1.1 in Section 7 and Theorem 1.2 in Section 8.
Acknowledgement
I would like to show my greatest appreciation to Professor Takuya Yamauchi for giving many pieces of advice. I am deeply grateful to Dr. Toshiki Matsusaka for giving many comments. I would like to express my gratitude to Professor Shun’ichi Yokoyama and Dr. Toshihiro Suzuki for giving me constructive comments on computing numerically. It is a pleasure to extend my thanks to Professor Tatsuya Tate for teaching me ergodic theory. I also thank Dr. Daisuke Kazukawa, Dr. Hiroki Nakajima, and Dr. Shin’ichiro Kobayashi for teaching me geodesics, hyperbolic geometry, and metric spaces. I appreciate the technical assistance of Dr. Naruaki Kato for introducing me to how to write works by using GitHub.
2. A renewal definition of for real quadratic numbers
In this section, we give renewal definitions of for real quadratic numbers , which are suitable to generalize for badly approximable numbers. To begin with, we list some basic notations and facts.
2.1. Basic notation and properties for geodesics
Let be the upper half plane and be its line element. Here we remark that is invariant under . We denote by the point at infinity. Let . For two points , we denote by the geodesic in from to . For two points , define hyperbolic distance between them by
(2.1) |
The following lemma is fundamental.
Lemma 2.1.
For two points , the following statements hold.
-
(i)
For any , it holds .
-
(ii)
([Bea83, Theorem 7.2.1 (ii)])
(2.2)
For , define a -form
(2.3) |
Here, let if or .
By a direct calculation, we have the following lemma.
Lemma 2.2 ([Mur20, Lemma 2.5]).
For any and , we have
(2.4) |
We need the following lemma to express as a quotient of two cycle integrals.
Lemma 2.3.
For two points with , we have on .
Proof.
Let
(2.5) |
be a matrix in . Since and , it is enough to show when and . On the geodesic , we have . ∎
2.2. Basic notation and properties for real quadratic numbers
For a real quadratic number , let be the non-trivial Galois conjugate of , be the stabilizer of in , and be the unique element of such that and . It holds . Thus, the geodesic is invariant under . It also holds by Lemma 2.2.
2.3. Basic notation and properties for continued fractions and words
For the convenience of the reader, we recall notations for even words prepared in Section 1.
Each real number can be represented by the unique continued fraction
(2.6) |
where is an integer and are positive integers. For positive integers , we set a periodic continued fraction
(2.7) |
For a real number, being quadratic (resp. rational) is equivalent to having a periodic (resp. finite) continued fraction expansion ([Aig97, Theorem 1.17]).
For an even number and positive integers , we call a tuple an even word. In the case when , we call it the empty word and denote it by . For even words , define their product
(2.8) |
For an infinite sequence of even words , define
(2.9) |
For the empty word and a non-empty even word , define
(2.10) | ||||
(2.11) | ||||
(2.12) | ||||
(2.13) |
Moreover, for an even word and a non-empty even word , define
(2.14) |
The matrix has the following properties.
Lemma 2.4 ([Mur20, Lemma 2.3]).
The following properties hold.
-
(i)
For even words , we have .
-
(ii)
Let , be an even word and be an infinite word. Then, for an irrational number , we have . In particular, for a real quadratic number , we have .
-
(iii)
For a reduced real quadratic number , there exists the minimal even word such that . Then we have and . Generally, for a non-empty even word and a real quadratic number , we have .
-
(iv)
For a real quadratic number , there exist even words and such that . Then .
2.4. Kaneko’s val
Let be the elliptic modular -function. For a real quadratic number , define
(2.15) |
where is any point.
The following lemma follows from Lemmas 2.2 and 2.3.
Lemma 2.5.
For a real quadratic number , any point and any positive integer , it holds
(2.16) | ||||
(2.17) |
The following lemma is fundamental.
Lemma 2.6 ([Mur20, Propositon 2.7]).
For a real quadratic number , it holds
(2.18) |
By the above lemmas, we obtain the following expression of , which are suitable to generalize for badly approximable numbers.
Proposition 2.7.
For a real quadratic number and any point , it holds
(2.19) |
Proof.
To generalize , , and for badly approximable numbers, we need some notation. For a real quadratic number , define
(2.24) |
These values are independent of a choice of an even word and have the following expression.
Proposition 2.8.
Let be a real quadratic number. Let and be integers and be non-empty even words such that . For an integer , let where is an integer such that . For a positive integer , let . Let be a point. Then, we have
(2.25) | ||||
(2.26) |
Proof.
Let . For a positive integer , let
(2.27) |
Since
(2.28) |
it suffices to show that
(2.29) |
for any integer .
Remark 2.9.
In Proposition 2.8, the first finite term of a continued fraction does not contribute to the left-hand side. Thus, the right-hand side in Proposition 2.8 depends only on the period in the continued fraction.
3. Fundamental properties of the extended function
With reference to Propositions 2.7 and 2.8, we now define for a badly approximable number as follows. Let be an infinite sequence of even words such that and the set is finite. We remark that if then the first entry of is not positive. Let be the denominator of the rational number and put
(3.1) |
Take and . We define the limits and by
(3.2) | ||||
(3.3) | ||||
(3.4) | ||||
(3.5) |

In the later sections, we will prove the following.
Theorem 3.1.
Let be a badly approximable number and be an infinite sequence of even words such that and the set is finite. Take any points and . Then the following statements hold.
- (i)
- (ii)
-
(iii)
If and converge, then for any point and a sequence of real numbers with , we have
(3.6) (3.7) Here we define if .
-
(iv)
The limit converges if and only if converges. Moreover, we have .
-
(v)
It holds . In particular, .
-
(vi)
If and converge, then converges and we have .
Here we remark that Theorem 3.1 (vi) follows from Theorem 3.1 (iv) and (v).

4. The extended function as the limit value along a geodesic
In this section, we prove Theorem 3.1 (i) and (ii) for . We start with the following properties of badly approximable numbers. Let be the natural projection.
Proposition 4.1 ([Dal11, Chapter VII, Theorem 3.4], [Dal11, Chapter VII, Lemma 3.5]).
For an irrational number , the following statements are equivalent.
-
(i)
is badly approximable;
-
(ii)
;
-
(iii)
;
-
(iv)
For any point , the closure is compact.
The constant is called the Lagrange number of . Usually, badly approximable numbers are defined as irrational numbers with finite Lagrange numbers.
The following is a key fact in this section.
Theorem 4.2 (Theorem 3.1 (i) and (ii) for ).
Let be a badly approximable number. Take any point . Then the following statements hold.
-
(i)
The limit value
(4.1) is bounded.
-
(ii)
For any matrix , we have .
-
(iii)
If the limit converges, then it is independent of .
-
(iv)
For a real quadratic number , converges and coincides with the value defined in 1.1.
Proof.
To begin with, we remark that (iv) follows from Propositions 2.7 and (iii).
We will prove (i). Since is badly approximable, the closure is compact by Proposition 4.1. Thus, we can choose such that on . Since
(4.2) |
the limit is bounded.
The second claim (ii) follows from the fact that is -invariant.
As for the third claim (iii), for each point , we consider
(4.3) |
We will show that this value is independent of in two steps.
Step 1. We will show that for any point . For , let
(4.4) |
Clearly,
(4.5) |
Since
(4.6) |
is bounded, we have
(4.7) |

Step 2. We will show that for any points . This part is due to Matsusaka. Take a matrix such that . Let be any positive number. By Step 1, we can replace by . Thus, we may assume . Let for . Then is a subgeodesic of . Since on , we have
(4.8) | ||||
(4.9) |
Since
(4.10) |
we obtain
(4.11) |
For two points , the hyperbolic distances on and are respectively defined by
(4.12) |
They define the hyperbolic distances on and respectively. By Lemma 2.1, we have
(4.13) |
Thus, we have
(4.14) |
Since is badly approximable, is compact by Proposition 4.1. Thus, is continuous on with respect to the metric . Hence for any , there exists such that
(4.15) |
for any . Then we have
(4.16) |
that is, . ∎
5. The extended function as the limit value along a continued fraction
In this section, we prove Theorem 3.1 (i), (ii), and (iii) for and .
To prove Theorem 3.1 (ii), we prepare several lemmas.
Lemma 5.1.
For a badly approximable number , let . Then for any point , the set is bounded.
Proof.
Let be the number defined in Proposition 4.1. By Proposition 4.1, we have
(5.1) |
for all sufficiently large . Thus, the radius of is less than . Since coefficients of the continued fraction expansion of are bounded, is bounded. Thus, is also bounded. ∎

Lemma 5.2.
For an even word , a point , and sequences , we have
(5.2) |
Proof.
Since
(5.3) |
on the contour , it holds
(5.4) |
Similar argument shows
(5.5) |
∎
A key result in this section is the following.
Theorem 5.3 (Theorem 3.1 (i) for and ).
Let be a badly approximable number and be an infinite sequence of even words such that and the set is finite. Take a point . Then the following statements hold.
-
(i)
The sequences defining the limits
(5.6) (5.7) is bounded.
-
(ii)
The limits and are independent of .
-
(iii)
The limits and are independent of .
-
(iv)
The limits and are -invariant.
Proof.
For the first claim (i), let
(5.8) | ||||
(5.9) | ||||
(5.10) | ||||
(5.11) | ||||
(5.12) |
Here and are positive real numbers and converges since the set is finite. Since is badly approximable, is a positive real number by Lemma 5.1. We can write
(5.13) |
For any positive integer , we have
(5.14) | ||||
(5.15) | ||||
(5.16) |
and thus the sequence is bounded.
For (ii), pick any other point . We have
(5.17) | ||||
(5.18) | ||||
(5.19) |
by Lemma 2.2. Since the most right-hand side is bounded by Lemmas 5.1 and 5.2, we have
(5.20) |
Finally, we prove (iv). Since -equivalent real numbers have the same continued fraction expansions except for the first few terms, it suffices to show in the case when . This follows from the fact that
(5.22) |
for is bounded by Lemmas 5.1 and 5.2. ∎
In Theorem 5.3 (i), we consider the differential form . In fact, we can replace it by for any point . To prove it, we prepare the following lemma.
Lemma 5.4.
In the setting of Theorem 5.3, let be a bounded sequence such that is not an accumulation point. Then the sequence
(5.23) |
is bounded.
Proof.
Let
(5.24) |
Then
(5.25) | |||
(5.26) |
∎
By Lemma 5.4, we can reformulate the definition of in Theorem 5.3 (i) as follows.
Proposition 5.5.
In the setting of Theorem 5.3, let be a bounded sequence such that is not an accumulation point. Then
(5.27) |
holds.
Finally, we prove Theorem 3.1 (iii).
Theorem 5.6 (Theorem 3.1 (iii)).
In the setting of Theorem 5.3, for any point and a sequence of real numbers such that and , we have
(5.28) | ||||
(5.29) |
Proof.
We prove only the first equality. Let . By Proposition 5.5, we have
(5.30) |
Take a point such that . Then we have
(5.31) |
Since , we have . Thus, is bounded by Lemma 5.1. Since
(5.32) |
by the triangle inequality and Lemma 2.1 (ii), is bounded. Let
(5.33) |
Then
(5.34) | ||||
(5.35) | ||||
(5.36) |
is bounded by Lemma 5.1. Thus, we obtain
(5.37) |
∎
6. Elementary units for badly approximable numbers
In this section, we consider an analog of elementary units for badly approximable numbers and prove Theorem 3.1 (iv) and (v).
Theorem 6.1 (Theorem 3.1 (iv) and (v)).
Let be a badly approximable number and be an infinite sequence of even words such that and the set is finite. Let be the denominator of a rational number and
(6.1) |
Then the limit
(6.2) |
converges if and only if converges. In that case, it holds .
Here we call the elementary units for each badly approximable number . Before giving a proof, we state a remark.
Remark 6.2.
In the situation in Theorem 6.1, we have .
Proof of Theorem 6.1.
Let
(6.3) |
Here is a denominator of the rational number . Pick any point . Then we have
(6.4) |
Since converges to as and the argument of is bounded, this limit value is equal to
(6.5) |
This is equal to
(6.6) |
since is badly approximable and is bounded by Lemma 5.1. Since is bounded by Lemma 5.1,
(6.7) |
is bounded for any point . Thus, we obtain
(6.8) |
By substituting , we have
(6.9) |
Since is bounded, we obtain
(6.10) |
∎
Example 6.3.
For the case when , since
(6.11) |
where denotes the -th Fibonacci number, we have
(6.12) |
7. An explicit computation of values of extended function
In this section, we prove Theorem 1.1. The most important point of the proof below is the following lemma which is based on the proof of [BI19, Theorem 4.3] and is a generalization of [Mur20, Lemma 3.3].
Lemma 7.1 (Repetition frequency estimation).
Let , , be sequences in such that and as . Let be a non-empty even word and put . Let and be non-empty even words such that and , and coincide in the first terms respectively. Let and be sequences of real numbers whose continued fraction expansions are
(7.1) |
respectively. Then
(7.2) |
is a Cauchy sequence. In particular, we have
(7.3) |
Proof.
Take positive integers with . We have
(7.4) |
Let
(7.5) | ||||
(7.6) | ||||
(7.7) | ||||
(7.8) |
Then we can write
(7.9) |
For each , since
we have
(7.10) |
For each , since
(7.11) |
we have
(7.12) |
By Lemma 5.2, we obtain
(7.13) |
Since this converges to 0 as by the assumption, is a Cauchy sequence. ∎
Proof of Theorem 1.1.
Keep the notation in Theorem 1.1 and let
(7.14) |
It suffices to show that
(7.15) |
Take any real number and for positive integers and , let
(7.16) | ||||
(7.17) | ||||
(7.18) | ||||
(7.19) |
Since , the far right-hand sides in the second and fourth rows are continued fraction expansions. Then we have
(7.20) | ||||
(7.21) | ||||
(7.22) |
Since we have
(7.23) |
by continued fraction expansion, it follows from Lemma 5.2 that
(7.24) |
Since
(7.25) | ||||
(7.26) |
we have
(7.27) |
by Lemma 7.1. Thus, we obtain
(7.28) | ||||
(7.29) |
∎
8. The value of function at the Thue–Morse word
In this section, we calculate the value of function at the Thue–Morse word and prove Theorem 1.2.
We fix two even words and . Let be a monoid homomorphism such that and be the Thue–Morse word. For a word with , let .
To begin with, we give a simple representation of the Thue–Morse word.
Lemma 8.1.
Let be a monoid homomorphism such that and . Then the following statements hold.
-
(i)
For any positive integer , we have .
-
(ii)
.
Proof.
Proof of Theorem 1.2.
References
- [Aig97] M. Aigner. Markov’s theorem and 100 years of the uniqueness conjecture. Springer, 1997.
- [Bea83] A. F. Beardon. The geometry of discrete groups, volume 91 of Graduate Texts in Mathematics. Springer-Verlag, New York, 1983.
- [BI19] P. Bengoechea and Ö. Imamoglu. Cycle integrals of modular functions, Markov geodesics and a conjecture of Kaneko. Algebra Number Theory, 13(4):943––962, 2019.
- [CK97] C. Choffrut and J. Karhumäki. Combinatorics of words. In Handbook of formal languages, Vol. 1, pages 329–438. Springer, Berlin, 1997.
- [Dal11] F. Dal’Bo. Geodesic and horocyclic trajectories. Universitext. Springer-Verlag London, Ltd., London; EDP Sciences, Les Ulis, 2011. Translated from the 2007 French original.
- [DIT11] W. Duke, Ö. Imamoḡlu, and Á. Tóth. Cycle integrals of the -function and mock modular forms. Ann. of Math. (2), 173(2):947–981, 2011.
- [Kan09] M. Kaneko. Observations on the ‘values’ of the elliptic modular function at real quadratics. Kyushu Journal of Mathematics, 63(2):353–364, 2009.
- [Mat20] T. Matsusaka. A hyperbolic analogue of the rademacher symbol. 2020. arXiv:2003.12354.
- [Mur20] Y. Murakami. A continuity of cycle integrals of modular functions. Ramanujan J., 2020.
- [Shi72] G. Shimura. Class fields over real quadratic fields and Hecke operators. Ann. of Math. (2), 95:130–190, 1972.
- [Shi78] Takuro Shintani. On certain ray class invariants of real quadratic fields. J. Math. Soc. Japan, 30(1):139–167, 1978.
- [Zag02] D. Zagier. Traces of singular moduli. In Motives, polylogarithms and Hodge theory, Part I (Irvine, CA, 1998), volume 3 of Int. Press Lect. Ser., pages 211–244. Int. Press, Somerville, MA, 2002.