1. Introduction
In 1937 the German mathematician Lothar Collatz considered, for the set of positive integers
, the function
defined by
Collatz conjectured that, for any starting point
, the sequence obtained by successive applications of the function
would eventually arrive at 1 (so that the cycle 4, 2,1 is repeated indefinitely).
Numerical computation was used to prove that all numbers equal to or less than 2.95147⋅1020 satisfy the Collatz conjecture; see [1]. The limits of the orbits have been studied in detail; see [2] [3].
A reduced conjecture, equivalent to the Collatz conjecture, has been proposed; see [4].
Finally, empirical-heuristic approaches to prove the conjecture have also been carried out using appropriate algorithms; see [5] and [6].
For a historical view of the study of the Collatz conjecture; see [7] and [8].
This approach to the Collatz conjecture is based on mathematics from the early nineteenth century. More specifically, we use the “number congruences in general” that were discussed by Carl F. Gauss already in 1798 and published in 1801, in chapter 1 of his Disquisitiones Arithmeticae [9].
The paper is organized as follows. In Section 2 we use residue classes modulo 6 to study the iterations of
. Using these tools, in Section 3 we prove the Collatz conjecture.
Notation
1)
: the set of integers.
2)
: the set of natural numbers.
3)
: the set
including cero.
4)
, and also.
5)
.
2. Trajectories, Transitions, Loops and Modular Arithmetic
The problem in proving Collatz’ conjecture is that the number of trajectories is equal to the cardinality of
, which is infinite,
.
To analyze and solve the problem without losing generality and completeness, we will use the congruences of natural numbers, modulo 6.
In this section, let’s see the basic elements, trajectory, transition, and loop, as well as the concept and properties of the congruences that we will use in the proof.
For
, the Trajectory of
is the sequence obtained by successively applying the function
to
. We will denote it by
. Hence,
Then,
satisfies the Collatz conjecture whenever
.
As an example of a trajectory, here is the trajectory that begins with number 72.
The process is simple:
72 is even, so we divide by 2 to get 36; 36 is even, so we divide by 2 to get 18; 18 is even, so we divide by 2 to get 9; 9 is odd, so we multiply by 3 and add 1 to get 28; 28 is even, so we divide by 2 to get 14; 14 is even, then we divide by 2 to get 7; 7 is odd, then we multiply by 3 and add 1 to get 22, and so on.
As we can see, the trajectory is a sequence of numbers, apparently without any recognizable pattern, except that each number is followed by another, which is always the same, since the Collatz function is linear and that, by the definition of the function, every odd number is always followed by an even number.
However, if we use congruences of natural numbers, the view of the structure of the trajectory changes completely. Patterns appear, which will allow us to tackle and complete the proof of the conjecture.
So, we will now discuss congruences of natural numbers modulo 6, the concept and the properties that are relevant for the proof.
Remark 1. Congruences of natural numbers modulo 6:
1) General definition of congruences, modulo
:
is congruent to
, modulo
, (
), if
, with
.
2) The choice of
meets the following three criteria:
a) Keep odd and even numbers in separate sets, as the definition of the conjecture does (
does not).
b) Contain, as representatives of the residue classes, the numbers 4, 2, and 1, which form the final loop of the conjecture.
c) Facilitate the analysis necessary to find a set such that all trajectories contain at least one number belonging to that set. As we will see later, this will be one of the key points in proving the conjecture.
3) In the following points, we will use module 6. Thus, if we rewrite,
as
, with
, we can restate the congruence of natural numbers modulo
as follows:
is congruent to
, modulo 6, (
), if
is the remainder when
is divided by 6.
4) An equality relation between remainders satisfies the reflexive, symmetric, and transitive properties, so, by definition, it is an equivalence relation.
5) The remainders of dividing any natural number by 6 are
. These numbers will be the representatives of the equivalence classes, also called residue classes. See notation 4.
6) The residue classes are well defined by the arithmetic progressions of difference 6:
, with
. See notation 5.
7) Since, this is an equivalence relation, the 6 residue classes form a partition of
which is exhaustive, i.e. every
belongs to one of the classes. In other words, every natural number has a remainder when divided by 6, so, every natural number belongs to one of the residue classes.
8) The general terms of these progressions, whatever the value of
and
, are natural numbers and, therefore, the Collatz function can be applied. In this sense, we can say that this function is applicable to residue classes:
. This allows us to define the transition between residue classes and describe a trajectory as a series of linked transitions.
A Transition, denoted by,
corresponds to the Collatz Function, which maps the residue class
into the residue class
, that is, if
then
.
The evolution of the trajectory,
from the example above, as a sequence of transitions between residue classes, completely changes the view of the structure, since:
Dividing 72 by 6 we get remainder 0, so dividing 36 by 6 we get remainder 0, so dividing 18 by 6 we get remainder 0, so dividing 9 by 6 we get remainder 3, so dividing 28 by 6 we get remainder 4, so dividing 14 by 6 we get remainder 2, so dividing 7 by 6 we get remainder 1, so dividing 22 by 6 we get remainder 4, so dividing 11 by 6 we get remainder 5, so dividing 34 by 6 we get remainder 4, so dividing 17 by 6 we get remainder 5, so dividing 52 by 6 we get remainder 4, and so on.
Then,
Now, we can see the following patterns:
a) The transitions of the even classes are:
or
;
or
and
or
.
b) The transitions of the odd classes are:
;
and
.
In Section 3, we will generalize these results to all possible trajectories, and we will see that, in any trajectory, there are only a maximum of 9 types of transitions, which we have just seen in
. For this reason, it is important that we work with congruences, Module 6, since:
1) We can draw a directed graph of these transitions, and
2) We reduce the study of infinite trajectories to a continuous movement in that graph.
3) Furthermore, it is shown that all trajectories, regardless of where they start, eventually reach residue class 4.
A Loop, is a concatenation of transitions, which ends when the initial residue class reappears in the concatenation.
The directed graph in Section 3 shows four loops:
Applying of proof by contradiction to loops
and
, and the principle of mathematical induction to loop
; we will complete the proof.
3. Proof of the Collatz Conjecture
Proposition 1. Let be
, and let
be the trajectory starting from
, if
satisfies the conjecture, then so does
.
Proof. By the definition of trajectory, if
,
such that
and, from
, it follows that
and
and
and so on.
Then, from
,
and
are equal. Thus, if
satisfies the conjecture, then
and also
. Therefore
also satisfies the conjecture. □
Remark 2. According to this proposition 1 the steps to prove the conjecture are as follows:
1) Find a set
, well defined, such that all
contain some number
.
2) Prove that every
, with
, satisfies the Collatz conjecture.
If we get these points, proposition 1 will complete the proof of the conjecture.
Proposition 2. All trajectories
contain numbers
belonging to the residue class
, independent of the starting number, since the following holds.
1)
.
2)
.
3)
.
4)
.
5)
.
6)
.
Proof. According to notation 4, the residue classes, modulo 6, are as follows:
.
Now we calculate the transition of each residue class by applying the Colaltz function to the corresponding general terms, see notation 5.
1) We have
. Then, there are two alternatives:
a)
is even, then
and so,
.
b)
is odd, then
and so,
.
2) We have
.
3) We have
. Then, there are two alternatives:
a)
is even, then
and so,
.
b)
is odd, then
and so
.
4) We have
.
5) We have
Then, there are two alternatives:
a)
is even, then
and so,
.
b)
is odd, then
and so,
.
6) We have
.
These results can be plotted on an oriented graph.
Note that, the loop
is finite, since every
can be factored as
and is not repeated after
repetitions.
So, all trajectories
contain numbers
belonging to the residue class
, independent of the starting number. □
In the following propositions 3 and 4 we will answer remark 2 (ii).
The oriented graph of proposition 2 also shows that, all
, where
, always start with one of the following sequences of terms,
either
or
or
corresponding to the loops,
either
or
or
.
Proposition 3. A trajectory
, where
, starting with loops either
or
satisfies the Collatz conjecture.
Proof. Suppose, by way of contradiction, that
is the smallest term, belonging to
, that starts a trajectory,
, that does not satisfy the Collatz conjecture and, moreover, begins with the loop
. That is, the sequence of terms
and
.
Note that under this assumption no term in
satisfies the Collatz conjecture. But,
However, this contradicts the assumption that
is the smallest term that starts a trajectory
, which does not satisfy the Collatz conjecture. Therefore,
satisfies the Collatz Conjecture.
Consider a similar situation,
does not satisfy the Collatz conjecture but, now, starts with the loop
. That is, it starts with the sequence of terms
and
.
Then,
This also contradicts the assumption of
is the smallest term that starts a trajectory
, which does not satisfy the Collatz conjecture. Therefore,
satisfies the Collatz Conjecture. □
Corollary 1. A trajectory containing terms from the residue class
satisfies the Collatz conjecture.
Proof. Numbers in the residue class
are necessarily and exclusively part of the loops either
or
, and any trajectory which contains any of these loops and, thus numbers of class
, satisfies the Collatz conjecture by Proposition 3. □
We now consider
, where
, stating with the loop
.
Proposition 4. A trajectory
, where
, starting with the loop
cannot repeat it an infinite number of times in a row and, therefore, it satisfies the Conjecture.
Proof. Consider a trajectory of the form
, for
and
, for all
.
Then, we take the first three elements of the trajectory
for
.
The second three elements of the trajectory
for
;
.
The third three elements of the trajectory
for
;
.
In the general case, we have
for
and
.
Since,
.
The induction is completed by applying the Collatz function to
to compute
, thus we get the following result, which corresponds to the general formula:
for
and
.
These above computations establish that, if
, then there is no possible choice for
. So,
.
Anyway,
is a strictly decreasing sequence of odd natural numbers with a minimum at 1, therefore, if
, then it is a finite sequence and loop
stops.
When the loop stops, instead of repeating the class
, an element of the class
appears and, by Corollary 1,
satisfies the Conjecture. □
Theorem 1. The Collatz conjecture is true.
Proof. Let
and consider
.
Proposition 1 shows that if
and
satisfies the conjecture so does
.
Proposition 2 shows that, all trajectories
contain numbers
.
Proposition 3 shows that,
, starting with either loop
or
satisfies the Collatz conjecture. Then
also satisfies it as well.
Proposition 4 shows that a trajectory
, starting with loop
, cannot repeat it an infinite number of times in a row and satisfies the Conjecture.
To summarize: By Propositions 3 and 4 all trajectories
, beginning with numbers
satisfy the Collatz conjecture and Propositions 2 and 1 extend this result to all trajectories
, then the Collatz conjecture is true. □
Acknowledgements
First, I thank God. He has given me a family that always supports my little occurrences like this paper. My wife, Marisa; my son Emilio, who has reviewed this article, and my daughter Pilar; their respective spouses, Michelle and Carlos; my grandson Gabriel, Carlos, Pablo and Pilar.
A very special thank you to Ramón Carbó-Dorca, Institute of Computational Chemistry and Catalysis, Universitat de Girona, Girona, Spain and Ronin Institute for Independent Research/Sacramento, California, USA, for their reviews and valuable comments on this paper.