-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqeta.tex
5371 lines (4541 loc) · 158 KB
/
qeta.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
\documentclass{article}
\usepackage{qeta}
\externaldocument{qetasymb}
\begin{document}
\title{The QEta Package\\
\textcolor{red}{THIS IS WORK IN PROGRESS}}
\author{Ralf Hemmecke}
\maketitle
\begin{abstract}
QEta is a software package that implements an algorithm of
Cristian-Silviu Radu to find Ramanujan-Kolberg identities. QEta
includes the extension of Radu's algorithm to the case of
generalized eta-functions as given by Chen, Du, and Zhao in 2019.
%
Furthermore, QEta can find a basis of relations of (generalized)
Dedekind eta-functions as well as relations among dissections of
eta-quotients.
%
QEta is programmed in the computer algebra system \FriCAS{}.
\end{abstract}
\tableofcontents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{General Overview}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The QEta package started with an implementation of the \algo{AB}
algorithm from \cite{Radu_RamanujanKolberg_2015} and the \algoSamba{}
algorithm from \cite{Hemmecke_DancingSambaRamanujan_2018}, in addition
it implements the algorithm from
\cite{HemmeckeRadu_EtaRelations_2019} to compute all polynomial
relations of Dedekind eta-functions of a certain level.
The underlying theory of the programs is described in the articles
\cite{Radu_RamanujanKolberg_2015},
\cite{Hemmecke_DancingSambaRamanujan_2018}, and
\cite{HemmeckeRadu_EtaRelations_2019}.
Installation instructions can be found at
\url{https://hemmecke.github.io/qeta}.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Overview of the files}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The QEta package consists of following parts that are stored in the
respective \PathName{.spad} files. We mark the files that are only
there for historical reasons by a star. They are not really necessary
to compute the relation among eta-functions.
%\include{qetaabstracts}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Theoretical background}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Notation}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{Hemmecke}
See \cite{HemmeckePauleRadu_IntegralBasis_2021}.
\end{Hemmecke}
Let $\setH=\SetDef{\tau\in \setC}{\mathrm{Im}(\tau)>0}$ denote the
complex upper half-plane.
%
In the following $N$ denotes a positive integer. We abbreviate
\defineterm{congruence modulo $N$} by
\begin{gather}
a \equiv_N b :\iff a \equiv b \pmod{N}
\end{gather}
%
We define the groups
\begin{align}
\defineNotation[SL2Z]{\SL2Z}
&=
\SetDef{
\begin{pmatrix}
a & b\\
c & d\\
\end{pmatrix}}{a,b,c,d\in\setZ \text{ and } ad-bc=1},
\label{eq:SL2Z}
\\
%
\defineNotation[Gamma0N]{\Gamma_0(N)}
&=
\SetDef{
\begin{pmatrix}
a & b\\
c & d\\
\end{pmatrix} \in \SL2Z}{c \equiv_N 0};
\label{eq:Gamma0}
\\
\defineNotation[Gamma1N]{\Gamma_1(N)}
&=
\SetDef{
\begin{pmatrix}
a & b\\
c & d
\end{pmatrix} \in \SL2Z}{c \equiv_N 0, a \equiv_N d \equiv_N 1}
\label{eq:Gamma1}
\end{align}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{AdditionalInformation}
See, for example,
\url{https://en.wikipedia.org/wiki/Congruence_subgroup}.
\end{AdditionalInformation}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
$\SL2Z = \Gamma_0(1) = \Gamma_1(1)$ acts on $\setH$ by
$
\begin{smallpmatrix}
a & b\\
c & d\\
\end{smallpmatrix} \tau
=
\frac{a \tau + b}{c \tau + d}
$.
%
This action induces an action on meromorphic functions
$f:\setH\to\setChat:=\setC\cup\Set{\infty}$, namely
\begin{gather*}
(f|\gamma)(\tau) := f(\gamma \tau).
\end{gather*}
%
Let $\Gamma$ be $\Gamma_0(N)$ or $\Gamma_1(N)$.
A \defineterm{modular function} for $\Gamma$ is a meromorphic
function $f:\setH\to\setChat$ such that
\begin{enumerate}
\item for all $\gamma \in \Gamma$:
\begin{math}
f|\gamma = f;
\end{math} and
\item if
$\gamma =
\begin{smallpmatrix}
a&b\\c&d
\end{smallpmatrix}
\in \mathrm{SL}_2(\setZ)$ then $f\left(\frac{a \tau + b}{c \tau + d}\right)$
admits a Laurent series expansion in powers of $q^{1/w_\gamma}$ of the form
\begin{gather}
\label{eq:f(gamma*tau)-expansion}
f(\gamma\tau) = \sum_{n=m}^\infty f_n q^{n/w_\gamma},
\text{ where $q=\exp(2\pi i\tau)$, $m \in \setZ$.}
\end{gather}
\end{enumerate}
For $\Gamma_0(N)$ the \defineterm{width} $w_\gamma$ is given by
\begin{gather}
\defineNotation[w-gamma]{w_\gamma} = \frac{N}{\gcd(c^2, N)}
\label{eq:width0}
\end{gather}
whereas for $\Gamma_1(N)$ it is
\begin{gather}
w_\gamma
=
\begin{cases}
1, & \text{if $N=4$ and $\gcd(c,4)=2$},\\
\frac{N}{\gcd(N,c)}, & \text{otherwise},
\end{cases}
\label{eq:width1}
\end{gather}
see Equation~(2.49) in
\cite{ChenDuZhao_FindingModularFunctionsRamanujan_2019} or Corollary~4
(2) of \cite{ChoKooPark_ArithmeticRamanujanGoellnitzGordon_2009}.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Because of
$\gamma\infty:=\lim_{\mathrm{Im}{(\tau)}\to\infty}\gamma\tau = a/c$,
we say that \eqref{eq:f(gamma*tau)-expansion} is a
\defineterm{q-expansion-of-f-at-a/c@$q$-expansion of $f$ at $a/c$}.
Understanding $a/0=\infty$, this extends to defining $q$-expansions at
$\infty$. Note that if $\gamma'\infty=\gamma\infty=a/c$ then
$\gamma'=\gamma
\begin{smallpmatrix}
\pm 1 & h\\0 & \pm 1
\end{smallpmatrix}
$ for some $h \in \setZ$ and, thus,
\begin{gather}
\label{eq:f(gamma'*tau)-expansion}
f(\gamma'\tau)
=
\sum_{n=m}^\infty f_n \exp(\pm 2\pi i h /w_\gamma)^n q^{n/w_\gamma};
\end{gather}
\ie, we can (uniquely) extend the definition of $f$ to points on
$\setHhat:=\setH\cup\setQ\cup\Set{\infty}$ as
\begin{gather*}
f(a/c) =
\begin{cases}
f_0&\text{if $m=0$,}\\
0&\text{if $m>0$,}\\
\infty&\text{if $m<0$}.
\end{cases}
\end{gather*}
Let $M^\infty(\Gamma)$ be the set of modular functions for $\Gamma$
that only have a pole (if any) at infinity.
%
An element $f\in M^\infty(\Gamma)$ has a representation as a Laurent
series in $q$.
We denote by $\defineNotation[pord]{\pord}(f)=-\ord_qf$ the
\defineterm{pole order} (at infinity) of $f$; here $\ord_qf$ is
defined as the index of the least non-zero coefficient in the
expansion~\eqref{eq:f(gamma*tau)-expansion} of $f$ in powers of $q$.
In view of~\eqref{eq:f(gamma'*tau)-expansion} with $\gamma$ being the
identity matrix and thus $w_\gamma=1$, we note that $q$-expansions at
infinity are unique in \textit{integer} powers of $q$.
The action of $\SL2Z$ on $\setH$ extends in an obvious way to an
action on $\setHhat$. The orbits of the action of the subgroup
$\Gamma\subset \SL2Z$ are denoted by
\begin{gather*} [\tau]_\Gamma :=
\SetDef{\gamma\tau}{\gamma\in\Gamma},\qquad\tau\in\setHhat.
\end{gather*}
The set of all such orbits is denoted by
\begin{gather*}
\defineNotation[X-0]{X_0(N)} = \SetDef{[\tau]_{\Gamma_0(N)}}{\tau\in\setHhat}
\text{ and }
\defineNotation[X-1]{X_1(N)} := \SetDef{[\tau]_{\Gamma_1(N)}}{\tau\in\setHhat}.
\end{gather*}
There are only finitely many cosets with respect
to $\Gamma_0(N)$; more precisely, for $N\ge2$,
\begin{gather*}
[\SL2Z : \Gamma_0(N)]
=
N \prod_{\text{prime $\divides{p}{N}$}} \Bigl(1+\frac{1}{p}\Bigr).
\end{gather*}
Owing to this fact together with the observation
$\setQ\cup\{\infty\}=\SetDef{\gamma\infty}{\gamma\in\SL2Z}$,
%
there are only finitely many orbits $[\tau]_{\Gamma_0(N)}$ with
$\tau\in\setQ\cup\Set{\infty}$. These orbits are called
\defineterm{cusps} of $X_0(N)$.
Similarly, cusps of $X_1(N)$ are defined. Note that
\begin{gather*}
[\SL2Z : \Gamma_1(N)]
=
N^2 \prod_{\text{prime $\divides{p}{N}$}} \Bigl(1+\frac{1}{p^2}\Bigr).
\end{gather*}
See Section 2 of \cite{DiamondShurman_ModularForms_2005} for how the
sets $X_0(N)$ and $X_1(N)$ can be given the structure of a compact
Riemann surface. The genus $g_0(N)$ of $X_0(N)$ and $g_1(N)$ of
$X_1(N)$ can be computed by a formula given in Section~6.1 and 6.2 of
\cite{Stein_ModularFormas_2007}.
From Liouville's Theorem for compact Riemann surfaces follows that a
\useterm{modular function} for $\Gamma$ that has no pole at any cusp
of $\Gamma$, is constant. This fact, is intensively used in order to
check that an element of $M^\infty(\Gamma)$ given by its $q$-expansion
at infinity is zero or not.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Dedekind eta-function}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{Definition}\label{def:epsilon}
Let $\defineNotation[epsilon]{\unityPowerSymbol}: \setC \to \setC$
and $\defineNotation[epsilon-tau]{\unityPowerSymbol^\tau}: \setC \to \setC$
be defined by
\begin{gather*}
\unityPower{x} := \exp(2\pi i x),
\qquad
\unityPowerTau{x}=\unityPower{\tau x} = \exp(2\pi i x \tau)
\end{gather*}
\end{Definition}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Let $\defineNotation[H]{\setH}=\SetDef{c\in \setC}{\Im(c)>0}$ denote
the complex upper half-plane.
Let
\begin{gather}\label{eq:eta-expansion}
\defineNotation[eta]{\eta}: \setH \to \setC, \quad
\tau \mapsto \unityPowerTau{\frac{1}{24}} \prod_{n=1}^{\infty}(1-q^n)
=
\unityPowerTau{\frac{1}{24}} \eulerFunction{}
\end{gather}
with $\defineNotation[q]{q} = \unityPower{\tau} = \unityPowerTau{1}$
denote the \defineterm{Dedekind eta-function}.
Note that
$\defineNotation[a-q]{\qPochhammer{a}{q}}=\prod_{n=0}^{\infty}(1-aq^n)$
denotes the \defineterm{q-Pochhammer symbol@$q$-Pochhammer symbol}.
More generally, we define recursively
\begin{gather}
\defineNotation[a-k-q]{\qPochhammer{a_1,\ldots,a_k}{q}}
=
\qPochhammer{a_1,\ldots,a_{k-1}}{q} \qPochhammer{a_k}{q}
\end{gather}
and abbreviate the special case $a=q$ by
\begin{gather}
\defineNotation[q-EulerFunction]{\eulerFunction{}}
= \qPochhammer{q}{q}.
\end{gather}
Thus, we have
\begin{gather*}
\eta(\tau) = \unityPowerTau{\frac{1}{24}} \eulerFunction{}
\end{gather*}
For any positive integer $\delta$ we define
\begin{gather}
\defineNotation[eta-delta]{\eta_\delta}: \setH \to \setC,\quad \tau
\mapsto \eta(\delta\tau)
\label{eq:eta_delta(tau)}
\end{gather}
None of these functions is identically zero.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Generalized Dedekind eta-function $\eta_{\delta,g}$}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Let $\defineNotation[B]{B(x)} = x^2 - x + \frac{1}{6}$
be the second Bernoulli function, $\{x\}$.
%
Denote the fractional part of $x$, by
$\defineNotation[x-fractional]{\{x\}} = x - \lfloor x \rfloor$,
$\defineNotation[x-floor]{\lfloor x \rfloor}$ denotes the greatest
integer less than or equal to $x$.
We define
\begin{gather}
\defineNotation[P-2]{P_2(x)} = B(\{x\}) = \{x\}^2 - \{x\} + \frac{1}{6}.
\label{eq:P-2}
\end{gather}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{Definition}
\label{def:eta_delta-g^[R](tau)}
\cite{Robins_GeneralizedDedekindEtaProducts_1994}
%
Let $0<\delta\in\setZ$ and $g\in\setZ$.
%
The \defineterm{generalized Dedekind eta-function} is given by
\begin{align}
\defineNotation[eta-delta-g-tau-Robins]{\eta_{\delta,g}(\tau)}
&:=
q^{\frac{\delta}{2}P_2(\frac{g}{\delta})}
%
\prod_{\substack{n>0\\n\equiv g\ (\mathrm{mod}\ \delta)}} (1-q^n)
\prod_{\substack{n>0\\n\equiv -g\ (\mathrm{mod}\ \delta)}} (1-q^n).
\label{eq:eta_delta-g^[R](tau)-mod}
\end{align}
\end{Definition}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{Lemma}\label{thm:eta_delta-g/2}
\begin{gather*}
\eta_{\delta,g+\delta}(\tau)
=
\eta_{\delta,-g}(\tau)
=
\eta_{\delta,g}(\tau).
\label{eq:eta_delta-g^[R](tau)-mod-delta}
\end{gather*}
\end{Lemma}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{proof}
If $g \equiv 0 \pmod{\delta}$, the statement follows from the
definition immediately.
Let $g \not\equiv 0 \pmod{\delta}$.
By the definition above we must only show that
$P_2\left(\frac{-g}{\delta}\right) =
P_2\left(\frac{\delta+g}{\delta}\right) =
P_2\left(\frac{g}{\delta}\right)$ for
$g \not\equiv 0 \pmod{\delta}$.
%
By \eqref{eq:P-2}, we have $P_2(x+1) = P_2(x)$ for any real $x$.
Now suppose $0\le x<1$. Then
% \begin{gather*}
$
P_2(-x)
= P_2(1-x)
= (1-x)^2 - (1-x) + \frac{1}{6}
% = x^2 - x + \frac{1}{6}
= P_2(x).
$
% \end{gather*}
\end{proof}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Index Sets for (Generalized) Eta-Quotients}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{Definition}
\label{def:index-set}
Let
$0<\defineNotation{M}\in\defineNotation[N]{\setN}=\Set{0,1,\ldots}$
be a natural number and
$\Delta=\SetDef{\delta}{\delta\in\setN,0<\divides{\delta}{M}}$ the
divisors of $M$.
%
Furthermore, let $I_1 \subseteq \Delta$,
$I_2 \subseteq \SetDef{(\delta,g)}{\delta\in\Delta,0\le g\le
\delta}$. Then we call $\defineNotation[I]{I} = I_1 \cup I_2$ an
\defineterm{eta index set} of level $M$ for the specification of a
(generalized) eta-quotient.
In the following, if $I$ is an \useterm{eta index set}, then define
$\defineNotation[I-1]{I^{(1)}} := I\cap\setN$ and
$\defineNotation[I-2]{I^{(2)}} := I \cap \setN^2$.
%
We call $I$ a \defineterm{purified eta index set} if for any
$(\delta,g) \in I^{(2)}$ the relation $0<g<\frac{\delta}{2}$ holds.
\end{Definition}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Let $I$ be an \useterm{eta index set}.
%
By Lemma~\ref{thm:eta_delta-g/2}, for any $(\delta, g) \in I^{(2)}$,
there exists $0 \le g' \le \lfloor\frac{\delta}{2}\rfloor$ with
$\eta_{\delta,g}=\eta_{\delta,g'}$.
Furthermore, note that
\begin{gather}
\eta_{\delta,0}(\tau)
= \eta(\delta\tau)^2
\qquad\text{and}\qquad
\eta_{\delta,\frac{\delta}{2}}(\tau)
= \frac{\eta(\frac{\delta}{2}\tau)^2}{\eta(\delta\tau)^2}.
\label{eq:purify-eta}
\end{gather}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Specification of (Generalized) Eta-Quotients}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{Definition}
\label{def:eta-specification}
A function
\begin{gather}
r: \setN \cup \setN^2 \to \setZ
\end{gather}
is called an \defineterm{eta specification} of level $M$ if
$I := \support(r)$ is an \useterm{eta index set} of level $M$.
%
With the notation of Definition~\ref{def:index-set} The function $r$
specifies an eta-quotient in the following sense
\begin{align}
\defineNotation[g-r(tau)]{g_r(\tau)}
&= \prod_{i\in I} \eta_i(\tau)^{r_i}
= \prod_{\delta\in I^{(1)}} \eta(\delta\tau)^{r_\delta}
\prod_{(\delta,g)\in I^{(2)}} \eta_{\delta,g}(\tau)^{r_{\delta,g}}.
\label{eq:g_r(tau)}
\end{align}
We call $r$ a \defineterm{purified eta specification} if $I$ is a
\defineterm{purified eta index set}.
\end{Definition}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
By Lemma~\ref{thm:eta_delta-g/2} and \eqref{eq:purify-eta} any
\useterm{eta specification} $r$ can be turned into a corresponding
\useterm{purified eta specification} $r'$ such that $g_r= g_{r'}$.
%
Thus, in order to specify a generalized eta-quotient, we can assume
(if necessary) that it is given with a \useterm{purified index set}.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{weight and order $\rho$ at 0 and $\infty$}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Let $r$ be an \useterm{eta specification} of level $M$ with
$I=\support(r)$. We define the functions $w$, $\rho_\infty$ and
$\rho_0$ as follows:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{align}
\defineNotation[wgt]{\weight}(r)
&=
\sum_{\delta\in I^{(1)}} r_\delta
+
2 \cdot\sum_{(\delta,g)\in I^{(2)}, \divides{\delta}{g}} r_{\delta,g},
\\
\defineNotation[rhoinfty(r)]{\rho_\infty(r)}
&=
\frac{1}{24} \sum_{\delta\in I^{(1)}} \delta r_\delta
+
\frac{1}{2}
\sum_{(\delta,g)\in I^{(2)}}\delta P_2\Bigl(\frac{g}{\delta}\Bigr)r_{\delta,g},
\label{eq:rhoinfty}
\\
\defineNotation[rhozero(r)]{\rho_0(r)}
&=
\frac{1}{24} \sum_{\delta\in I^{(1)}} \frac{M}{\delta} r_\delta
+
\frac{1}{12} \sum_{(\delta,g)\in I^{(2)}} \frac{M}{\delta} r_{\delta,g}.
\label{eq:rhozero}
\end{align}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
By \eqref{eq:eta-expansion}, \eqref{eq:eta_delta(tau)} and
\eqref{eq:eta_delta-g^[R](tau)}, $\rho_\infty(r)$ is the order of the
eta-quotient $g_r(\tau)$ in terms of $q=e^{2\pi i \tau}$.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{Lemma}\label{thm:purified-rho-computation}
If $r$ is a \useterm{eta specification} and $r'$ its corresponding
\useterm{purified eta specification}, then
\begin{align*}
\weight(r) &= \weight(r'),
\\
\rho_\infty(r) &= \rho_\infty(r'),
\\
\rho_0(r) &= \rho_0(r').
\end{align*}
\end{Lemma}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{AdditionalInformation}
\begin{proof}
From Lemma~\ref{thm:eta_delta-g/2} and \eqref{eq:purify-eta} follows
$\weight(r) = \weight(r')$ immediately.
%
By Lemma~\ref{thm:eta_delta-g/2}, we reduce the case $(\delta,\delta)$
to $(\delta,0)$.
Let $r_{\delta,0} \neq 0$, then for the respective summands from
\eqref{eq:rhoinfty} we have
\begin{gather*}
\frac{1}{24}\delta r_\delta
+
\frac{1}{2} \delta P_2\Bigl(\frac{0}{\delta}\Bigr)r_{\delta,0}
=
\frac{1}{24}\delta r_\delta
+
\frac{1}{2} \delta \frac{1}{6} r_{\delta,0}
=
\frac{1}{24}\delta (r_\delta + 2 r_{\delta,0})
=
\frac{1}{24} \delta r'_\delta.
\end{gather*}
Let $r_{\delta,\frac{\delta}{2}} \neq 0$, then for the respective
summands from \eqref{eq:rhoinfty} we have
\begin{align*}
\frac{1}{24} \frac{\delta}{2} r_{\delta/2}
+
\frac{1}{24} \delta r_{\delta}
+
\frac{1}{2} \delta P_2\Bigl(\frac{1}{2}\Bigr) r_{\delta,\delta/2}
&=
\frac{1}{24} \frac{\delta}{2} r_{\delta/2}
+
\frac{1}{24} \delta r_{\delta}
+
\frac{1}{2} \delta \Bigl(-\frac{1}{12}\Bigr) r_{\delta,\delta/2}
\\
&=
\frac{1}{24} \frac{\delta}{2} r_{\delta/2}
+
\frac{1}{24} \delta r_{\delta}
+
\frac{1}{24} \frac{\delta}{2} 2 r_{\delta,\delta/2}
-
\frac{1}{24} \delta 2 r_{\delta,\delta/2}
\\
&=
\frac{1}{24} \frac{\delta}{2} (r_{\delta/2} + 2 r_{\delta,\delta/2})
+
\frac{1}{24} \delta (r_{\delta} - 2 r_{\delta,\delta/2})
\\
&=
\frac{1}{24} \frac{\delta}{2} r'_{\delta/2}
+
\frac{1}{24} \delta r'_{\delta}.
\end{align*}
That proves $\rho_\infty(r) = \rho_\infty(r')$.
Similar computations show that $\rho_0(r) = \rho_0(r')$.
\end{proof}
\end{AdditionalInformation}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Problem description}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
In the following $\Gamma$ is either $\Gamma_0(N)$ or $\Gamma_1(N)$ for
the $N$ taken from the context.
Let $r$ be an \useterm{eta specification} of level $M$ with
$I=\support(r)$.
%
Furthermore, let $\defineNotation{t} < \defineNotation{m}$ be two
natural numbers.
Define the series $(a(n))_{n\in\setN}$ by
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{align}
\defineNotation[f-tau]{f(\tau)}
&=
\defineNotation[sum-a-n-q-n]{{\protect\sum}_{n=0}^\infty a(n)q^n}
:=
\unityPowerTau{-\rho_\infty(r)} g_r(\tau)
=
\unityPowerTau{-\rho_\infty(r)} \prod_{i\in I} \eta_i(\tau)^{r_i}
\notag
\\
&= \prod_{\delta\in I^{(1)}}
\left(\prod_{n=1}^{\infty}(1-q^{\delta n})\right)^{r_\delta}
\prod_{(\delta,g)\in I^{(2)}}
\left(
\prod_{\substack{n>0\\n\equiv g\ (\mathrm{mod}\ \delta)}} (1-q^n)
\prod_{\substack{n>0\\n\equiv -g\ (\mathrm{mod}\ \delta)}} (1-q^n)
\right)^{r_{\delta,g}}
\label{eq:f(tau)}
\end{align}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Because of Lemma~\ref{thm:eta_delta-g/2} and \eqref{eq:purify-eta}, we
can always find a \useterm{purified eta specification} $r'$ that gives
rise to the same function $f(\tau)$ as $r$.
If $r$ is purified, we can write
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{gather}
f(\tau)
=
\sum_{n=0}^\infty a(n)q^n
=
\prod_{\delta\in I^{(1)}} \eulerFunction{\delta}^{r_\delta}
\prod_{(\delta,g)\in I^{(2)}}
\qPochhammer{q^g, q^{\delta-g}}{q^\delta}^{r_{\delta,g}}.
\end{gather}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Our problem consists in finding $N\in\setN$, a set
$\modularOrbit{} \subset \Set{0,\ldots,m-1}$ with
$t\in\modularOrbit{}$, an \useterm{eta specification} $s$ of level
$N$, $\Gamma$-modular functions $e_1,\ldots,e_\ell$ (with at most a
pole at infinity) and rational numbers $d_1,\ldots,d_\ell$ such that
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{gather}
\underbrace{
g_s(\tau)\,
q^\beta
\prod_{k\in\modularOrbit{}} \sum_{n=0}^\infty a(mn+k) q^n
}_{=:\defineNotation[F-s-r-m-t-tau]{F_{s,r,m,t}(\tau)}}
=
\sum_{i=1}^\ell d_i e_i
\label{eq:Ramanujan-Kolberg-Identity}
\end{gather}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
is a modular function for $\Gamma$ with a pole at most at infinity where
\begin{gather}
\beta = \sum_{k\in\modularOrbit{}} \frac{k + \rho_\infty(r)}{m}.
\label{eq:beta}
\end{gather}
This problem has first been solved algorithmically by Christian-Silviu
Radu in \cite{Radu_RamanujanKolberg_2015} for the case of pure
eta-quotients and the congruence subgroup $\Gamma_0(N)$.
%
An equation of the form \eqref{eq:Ramanujan-Kolberg-Identity} is
called a \defineterm{Ramanujan-Kolberg identity}.
In 2019 Radu's algorithm was also shown to be applicable to generalized
eta-quotients and the group $\Gamma_1(N)$ in
\cite{ChenDuZhao_FindingModularFunctionsRamanujan_2019} by working out
the respective modularity conditions.
%
In the generalized case we have $\modularOrbit{r,m,t}=\Set{t}$.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{The $U_m$ operator}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Let $m$ be a positive natural number.
%
Let $\defineNotation[U-m]{U_m}$ be an operation on functions
$\phi: \setH\to\setC$ so that
\begin{gather}
(U_m\phi)(\tau) := \frac{1}{m}\sum_{\lambda=0}^{m-1}
\phi\left(\frac{\tau+\lambda}{m}\right).
\label{eq:U_m}
\end{gather}
Let $r$ be an \useterm{eta specification} of level $M$ with
$I=\support(r)$.
%
Furthermore, let $t \in \setN$ with $k < m$ and with $g_r(\tau)$ as in
\ref{eq:g_r(tau)} define
\begin{gather}
\defineNotation[f-k(tau)]{f_k(\tau)}
:=\unityPowerTau{-k}f(\tau)
= \unityPowerTau{-(k + \rho_\infty(r))} g_r(\tau),
\label{eq:f_k(tau}
\end{gather}
then
\begin{align}
(U_mf_k)(\tau)
&=
\frac{1}{m} \sum_{\lambda=0}^{m-1}f_k\left(\frac{\tau+\lambda}{m}\right)
\notag
\\
&=
\frac{1}{m} \sum_{\lambda=0}^{m-1}
\unityPower{-\frac{k\tau+k\lambda}{m}}
\sum_{n=0}^\infty a(n) \unityPower{\frac{k\tau+n\lambda}{m}}
\notag
\\
&=
\frac{1}{m}
\sum_{n=0}^\infty
a(n)
\sum_{\lambda=0}^{m-1}
\unityPower{\frac{(n-k)(\tau+\lambda)}{m}}
\notag
\\
&=
\frac{1}{m}
\sum_{n=0}^\infty
a(n)\,
\unityPower{\frac{(n-k)\tau}{m}}
\sum_{\lambda=0}^{m-1}
\unityPower{\frac{(n-k)\lambda}{m}}
\notag
\\
&=
\sum_{n=0}^\infty
\sum_{l=0}^{m-1} a(mn+l)\,
\unityPower{\frac{(mn+l-k)\tau}{m}}
\frac{1}{m}
\sum_{\lambda=0}^{m-1}\unityPower{\frac{(mn+l-k)\lambda}{m}}
\notag
\\
&=
\sum_{n=0}^\infty a(mn+k) q^n
\label{eq:U_m-f_k}
\end{align}
is the generating function for the series
$(a(mn+k))_{n\in\setN}$.
Note that
$\sum_{\lambda=0}^{m-1}\unityPower{\frac{(mn+l-k)\lambda}{m}}$ is
equal to $m$ for $l=k$ and vanishes in all other cases.
Using \eqref{eq:g_r(tau)}, we can also evaluate $(U_mf_k)(\tau)$ in
another way.
%
\begin{align*}
(U_mf_k)(\tau)
&=
\frac{1}{m} \sum_{\lambda=0}^{m-1}f_k\left(\frac{\tau+\lambda}{m}\right)\\
&=
\frac{1}{m} \sum_{\lambda=0}^{m-1}
\unityPower{-\frac{(\tau+\lambda) (k + \rho_\infty(r))}{m}}
g_r\!\left(\frac{\tau+\lambda}{m}\right)
\\
&=
\frac{1}{m}
\unityPowerTau{-\frac{k+\rho_\infty(r)}{m}}
\sum_{\lambda=0}^{m-1}
\unityPower{-\frac{\lambda (k+\rho_\infty(r))}{m}}
\prod_{i\in I} \eta_i\left(\frac{\tau+\lambda}{m}\right)^{r_i}
\end{align*}
Let $\modularOrbit{} \subseteq \Set{1,\ldots,m}$,
$\mu=\sizeOfSet{\modularOrbit{}}$ and define for
$k \in \modularOrbit{}$
\begin{align}
\defineNotation[p-r-m-k-tau]{p_{r,m,k}(\tau)}
&:= \unityPowerTau{\frac{k+\rho_\infty(r)}{m} } (U_mf_k)(\tau)
= \unityPowerTau{\frac{k+\rho_\infty(r)}{m}} \sum_{n=0}^\infty a(mn+k) q^n
\notag
\\
&=
\frac{1}{m} \sum_{\lambda=0}^{m-1}
\unityPower{-\frac{\lambda}{m} (k+\rho_\infty(r))}
g_r\!\left(\frac{\tau+\lambda}{m}\right)
\label{eq:p_r-m-k(tau)}
\end{align}
Furthermore, define
\begin{align}
\defineNotation[P-r-m-t-tau]{P_{r, m, t}(\tau)}
&:= \prod_{k \in \modularOrbit{}} p_{r,m,k}(\tau)
= q^\beta \prod_{k \in \modularOrbit{}} \sum_{n=0}^\infty a(mn+k) q^n.
\label{eq:P_r-m-t(tau)}
\end{align}
where $\beta$ is given through \eqref{eq:beta}.
With this notation the left-hand side of
\eqref{eq:Ramanujan-Kolberg-Identity} turns into
\begin{align}
\label{eq:F_s-r-m-t(tau)}
F_{s,r,m,t}(\tau)
&=
g_s(\tau) \cdot P_{r,m,t}(\tau)
=
g_s(\tau)
\prod_{k\in\modularOrbit{}}
\frac{1}{m} \sum_{\lambda=0}^{m-1}
\unityPower{-\frac{\lambda}{m} (k+\rho_\infty(r))}
g_r\!\left(\frac{\tau+\lambda}{m}\right)
\end{align}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Modularity}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{$\Gamma_0(M)$ modularity}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{Lemma}\cite[Thm. 1.64]{Ono_WebOfModularity_2004}
\label{thm:modular-eta-quotient-gamma0}
Let $r$ be an \useterm{eta specification} of level $M$
with $I := \support(r) \subset \setN$. If the conditions
\begin{align}
\weight(r) &= 0, \label{eq:sum=0}\\
\rho_\infty(r) &\in \setZ, \label{eq:pure-rhoinfinity}\\
\rho_0(r) &\in \setZ, \label{eq:pure-rho0}\\
\sqrt{\prod_{\delta\in I}\delta^{r_\delta}}&\in\setQ\label{eq:productsquare}
\end{align}
are fulfilled, then $g_r(\tau)$ is a modular function for
$\Gamma_0(M)$.
\end{Lemma}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{$\Gamma_1(M)$ modularity}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
According to \cite[Thm.~3]{Robins_GeneralizedDedekindEtaProducts_1994}
a generalized eta-quotient of the form
\begin{gather}
\prod_{\substack{\divides{\delta}{M}\\ 0\le g < \delta}}
\eta_{\delta,g}(\tau)^{a_{\delta,g}}
\qquad
\text{with}
\qquad
\defineNotation[a-delta-g]{a_{\delta,g}}\in
\begin{cases}
\frac{1}{2}\setZ & \text{if $g=0$ or $g=\frac{\delta}{2}$},\\
\setZ & \text{otherwise}.
\end{cases}
\label{eq:generalized-eta-quotient-a}
\end{gather}
is a modular function for $\Gamma_1(M)$ if
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{gather}
\sum_{\divides{\delta}{M}} a_{g,0} = 0\\
\sum_{\substack{\divides{\delta}{M}\\0 \le g \le \frac{\delta}{2}}}
\delta P_2\Bigl(\frac{g}{\delta}\Bigr) a_{\delta,g} \equiv_2 0\\
\sum_{\substack{\divides{\delta}{M}\\0 \le g \le \frac{\delta}{2}}}
\frac{M}{\delta} P_2(0) a_{\delta,g} \equiv_2 0.
\end{gather}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Obviously, for any generalized eta-quotient of the form
\eqref{eq:generalized-eta-quotient-a} we can always find an
\useterm{eta specification} $r$ of level $M$ giving the same function
$g_r(\tau)$ according to \eqref{eq:g_r(tau)}. Then the above
conditions translate to the following Lemma.
\begin{Lemma}
\label{thm:modular-eta-quotient-gamma1}
Let $r$ be an \useterm{eta specification} of level $M$ If the
conditions
\begin{align}
\weight(r) &= 0, \label{eq:generalized-weight}\\
\rho_\infty(r) &\in \setZ, \label{eq:rhoinfinity}\\
\rho_0(r) &\in \setZ. \label{eq:rho0}
\end{align}
are fulfilled, then $g_r(\tau)$ is a modular function for
$\Gamma_1(M)$.
\end{Lemma}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{AdditionalInformation}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Order at cusps}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Order at cusps, case $\Gamma_0(M)$}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{Lemma}
\cite[Proposition~3.2.8]{Ligozat_CourbesModulaires_1975}
\label{thm:eta-order-0}
Let $0<M\in\setN$ and $r$ be an \useterm{eta specification} of level
$M$ of a $\Gamma_0(M)$-modular function $g_r(\tau)$ with
$\support(r)\subset\setN$.
%
Let
$\gamma = \begin{smallpmatrix} a & b\\ c & d\\ \end{smallpmatrix}
\in \SL2Z$.
%
Then the order of the expansion of $g_r(\gamma\tau)$ in the
uniformizing variable $q^{1/w_\gamma}$ where $w_\gamma$ is defined by
\eqref{eq:width0} is given by
\begin{gather}
\frac{1}{24}\sum_{\delta\in\support(r)} \frac{M}{\gcd(M, c^2)}
\frac{\gcd(c,\delta)^2}{\delta} \, r_\delta,
\label{eq:order-gamma0}
\end{gather}
\end{Lemma}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Order at cusps, case $\Gamma_1(M)$}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Similar to the matrix by Ligozat, we can build a matrix to determine
the order of a (modular for $\Gamma_1(M)$) generalized eta-quotient
at all cusps of $\Gamma_1(M)$.
%
Let us state a result of Robins about the order of an eta-quotient at
a cusp of $\Gamma_1(M)$. See also
\cite[Lemma~2.6]{ChenDuZhao_FindingModularFunctionsRamanujan_2019}.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{Lemma}
\label{thm:matrixEtaOrderRobins}
\cite[Thm~4]{Robins_GeneralizedDedekindEtaProducts_1994}
%
Let $0<M\in\setN$ and $r$ be an \useterm{eta specification} of level
$M$ of a $\Gamma_1(M)$-modular function $g_r(\tau)$ with
$I = \support(r)$.
%
Let
$\gamma=\left(\begin{smallmatrix}a&b\\c&d\end{smallmatrix}\right)\in\SL2Z$.
Let
$\lambda,\mu,\epsilon$ with $\divides{\epsilon}{M}$ and
\begin{gather}
\gcd(\lambda,M)=\gcd(\lambda,\mu)=\gcd(\mu,M)=1
\end{gather}
be such that
$\frac{\lambda}{\mu\epsilon}$ is a cusp that is
$\Gamma_1(M)$-equivalent to the cusp $\frac{a}{c}$ of $\Gamma_1(M)$.
%
Then the order of the expansion of $g_r(\gamma\tau)$ in the
uniformizing variable $q^{\epsilon/M}$ is