Structure and Properties of The Triangular Numbers Modulo M: July 2019
Structure and Properties of The Triangular Numbers Modulo M: July 2019
net/publication/334389220
CITATIONS READS
0 317
5 authors, including:
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Darin J. Ulness on 11 July 2019.
Abstract
The structure and properties of the triangular numbers modulo m are
discussed. Several theorems regarding the triangular numbers modulo m
are proven. In addition, use is made of modern computing power to illus-
trate some unproven conjectures, which might be useful in applied settings
such as statistical mechanics or computer science. A brief discussion of
the self-similarity and scaling characteristics of the triangular numbers
modulo m is given. Application to harmonic analysis and, in particular,
to lacunary trigonometric systems is discussed.
1 Introduction
The set of triangular numbers (also called triangle numbers) has been the subject
of a long history of study [3, 5], of which major insight has been provided by
Gauss himself [6]. In spite of this, it is the observation of the current authors that
there is a dearth of literature focused on the triangular numbers mod m ∈ N+
[7]. The purpose of this work is to provide that focus. In addition to presenting
some theorems regarding the triangular numbers modulo m, use is made of
modern computing power to illustrate some unproven conjectures, which might
be useful in applied setting such as statistical mechanics or computer science.
Then a brief discussion of the self-similarity and scaling characteristics of the
triangular numbers modulo m is given. Finally, application to harmonic analysis
and, in particular, to lacunary trigonometric systems is discussed.
2 Structure
The most striking and important structural feature of the triangular numbers
mod m is their cyclic nature which holds for any m. The structure of the
1
triangular numbers modulo m is discussed in this section.
4 = 2m2 + 2mj + m.
(m + j)(m + j + 1) (m − j − 1)(m − j)
4= − .
2 2
Expansion and simplification leads to
4 = 2m + 2mj.
2
Theorem 2.2. For odd values of m, the triangular numbers modulo m form an
m-cycle.
Proof. As in the previous theorem define a difference: 4 ≡ T (m + j) − T (j).
Now one can take advantage of the fact that 2 has an inverse when m is odd.
As such one can consider
24 = m2 + 2mj + m.
The 2m cyclic nature of the triangular numbers mod m form a natural set
of equivalence classes (indicated by underline). A given equivalence class is
denoted as τk = {T (k + 2mj) mod m|j ∈ (N )}.
As a couple of examples, T10 = {0, 1, 3, 6, 0, 5, 1, 8, 6, 5, 5, 6, 8, 1, 5, 0, 6, 3, 1, 0}
and T5 = {0, 1, 3, 1, 0, 0, 1, 3, 1, 0, }.
Definition 2.2. The 2m member set of
equivalence
classes for the triangular
numbers modulo m is denoted by Tm = τk .
One notes Tm is an ordered set. Further, distinct τk may have the same value
as is easily seen in the T10 and T5 examples above. The collection of distinct
values is defined as follows.
Definition 2.3. The (unordered) set of unique values of τk is denoted as T̂m
(the underline will be dropped from the specific values).
So, T̂10 = {0, 1, 3, 5, 6, 8} and T̂5 = {0, 1, 3}.
Considering again the ordered set Tm , we define multiplicity as follows.
Definition 2.4. Multiplicity. The multiplicity, λj , is the number of times j
appears in Tm .
3
So, for T̂10 , λ1 = 4, λ3 = 2, etc.
Theorem 2.4. If m is odd, then Tm is further symmetric about m0 = m−1
2 .
That is, T (m0 − j) = T (m0 + j) where 0 < j < m0 ∈ N+ .
Proof. Define 4 ≡ T (m0 + j) − T (m0 − j). Then, by explicitly writing the
triangular summation out and subtraction like terms gives
4 = (m0 + j) + (m0 + (j − 1)) + . . . + (m0 + 1) + m0 + (m0 − 1) + . . . + (m0 − (j − 1)).
Match the terms on the right hand side as
m0 + j + (m0 + (j − 1)) + . . . + (m0 + 1)
+ (m0 − (j − 1)) + . . . + (m0 − 1) + m0
This gives
4 = m0 + j + 2(j − 1)m0 + m0
= 2jm0 + j.
Substituting in for m0 gives
4 = j(m − 1) + j = jm.
Modulo m gives 4 = 0.
Lemma 2.5. The triangle numbers modulo m are the values of a ∈ Zm that give
solutions to either of the following two congruence relations: i) n(2n + 1) = a
and ii) n(2n − 1) = a.
Proof. The k th triangle number is given by k(k+1)
2 . Note that k(k + 1) is always
even and breaks into two cases. First, when k is even, define n = k2 thus T (2n) =
n(2n + 1). Second, when k is odd, define n = k+1 2 thus T (2n − 1) = n(2n − 1).
T (k) mod m then becomes n(2n + 1) mod m or n(2n − 1) mod m. Thus
n(2n+1) = a mod m and n(2n−1) = a mod m define the congruence relations
in Zm which gives the allowed values of a ∈ Zm .
Theorem 2.6. The set of unique triangle numbers modulo m ∈ N+ , T̂m , are
all a ∈ Zm such that 1 + 8a mod m = n2 mod n for some n ∈ Zm . That is,
all a for which 1 + 8a mod m is a perfect square under the modulo.
Proof. One notes that from Lemma 2.5 the members of Tm will be all a such
that either n(2n + 1) = a or n(2n − 1) = a yield solutions. It turns out one can
more succinctly consider n(2n ± 1) = a and deal with both congruence relations
at once.
Considering the solutions to the quadratic congruence 2n2 ± n − a = 0, one
can write p
4n = ∓1 ± (1 + 8a).
p
The important part of this relation is (1 + 8a). The set of solutions to the
above congruence is given precisely by those values of a in which 1 + 8a is a
perfect square under modulo m. This completes the proof.
4
At first glance, it seems as though the problem of finding the allowed a might
well degenerate into a number of “solvable” cases involving primes, powers of
primes, etc. as is often the case when considering quadratic congruences. This
is not the case here, however, because one is not looking for a solution to the
quadratic congruence per se, but only looking to determine if a particular a
yields a solution. These values will be precisely the set listed in Theorem 2.6.
As an illustrative example of the use of Theorem 2.6, consider the case of
modulo 10. Here the set of perfect squares are {0, 1, 4, 5, 6, 9} while the set of or-
dered pairs (a, 1 + 8a mod 10) = {(0, 1), (1, 9), (2, 7), (3, 5), (4, 3), (5, 1), (6, 9),
(7, 7), (8, 5), (9, 3)}. The intersection of the perfect square set and the set
of 1 + 8a values is {1, 5, 9}. These values correspond to the set of a values
{0, 1, 3, 5, 6, 8}. Thus T̂m = {0, 1, 3, 5, 6, 8} (note the entries are not underlined
because the ordered set is not determined by the theorem). These are indeed
the values that appear for the triangular numbers modulo 10.
It is also noteworthy that Theorem 2.6 does not have a great deal of power
in the applied setting because it does not give a specific mechanism for finding
which a make up the τk , nor does it give the multiplicity of a. That is, T̂m loses
information about the ordered set Tm
Theorem 2.7. If m is even, there is an equal number of even and odd numbers
in the first m members of the 2m-cycle of theorem 2.1.
Proof. Let m = 2n and consider the size 2n set
(2n − j − 1)(2n − j)
A= mod 2
2
The first two terms vanish under the mod. Considering j(j+1) 2 mod 2 and
Theorem 2.1 yields the 4-cycle {0, 1, 1, 0, repeat}. Regardless of whether n is 1
or 0, there is the same number of even and odd entries in set A.
5
N+ such that a mod 2j+1 = 0 and a mod c = −1 and that a is uniquely deter-
mined modulo 2j+1 c. Since 2j+1 c = 2m, 0 < a ≤ 2m−1. Now, a mod 2j+1 = 0
and a + 1 mod c = 0. Thus, a(a + 1) mod 2j+1 c = a(a + 1) mod 2m. This
implies a(a+1)
2 mod m = 0. This leads to two cases: i) 0 < a ≤ m−1, then T (a)
mod m = 0 directly. ii) m < a ≤ 2m − 1. Here one can define b = 2m − 1 − a
so that 0 < b ≤ m − 1. Then
b(b + 1)
T (b) mod m = mod m
2
(2m − 1 − a)(2m − a)
= mod m
2
4m2 − 2m − 4am + a + a2
= mod m
2
2 a(a + 1)
= 2m − m − 2am + mod m = 0.
2
b(b + 1) a(a + 1)
4= −
2 2
(2m − 1 − a)(2m − a) − a(a + 1)
=
2
4m2 − 2m − 4ma + a + a2 − a2 − a
=
2
2
= 2m − m − 2ma.
6
Theorem 2.8 there exists an a such that 0 < a ≤ m − 1 and T (a) mod m = 0.
But 0 is also the first value. This poses a contradiction and completes the
proof.
Corollary 2.10. If m 6= 2n then at least one value has a multiplicity greater
than one (appears more than once). The converse is also true.
Proof. Follows immediately from the pigeonhole theorem and the converse fol-
lows from Theorem 2.9.
Proof. Begin with 4 ≡ T (b) − T (a) and since m is odd, we can consider 24 =
2T (b) − 2T (a). Writing out the triangle numbers gives,
24 = b2 + b − a2 − a
24 = b2 − a2 + b − a.
24 = (b + a)(b − a + 1).
3 Properties
Several properties of the triangular numbers modulo m are collected and dis-
cussed in this section.
7
Proof. As has been done often prior, define 4 ≡ T (k + m) + T (k + m + 1) −
T (k) + T (k + 1). Writing everything out and simplifying gives
2T (b) = b(b + 1)
leads to
2T (b) = (m − 1 − a)(m − a)
Expanding and simplifying gives
which becomes 2T (b) = 2T (a) under modulo m. Since 2 has an inverse the
proof is completed.
Theorem 3.3. If m = q 2 where q is odd, then T q−1 mod m = T q−1
2 2 + jq
mod m, where j ≥ 0 ∈ Z.
Proof. Noting that m must be odd and using the fact that 2 has an inverse, the
direct route is taken.
q−1 q−1 q−1
2T + jq = + jq + jq + 1
2 2 2
2
q−1 q−1 q−1
= + + 2jq + jq + (jq)2
2 2 2
2
q−1 q−1
= + + jq(q − 1) + jq + q 2 j 2
2 2
(3)
8
Proof. The direct route is taken.
(m − 1)m
T (m − 1) mod m = mod m
2
m2 −m
= mod m + mod m
2 2
m −m
=m mod m + mod m
2 2
m
=0+
2
0 = T (q − j) mod m
(q − j)(q − j + 1)
= mod m
2
q 2 + q − 2qj + j 2 − j
= mod m
2
q(q + 1) j(j − 1)
= mod m + qj mod m + mod m
2 2
For this relation to hold for any q, either j = 0 or j = 1, because the last term
must always vanish. These give the two cases T (q) mod m = 0 and T (q − 1)
mod m = 0 respectively.
Consider the first case. This implies
(q)(q + 1)
= nm.
2
Since m = 2q, q(q + 1) = 4nq. Solving for q gives q = 4n − 1, which proves case
a).
Consider the second case. This implies
(q − 1)q
= nm.
2
Since m = 2q, (q − 1)q = 4nq. Solving for q gives q = 4n + 1, which proves case
b).
Corollary 3.6. In Theorem 3.5 for case a) T (q − 1) mod m = q and T (q + 1)
mod m = q + 1 and for case b) T (q − 2) mod m = q + 1 and T (q) mod m = q.
9
Proof. Case a). 0 = T (q) mod m = (T (q − 1) + q) mod m. So T (q − 1)
mod m = q. And 0 = T (q) mod m = (T (q + 1) − (q + 1)) mod m. So T (q + 1)
mod m = q + 1.
Case b). 0 = T (q − 1) mod m = (T (q) − q) mod m. So T (q) mod m = q.
And, 0 = T (q − 1) mod m = (T (q − 2) + (q − 1)) mod m. So T (q − 2)
mod m = q + 1.
One question that largely remains open is that of the size of Tˆm compared
to the size of Zm . This defines saturation.
|Tˆm |
Definition 3.1. Saturation. The saturation, sm = |Zm | .
10
can now replace each integer in the table by is corresponding value modulo
m. Then the rightmost entries are the triangle numbers modulo m. The three
tables below are for m = 4 (left), m = 5 (middle), and m = 6 (right).
1 1 1
2 3 2 3 2 3
0 1 2 4 0 1 4 5 0
3 0 1 2 2 3 4 0 1 2 3 4
3 0 1 2 3 1 2 3 4 0 5 0 1 2 3
0 1 2 3 0 1 1 2 3 4 0 1 4 5 0 1 2 3
2 3 0 1 2 3 0 2 3 4 0 1 2 3 4 5 0 1 2 3 4
1 2 3 0 1 2 3 0 4 0 1 2 3 4 0 1 5 0 1 2 3 4 5 0
1 2 3 0 1 2 3 0 1 2 3 4 0 1 2 3 4 0 1 2 3 4 5 0 1 2 3
2 3 0 1 2 3 0 1 2 3 1 2 3 4 0 1 2 3 4 0 4 5 0 1 2 3 4 5 0 1
0 1 2 3 0 1 2 3 0 1 2 1 2 3 4 0 1 2 3 4 0 1 2 3 4 5 0 1 2 3 4 5 0
3 0 1 2 3 0 1 2 3 0 1 2 2 3 4 0 1 2 3 4 0 1 2 3 1 2 3 4 5 0 1 2 3 4 5 0
3 0 1 2 3 0 1 2 3 0 1 2 3 4 0 1 2 3 4 0 1 2 3 4 0 1 1 2 3 4 5 0 1 2 3 4 5 0 1
0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 4 0 1 2 3 4 0 1 2 3 4 0 2 3 4 5 0 1 2 3 4 5 0 1 2 3
2 3 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 4 0 1 2 3 4 0 1 2 3 4 0 4 5 0 1 2 3 4 5 0 1 2 3 4 5 0
1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 4 0 1 2 3 4 0 1 2 3 4 0 1 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4
The vertical line in these tables demarks the first 2m cycle. The self-
similarity of the triangular numbers modulo m is nicely exposed in this ar-
rangement. One quickly notices that if the columns to the left of the vertical
line are deleted the resulting table is identical with the original.
Figure 1 is a visual representation of the scaling nature of the triangular
numbers modulo m. The graph shows the (grayscale normalized) T (k) mod m
(horizontal dimension) versus m (vertical dimension). The dark band running
from the origin to the point (1000, 500) is the manifestation of the terminal zeros
in each cycle. The alternating dark/light band running along the 45 degree line
is a manifestation of the odd (zero) and even ( m 2 ) value at the mid-point of the
cycle.
The repeated pattern appears in the upper right portion of the graph. One
sees a scaling of the visual features seen in the lower left portion of the graph.
Associated
N with such a function is the sequence of partial summations, F ≡
f , where N ∈ N and
N
X
f (N ) (z) = z T (k) . (9)
k=0
iπ
The special cases of z = e gives rise to an interesting family of lacunaryn
11
Figure 1: Visual representation of the structure of the triangular numbers mod-
ulo m for 0 ≤ m < 1000. The vertical axis is the m value and the horizontal
axis is the value of T (k) mod m. The scaling structure is seen quite clearly as
the eye sweeps from the lower left corner to the upper right corner of the plot.
Gray represents low values and white represents high values (values normalized
by 1/m to show better contrast).
where the summation is recognized at the second Jacobi theta function [1],
1 iπq iπq
fn = e 8n ϑ2 0, e 2n . (11)
2
While the above relation is helpful in putting these triangular lacunary
trigonometric systems in a larger mathematical context, it is as interesting to
study the sequence of partial summations associated with the lacunary function.
The N th member of the associated finite summation is
N
iπ X iπT (k)
fn(N ) e n = e n . (12)
k=0
The 2π periodic nature of eix gives rise to T (k) mod 2n. Thus the machinery
of the above theorems can be brought to bear on these functions.
12
A consequence of Theorem 2.1 suggests the sequence of finite sums of a
given n are 4n-cycles (bounded but not convergent). This suggests that a useful
representation of fn is a 4n member ordered set that consists of one cycle.
Definition 5.1. 4n-cycle representation. The 4n-cycle representation of fn is
iπT (k)
denoted by Fn . The auxiliary set of individual terms, e n , is denoted by En .
As a first example, consider f1 :
N
(N ) X
f1 eiπ = eiπT (k) . (13)
k=0
6 Conclusion
This work focused on the structure and properties of the triangular numbers
modulo m. The most important aspect of the structure of these numbers is
their cyclic nature. It was proven that the triangular numbers modulo m form
a 2m-cycle for any m. Additional structural features and properties of this
system were presented and discussed. The triangular numbers modulo m have
13
self-similarity and scaling features which were briefly discussed as well. Finally,
an application to lacunary trigonometric systems was presented. It is hoped
that this work serves to collect some of the characteristics of the important case
of triangular numbers modulo m.
Acknowledgements
The authors acknowledge Douglas R. Anderson for valuable discussion. This
work was supported by the Concordia College Chemistry Undergraduate Re-
search Endowment and by the Concordia College Office of Undergraduate Re-
search.
References
[1] M. Abramowitz, I.A. Stegun, Handbook of mathematical functions New
York, Dover Publications, 1972.
[2] G. H. Hardy, Divergent series New York, AMS Chelsea Publishing, 1991.
[3] V. E. Hoggatt, Jr., M. Bicknell “Triangular Numbers” Fibonacci Quarterly,
12 (1974): 221–230.
[4] Y. Katznelson An introduction to harmonic analysis New York, Dover Pub-
lications, 1976.
[5] K. Ono, S. Robbins, P. T, Wahl “On the representation of integers as sums
of triangular numbers” Aequationes mathematicae, 50 (1995): 73–94.
[6] M. R. Schroeder Number theory in science and communication Berlin,
Springer-Verlag, 1984.
[7] Z-W. Sun “On sums of primes and triangular numbers” J. Combinatorics
and Number Theory, 1 (2009) 65–76.
[8] D. H. Lehmer “Incomplete Gauss sums” Mathematika, 23 (1976) 125–135.
14