1. Introduction
1.1. Notation
Throughout this paper,
is the set of non-negative integers (natural numbers),
is the set of positive integers and
X denotes the set of odd positive integers. The classical Collatz function
is defined by the formula
The so-called
function
is defined as
For future use, we also define a version of the map T. Let . We may uniquely write , where is odd and . The number (i.e., the adic norm of n) is denoted by .
Definition 1. The map given by the formulais called the Collatz transform. 1.2. On the Collatz Problem
Here, we recall only basic facts about the Collatz problem. For much more information on the subject and a comprehensive bibliography, we refer the reader to [
1,
2,
3,
4,
5].
With function T defined above and the integer , the trajectory of n under the function T is an infinite sequence: where , and .
For a given n, we have a priori two possibilities: the correspondence is injective or it is not. If the map is injective, it must tend to infinity, . Such trajectories are said to be divergent. If the map is not injective, then there exists , such that for all sufficiently large , we have . Such a trajectory is said to be cyclic. For a cyclic trajectory, let . The finite sequence is called a cycle of the trajectory . The smallest such number p is the length of the cycle. When the length of the cycle equals 2 (i.e., ), then it is easy to see that the cycle equals . In this case, it is called a trivial cycle, and the trajectory is said to be convergent. When , the cycle is said to be non-trivial.
The Collatz problem, see [
6], may be formulated as follows.
Conjecture 1 ([
6])
. For each , the trajectory is convergent. Thus, the Collatz conjecture excludes the existence of divergent trajectories and non-trivial cycles.
This conjecture is a constant source of inspiration for mathematicians and computer scientists, who connect it with various fields of research: complex analysis, operator theory, number theory, probability, and many others; see, as an example [
7,
8,
9,
10,
11,
12,
13,
14].
The convergence of the trajectories was checked by computers, to our knowledge, for
[
15]. Terras, in 1976 [
16], proved that a set of
n such that for every
there is
, even if not empty, is relatively small (i.e., its density is zero; see
Section 4). In 2019, Tao [
17] proved that for any function
with
, the inequality
holds, in the sense of logarithmic density, for almost all
.
Additionally, we would like to remark that in this paper, we mainly focus on the transform from Definition 1. The notions of cyclic or divergent trajectories for are analogous to those for T. However, the lengths of the cycles may, of course, differ; e.g., a trivial cycle for has a length of one.
1.3. Decomposition into Arithmetic Sequences
We show a, hopefully, interesting description of the
k-th iteration of
. We think this result is noteworthy and may provide new insight into the Collatz problem. The main idea behind this result is that the domain of
(that is, the set
X) can be divided into separate arithmetic sequences, and for integers in any such sequence, the graph of
lies on a line with a given slope. Before we quote the result (Theorem 3), let us present
Figure 1, showing the idea of the result.
Theorem 1. Let and let . Let . Then there exists a family of subsets satisfying the following properties:
- (1)
Each is an arithmetic sequence.
- (2)
- (3)
- (4)
For each , there exist positive rational numbers and such that for each , we have - (5)
- (6)
The difference in the sequence equals .
- (7)
The difference in the sequence equals .
1.4. LikeNs, Motivation and a Very Short Introduction
In this subsection, we present structures
named ‘like
s’ described in [
18,
19]. We investigate the behaviour of a suitably modified Collatz transform on
in
Section 5. The motivation for considering such structures is the fact that the map
can be considered as well as the map
where
is a set of odd numbers divisible by 3. The problem is that
restricted, for example, to
is not a map into
. It turns out that by defining the modified Collatz transform on some subsets of
X, that is, on likens, we may omit this problem. Moreover, our approach makes the domain of the Collatz transform smaller and, at the same time, slightly changes the ‘affinity’ of this function. In this way, we obtain a source of interesting numerical results, obtained with low computer processing power. We hope that these results broaden our understanding of the Collatz problem.
Take , treated as a monoid. We define likens as follows:
Definition 2. Let be an infinite subset of such that , and is closed with respect to the multiplication in , i.e., is a monoid.
For future use, observe that we may analogously define as a monoid in X.
As is a strictly increasing sequence of natural numbers, For any (or in X), we define a successor of n in :
Definition 3. If the context is clear, we write only . Now, let denote the sequence of prime numbers and let q be a fixed prime number. Then, the liken, denoted as , is the monoid generated by the set . For example, is the monoid of all odd numbers, . More generally, is the monoid in , generated by the set , where A is a finite subset of .
Remark 1. In what follows, we are interested only in likens , or even , where , so when the context is clear, we will write instead of or .
1.5. Paper Organization
The paper is organized as follows. In
Section 2, we present the result of the decomposition of the iterations of a transform
into arithmetic sequences. In
Section 3, we deal with the Furstenberg topology in
X and prove that
is continuous in this topology. In
Section 4, we prove that a set of
, with infinite stopping time, is closed and nowhere dense (in the Furstenberg topology). In
Section 5, we generalize
to likens, and in
Section 6, we present the results of the numerical experiments.
2. Arithmetic Sequences
Let be the Collatz transform, as in Definition 1. The aim of this section is to construct an infinite sequence of families of sets, and then to study its properties. Each family is a countable family of subsets of X. The elements of the family are denoted by , where The sequence is constructed recursively.
2.1. Construction of
Family
is constructed as follows. Take an arbitrary
Let
be given by
Now, we describe how to construct
when
is given. The family
consists of sets of the form
, so we choose an index
. For this selected index, we consider the index
. This index is associated with the set
that is in
, which has already been constructed. Define an auxiliary set
using the formula
2.2. Some Properties of
Now, we study the properties of the constructed sequence .
Property 1. For each , the setis an arithmetic sequence with difference . Proof. Note that .
Suppose now that there exists an even integer r such that and such that for some , . Then, write for some and . Hence, as we have Since , the left-hand side is divisible by , so , and so, . Thus, we have As a consequence, since is even, we see that is divisible by , which is, according to the definition of , impossible. □
Property 2. For each , if , then
Proof. Suppose, on the contrary, that there exists . Hence, , for some . This is impossible when . □
Proof. Indeed, if , then is even, so there exists and such that . As a consequence, . □
2.3. Arithmetic Sequences and
As the proof of Theorem 3 is by inductive argument, it will be useful to consider the graph of the first iteration of the Collatz transform. As we have observed above, its domain is the set X, which can be decomposed into a countable family of arithmetic progressions . Thus, is the disjoint union of its restriction to the sets , and we have the following:
Property 5. is an arithmetic sequence with the difference
We have
. From Property 1,
is an arithmetic sequence with the difference
. Take two consecutive terms of
, say,
x and
. We have
As a consequence of the above properties, we obtain the following:
Theorem 2. Let . Then, the points of the graph of satisfy . Hence, they lie on the (real) line
The next property concerns some arithmetic sequences in X.
Property 6. Let be an arithmetic sequence in X such that , where r is odd. Take .
Then, the setis an arithmetic sequence. Proof. It is enough to show that the set is an arithmetic sequence.
Any
i such that
must satisfy
Let
As
is even,
is also even, so
for some
z. Thus,
As
is odd, it has an inverse in the ring
; hence,
Denote as t.
Thus,
, so
iff
and thus
is an arithmetic sequence. □
Finally, let us observe the following:
Property 7. Keeping the notation as above, given a sequence , we obtain a sequence of arithmetic progressions such that for and .
Proof. Indeed, for a given p and q, suppose that is the common element of and . Then, for some k and m, we have and , so , and this is impossible.
Then, take . As is even, there exists (only one) p such that is odd, so . □
2.4. Description of the Second Iteration
Section 2.3 gives a description of the graph of
. This section describes the graph of
. In fact, it is the second step in the inductive proof of Theorem 3. We include it here to simplify the reading of the (rather technical) proof of Theorem 3.
Recall the construction of the family of sets .
The family
consists of sets of the form
. So we choose the index
and take the index
. This index is associated with the set
in
, which has already been constructed. Define auxiliary sets
as
Then,
From Properties 6 and 7 we see that the set is an arithmetic sequence, consisting of such for which is odd; moreover, changing , we obtain a disjoint decomposition of into arithmetic sequences , i.e., such that and
Changing both
and
, we obtain a decomposition of
into arithmetic sequences.
Now, take The set is the set of values of the first iteration on the arithmetic sequence . Now, take into account an arbitrary point For this point, there is exactly one integer such that . Thus, belongs to and . Since , there exists exactly one integer such that belongs to the set and Thus,
As a consequence, the point lies on the graph of an affine function , where and
2.5. Description of the k-th Iteration
The description of is one of the essential results of this paper. Perhaps this result is already known to specialists on the subject, but we were unable to find it. Thus, we present it as the following Theorem. To simplify the notation, we slightly change the indexing of the sets in the family .
Theorem 3. Let and let . Let . Then, there exists a family of subsets satisfying the following properties:
- (1)
Each is an arithmetic sequence.
- (2)
- (3)
- (4)
For each , there exist positive rational numbers and such that for each , we have - (5)
- (6)
The difference in the sequence equals .
- (7)
The difference in the sequence equals .
Before starting the proof, we present a picture illustrating the idea of the Theorem.
Figure 2 shows
for all odd
n up to 500.
Proof. For
n the proof follows from the construction given in
Section 2.1, Properties 1–5 and Theorem 2.
Next, assume that , and there exist sets satisfying Properties 1–7. We want to prove that for each , there exist sets satisfying (1)–(7).
Each such
is of the form
, for some
,
We define
using Property 6, which we are able to do as, according to the inductive assumption, the sequence
is arithmetic. Take, as in this property,
and
. Define
Thus, the following are true:
- (1)
The below follows from Property 6.
- (2)
If , then or . If , then by inductive assumption, and as , we are finished. If but , we obtain the claim from Property 7.
- (3)
Take
. We have
Thus, we obtain
by inductive assumption.
- (4)
We want to prove that if , then , for some numbers ( and ). Observe that on , the transform acts as Replacing z with and using the inductive assumption, we are finished.
- (5)
The proof is a direct consequence of the above.
- (6)
Let
. We have
and
so
From (5), we have
and so,
As is even, is divisible by .
On the other hand, analogously, as in the proof of Property 1, we check that the difference in the sequence cannot be less than .
- (7)
Take two consecutive elements of . From (6), we know that they are given by and .
Thus, two consecutive terms of
are given by
and
. From this, we have
□
3. Furstenberg Topology on Odd Positive Integers
In 1955, Furstenberg, in [
20], defined a topology on integers. We will use his definition, restricted to
X.
Let X be a set of all odd positive integers.
Definition 4. Let . Then, if and only if for any , there exists such that for all , we have .
Thus, is open iff every point is contained in U together with an arithmetic sequence, or
Remark 2. (1) is a topology in X.
- (2)
The set is a neighbourhood of a.
- (3)
Let and . Then, the set (arithmetic sequence) is closed in
Proof. (1) and (2) are an immediate consequence of the definition.
(3) is also easy, but we put it here for the sake of completeness.
Take . We have to show that V is an open set. Observe that . For an integer , let . Thus, is an open set, as it is in fact . As , we are finished. □
We recall below some properties of the Furstenberg topology. They are proved in [
20].
Proposition 1. (1) is a Hausdorff space.
- (2)
( is a regular space.
- (3)
( has a countable basis.
- (4)
( is (from the Uryhson theorem) metrizable.
The following theorem is, to the best of our knowledge, new.
Theorem 4. is continuous as a map from to itself.
Proof. We have to show that is continuous in every . This means that for every neighbourhood V of , there exists a neighbourhood U of x, such that .
Without loss of generality, we may assume that
where
r is a positive integer. Let us also define an auxiliary set
as
. Now, let
p be such an integer that
is an odd number (thus,
). Let
U is a neighbourhood of
x, as
p is fixed. Take a number
. Thus,
for some
j. We have
Let .
Then,
As
must be odd and
is odd, the only possibility is
. So,
So,
, and we are finished. □
Remark 3. From this Theorem, we immediately determine that any iteration of is continuous in .
4. Stopping Time
The main result of this Section is Theorem 6, which describes, in , a property of the set of odd integers with a finite stopping time.
Recall the notion of a (finite) stopping time.
Definition 5. We say that has a finite stopping time if and only if there exists a positive integer k such that . The least such k, if it exists, is called , the stopping time of n. If a given n does not have a finite stopping time, we say .
For a natural number k, define a set Let and take the complement of V in X, namely the set . Then, for , there is Note that in a nontrivial cycle (if one exists), with being the maximum and the minimum of the cycle values, does have a finite stopping time and does not. However, it is not difficult to see the following:
Remark 4. Collatz Conjecture is true if and only if S is empty.
Unfortunately, so far, there is no proof that
S is empty. However, Terras, in his paper [
16], proved the following theorem.
Theorem 5. The density of S is 0.
Recall that the (natural) density of a set is defined as follows:
Definition 6. Let . Let . The upper asymptotic density of A is , and the lower asymptotic density of A is . If , then is the density of A.
Remark 5. Observe that if A contains an (infinite) arithmetic sequence, then
The main result of this Section is a theorem about the topological properties of the set of with an infinite stopping time. We prove that this set is closed and nowhere dense in ; this gives a result densewise weaker than Theorem 5, but perhaps interesting on its own.
Theorem 6. The set S (of n with ) is closed and nowhere dense in .
Proof. Let denote an arithmetic sequence in X, with . As R must be even, there exist (unique) integers, and , such that Denote .
From the definition of , it follows that there exists a unique integer , such that We write .
First, we prove the following:
Lemma 1. For every with , there exists a smaller open set such that and .
Proof. Let and .
Case 1.
. Recall that
, where
Observe that
, i.e.,
. Indeed,
In this case, establish
. Then,
, and so,
is a neighbourhood of
with
, as
.
Case 2.
Take
and take a subsequence of
given by
, where
We compute, as above, that
. Thus,
is a neighbourhood of
with
, as
□
From Lemma 1 we have the following:
Corollary 1. Every neighbourhood with is an image by of some .
Proof. Indeed, applying the lemma to
instead of
, we obtain
. We have, as in the lemma,
for some neighbourhood
of
; then, arguing inductively, we obtain
□
Next, we need
Lemma 2. For every neighbourhood of , there exists a (finite) sequence of neighbourhoods of , with
- 1.
is a neighbourhood of with .
- 2.
.
- 3.
, with
Proof. We proceed as follows. If , then we are finished. If , then apply Lemma 1 to this . This way, we obtain with . We proceed in this way until for some (finite) k, we obtain . The last statement follows from Corollary 1. □
The last Lemma we need is as follows:
Lemma 3. For any , the set is open.
Proof. We proceed by induction. Take , so . From Theorem 3, we know that there exists an arithmetic sequence such that all points are on a line with a slope (for some natural j). As , this slope must be less than one, so at most, . As a consequence, all the points are “under” the line . Thus, for all i, ; the sequence is contained in , so is open.
Let and let . Thus, , so for and ; in other words, This implies that , so Thus, . As is open and is continuous, the set is open, which ends the proof. □
Let us now prove the theorem. As
is open and
,
S is closed. Assume that
S is not nowhere dense. Then
S has an interior point (in topology
). Thus, there exists
such that for some even
, there is
. Using Lemmas 1 and 2, we obtain a neighbourhood
with
and form Corollary 1,
,
. Thus, we may apply Property 6 to
, so we may decompose
into (nonempty for every
) arithmetic sequences, say,
for short, such that for every
, we have
As is bijective, there exist satisfying
From Theorem 3, it follows that there exist
and
such that
For big enough p, the coefficient is smaller than 1. So, there exist (infinitely many) points with “under” the line , i.e., , so they have a finite stopping time, which is a contradiction. □
Remark 6. The proof of Theorem 6 may be obtained in an easier way if we use Theorem 5.
Proof. As above, S is closed. Assume that S is not nowhere dense. Then, S has an interior point (in ). Thus, this point is contained in S with an arithmetic sequence; see Remark 2. But then, , from Remark 5, and this is a contradiction with Theorem 5. □
Remark 7. Let be a family of all arithmetic progressions of the form . Let be a subfamily which is a filter basis. For such S, we have the topology , analogous to the Furstenberg topology. We can then investigate the properties of in . As far as nowhere denseness is considered, the Furstenberg topology is the best, as it is the strongest one, so the nowhere dense set is the smallest.
5. Generalized Collatz Transform
The Collatz problem has been generalized or reformulated in many ways. One possible group of generalizations of the Collatz problem preserves the set of positive integers
as the domain of the Collatz function, but the formula defining
T is replaced by a formula similar to it. For example, instead of
one may consider the functions
or
or, more generally, affine functions of type
. The Collatz functions of this type may not seem to differ, from a numerical point of view, from the
function. However, the numerical data obtained, for example, for the function
, suggest that in this case, almost all orbits escape to infinity, that is, are divergent; see [
2].
Another method of changing the problem is to reduce it to residue classes. A subset
is
sufficient if the convergence of all trajectories for
implies the convergence of all trajectories for
. Trivially, the set
of all natural numbers that are not divisible by 3 is sufficient. A less trivial example of a sufficient set is the set
; see [
1,
21] for a generalization.
Finally, we may generalize both the domain of
T and
T itself. In [
1,
3], we can find information on the possibility of such modifications of the Collatz problem in
or in
. There are many such extensions; for example, for
, let us denote
. One may easily observe that if
, then
; see [
1,
22].
Our approach to generalization of the Collatz problem, on the one hand, restricts the domain of the function, and on the other hand, leaves the Collatz transform intact as much as possible.
We restrict our considerations to likens. Let us start with some remarks, showing that likens have interesting topological properties.
Remark 8. The Furstenberg topology may also be defined on likens The small difference is as follows: Let . Then, if and only if for any , there exists an integer such that for all , we have .
Remark 9. For any primes , the likens are open in Furstenberg topology.
Indeed, arithmetic sequences are closed in X; thus, is open.
From now on, we restrict our considerations to likens , where is a prime number. As the context is clear, we still denote as .
We define a generalized Collatz transform as a function from , defined as follows:
Definition 7. Let .where is the successor of in ; see Definition 3. In other words, if is divisible by q, we replace it with . Remark 10. - (1)
Strictly speaking, the first iteration of the transforms (i.e., itself) is a map from X to and only starting from the second iteration may we speak of a map from to . This is also the case for , treated as .
- (2)
We will not prove it here, but, as it visible in Figure 3, this version of Theorem 3 holds also for and .