1. Introduction
The Collatz conjecture is one of the best-known unsolved problems in sequences and series of number theory. It states:
“For any positive integer n, if a sequence is defined by recurrence, so that, if the previous term is even then the next term is obtained by dividing by 2 the previous term, and if it is odd it is obtained by multiplying by 3 the previous term and adding 1, this sequence always reaches the number 1, and therefore, its last terms will always be the cycle 4, 2, 1.”.
This conjecture is called the Collatz Conjecture because it was stated by Lothar Collatz in 1937 [
1]. However, it is also known by other names such as the 3
n + 1 conjecture, the Ulam conjecture, Kakutani’s problem, the Thwaites conjecture, Hasse’s algorithm, the Syracuse problem [
2], the hailstone sequence or hailstone numbers, because the values ascend or descend multiple times [
3], or the wondrous numbers [
4].
This conjecture has not been proven; however, many mathematicians have studied it and achieved important results, see [
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18]. Most of them have argued that the conjecture is true, as a result of the experimental evidence and heuristic arguments [
12].
In this paper, we demonstrate the Collatz conjecture using the mathematical complete induction method. We show that this conjecture is satisfied for the first values of natural numbers. From this analysis, we can deduce a formula for the general term of Collatz sequence for any odd natural number n after several iterations, and this formula is used in one case that we analyze using the mathematical complete induction method in the process of demonstrating the conjecture.
The paper is organized as follows: In
Section 2, we show that the conjecture is satisfied for the first values of natural numbers, and we deduce a formula for the general term of the Collatz sequence for any odd natural number
n after several iterations. In
Section 3, we demonstrate the Collatz conjecture using the mathematical complete induction method. Finally, we discuss our conclusions in
Section 4.
2. Sequences for the First Natural Numbers and Formula for the General Term of Collatz Sequence for Any Odd Natural Number n
Formally, each term of the sequence of numbers is equivalent to applying the following function to
n, and each term of the sequence:
Therefore, given any natural number, we can consider its orbit; that is, the successive images when iterating the function, in the following way.
The conjecture says that we will always reach 1 (and therefore cycle 4, 2, 1) when starting with any natural number.
We will now present what happens with the first natural numbers.
Therefore, for the first value of n, we observe that the conjecture is satisfied. The conjecture is also satisfied for numerous other numbers greater than 3, and for numbers that are a power of 2, we will also always reach 1, dividing successively by 2.
Given this, at a certain point in the process of demonstration using the mathematical complete induction method, we will need a formula that could represent the general term of the Collatz sequence for any odd natural number n after several iterations, and we examine how this formula could be below.
If
n is an odd natural number, then using the definition of
f(
n), the first iteration would be:
Since 3
n + 1 is always an even number, the next iteration would be:
The next iteration will depend on whether the previously obtained result is even or odd, and since it is possible to obtain an even number in the following or next iterations, let us assume that an even number is obtained in the following
r1 − 1 iteration until we again obtain an odd number (
r1 ≥ 1). Therefore, the result obtained after
r1 − 1 iteration would be:
Now, if
is an odd number, the next iteration would be:
Since
is an even number, the next iteration would be:
Moreover, for the same reason as before, we will assume that we obtain an even number in the next
r2 − 1 iteration until we obtain again an odd number (
r2 ≥ 1). Therefore, the result would be:
Following the same reasoning, this process will continue, and after several iterations, for example,
r1 +
r2 +
… +
rk +
k iterations, we would find that the term
xr1+r2+…+rk+k of the sequence would be:
This formula will be used in the next section when we analyze a specific case using the mathematical complete induction method.
3. Proof of the Collatz Conjecture Using Mathematical Complete Induction
We need to prove that, for all n ∈ N, the obtained sequence reaches 1.
In the previous section, we saw that this holds true for values of n from 1 to 3. Moreover, it is also proven to be true for values higher than n = 3, and it is found to also be true, for example, for all n = 2s, s ∈ N, because we always reach 1 when dividing successively by 2.
To apply the mathematical complete induction method, we will assume that, for a certain m ∈ N that is sufficiently high in value and for any other natural number less than m, we can reach the number 1 with successive iterations. Hence, if we can prove that it is true for m + 1, we can conclude that it is true for all n ∈ N. Therefore, in our induction hypothesis, we assume that it is true for a sufficiently large m ∈ N value and any other natural number less than m.
We explore below if this is true also for m + 1. Note that m + 1 can be an odd or even number, depending on whether m is even or odd, respectively. Hence, we will analyze both cases:
If
m + 1 is an even number, it is because
m is an odd number; that is,
m = 2
t + 1 for
t ∈ N. Hence,
m + 1 = 2
t + 2, and the first iteration applying the definition of
f(
n) would be:
Note that t + 1 < 2t + 1 = m, and as we were assuming that we reach the number 1 for all natural numbers less or equal than m, then we reach the number 1 for t + 1.
Therefore, if m + 1 is an even number, the obtained sequence reaches 1.
If
m + 1 is an odd number, it is because
m is an even number; that is,
m = 2
t for
t ∈ N, and
t > 1. Hence,
m + 1 = 2
t + 1, and the first iteration applying the definition of
f(
n) would be:
Given that 6
t + 4 is an even number, the next iteration would be:
At this point, note that the next iteration depends on whether t is an even or odd number; if t is an even number, then 3t + 2 will be an even number; however, if t is an odd number, then 3t + 2 will be an odd number.
Next, we will analyze both options:
Option 1: t is an even number:
If
t is an even number, then 3
t + 2 is an even number, and the next iteration applying the definition of
f(
n) would be:
Note that because t ≥ 2, and as we were assuming that we reach the number 1 for all natural numbers less or equal than m, then we can reach number 1 for and for m + 1. Therefore, if m + 1 is an odd number and t an even number, the sequence obtained reaches 1.
Option 2: t is an odd number:
If
t is an odd number, then 3
t + 2 is an odd number, and now using the formula from Equation (5), which represents the general term of Collatz sequence for any odd natural number after several iterations, we have that after
r1 +
r2 +
… +
rk +
k iterations, we would obtain:
Rewriting the above formula, we have:
At this point, note that for
m = 2
t,
t being an odd natural number, we were assuming that the sequence reaches number 1, and calculating the first terms for the sequence of
m = 2
t, we have:
The next iteration will depend on whether the previously obtained result is even or odd, and since we can obtain an even number in the following or next iterations, then using the formula from Equation (5) and after the next
s1 +
s2 +
… +
su +
u − 3 iterations, we would obtain:
If we call , and since for m = 2t we were assuming that the sequence reaches the number 1, it means that the limit of xS+u when S and u tend to infinity is equal to 1.
Thus, if we call
in Equation (7) and we calculate the limit when
R and
k tend to infinity, we have:
Note now that the value of R cannot be less than k, because in using the definition of the sequence, every time a term xi in the sequence is odd, the next calculated term is always even.
The value of R cannot be equal to k either, because for this to happen, it would mean that all ri = 1 that is, every time we divide by 2, the value obtained is an odd number. Moreover, it can be shown how this is only possible if the value of t is a value that increases as we calculate new iterations. However, we should remember that the value of t is an odd number that we take at random so that 3t + 2 is an odd number, but without changing the t value in each iteration.
Next, it is shown how this t value should be changing, so R would be equal to k.
Recall that 3
t + 2 is odd because
t is also odd, and therefore, the next term of the sequence would be:
Since 9
t + 7 is even, the next term in the sequence would be:
For
to be odd, there must be an
a ∈ N such that:
Hence, the question now is: Are there natural numbers t and a that satisfy the previous equation? The answer is yes, when t = 4w + 3 and a = 9w + 8 for w ∈ N.
Therefore, assuming that
is odd because
t = 4
w + 3 for
w ∈ N, the next term in the sequence would be:
Since this value is even, the next term would be:
The question now is: Can the previous value be odd? That is, are there natural numbers t and a such that 27t + 23 = 8a + 4? The answer is yes when t = 8w + 7 for w ∈ N.
Hence, we can observe that the value of t has increased. Previously, it was t = 4w + 3 = 22w + (22 − 1), and now it should be t = 8w + 7 = 23w + (23 − 1) for w ∈ N, and so on.
Hence, for R = k, the t value would be increasing, increasing the exponent of the power of 2, which means that, in this case, it is not possible when setting an odd value of t; however, to make it possible, the value of t must be changing, increasing in the way we have seen. Hence, this implies that the case R = k is not possible.
Therefore R > k, then R = k + v for v ∈ N, and then v > k or v < k (this last option could happen if many ri = 1).
Analyzing both cases, we have:
Thus, for an odd number m + 1 and an odd number t, the obtained sequence also reaches 1.
Therefore, for an m + 1 even or odd number, the sequence reaches 1, and this means that, for all natural numbers n, the Collatz sequence always reaches 1, as we sought to prove.