Solve the 3x+1 Problem by the Multiplication and Division of Binary Numbers

§ School of Mathematics and Statistic, Longdong Univer...

Send Message

To: Author

Solve the 3x+1 Problem by the Multiplication and Division of Binary Numbers

Article Fingerprint

ReserarchID

8KJK0

Solve the 3x+1 Problem by the Multiplication and Division of Binary Numbers Banner

Key Research Insights

Synthesized scholarly intelligence & interactive research assistant
  • English
  • Afrikaans
  • Albanian
  • Amharic
  • Arabic
  • Armenian
  • Azerbaijani
  • Basque
  • Belarusian
  • Bengali
  • Bosnian
  • Bulgarian
  • Catalan
  • Cebuano
  • Chichewa
  • Chinese (Simplified)
  • Chinese (Traditional)
  • Corsican
  • Croatian
  • Czech
  • Danish
  • Dutch
  • Esperanto
  • Estonian
  • Filipino
  • Finnish
  • French
  • Frisian
  • Galician
  • Georgian
  • German
  • Greek
  • Gujarati
  • Haitian Creole
  • Hausa
  • Hawaiian
  • Hebrew
  • Hindi
  • Hmong
  • Hungarian
  • Icelandic
  • Igbo
  • Indonesian
  • Irish
  • Italian
  • Japanese
  • Javanese
  • Kannada
  • Kazakh
  • Khmer
  • Korean
  • Kurdish (Kurmanji)
  • Kyrgyz
  • Lao
  • Latin
  • Latvian
  • Lithuanian
  • Luxembourgish
  • Macedonian
  • Malagasy
  • Malay
  • Malayalam
  • Maltese
  • Maori
  • Marathi
  • Mongolian
  • Myanmar (Burmese)
  • Nepali
  • Norwegian
  • Pashto
  • Persian
  • Polish
  • Portuguese
  • Punjabi
  • Romanian
  • Russian
  • Samoan
  • Scots Gaelic
  • Serbian
  • Sesotho
  • Shona
  • Sindhi
  • Sinhala
  • Slovak
  • Slovenian
  • Somali
  • Spanish
  • Sundanese
  • Swahili
  • Swedish
  • Tajik
  • Tamil
  • Telugu
  • Thai
  • Turkish
  • Ukrainian
  • Urdu
  • Uzbek
  • Vietnamese
  • Welsh
  • Xhosa
  • Yiddish
  • Yoruba
  • Zulu
Reading Preferences
Font Size
Line Spacing
Background
This converted HTML version may contain rendering inconsistencies. Please refer to the PDF for the authoritative version, or click here to provide feedback.

Abstract

The 3x + 1 problem is the following: Suppose we start with a positive integer, and if it is odd then multiply it by 3 and add 1, and if it is even, divide it by 2. Then repeat this process as long as you can. Will you eventually reach the integer 1, no matter what you started with? Collatz conjecture (or 3n + 1 problem) has been explored for about 85 years. In this paper, we convert an integer number from decimal to binary and convert the Collatz function to a binary function, which involves the multiplication and division of two binary numbers. Finally, by iterating the Collatz function, we eventually reach the integer number 1.

I. INTRODUCTION

The 3 x + 1 problem, also known as the Collatz conjecture, 3 x + 1 mapping, Ulam conjecture, Kakutani's problem, Thwaites conjecture, Hasse's algorithm, or Syracuse problem [1], is one of the unsolved problems in mathematics. Paul Erdos (1913-1996) commented on the intractability of the 3 x + 1 problem [2], stating that "Mathematics is not ready for those problems yet".

The 2 x + 1 problem states that, for any positive integer x , if x is even, divide it by 2; if x is odd, multiply it by 3 and add 1. Repeating this process continuously leads to the conjecture that no matter which number is initially chosen, the result will always reach 1 eventually.

We use the notations as in [4,7], and describe a Collatz function as follows:

( 1 ) T ( n ) = { 3 n + 1 , if  n  is odd number, n 2 , if  n  is even number.

Let N denote the set of positive integers. For n N , and k = 0 , 1 , 2 , 3 , , T 0 ( n ) and T k + 1 ( n ) denote n and T ( T k ( n ) ) , respectively. Concerning the behavior of the iteration of the Collatz function, for any integer n , there must exist an integer r so that

( 2 ) T r ( n ) = 1.

a) The

We convert the last row of numbers into the first column to get a modified Sarkovskii ordered integer lattice[6] as the following,

  • 1, 3, 5, 7, 9, 11, 13, 15, 17, 19,
  • 2, 2·3, 2·5, 2·7, 2·9, 2·11, 2·13, 2·15, 2·17, 2·19,...
  • 2 2 , 2 2 3 , 2 2 5 , 2 2 7 , 2 2 9 , 2 2 11 , 2 2 13 , 2 2 15 , 2 2 17 , 2 2 19 ,
  • 2 3 , 2 3 3 , 2 3 5 , 2 3 7 , 2 3 9 , 2 3 11 , 2 3 13 , 2 3 15 , 2 3 17 , 2 3 19 ,
  • 2 4 , 2 4 3 , 2 4 5 , 2 4 7 , 2 4 9 , 2 4 11 , 2 4 13 , 2 4 15 , 2 4 17 , 2 4 19 ,

...

In the first row, they are odd numbers from left to right, that are 1, 3, 5, 7, 9, 11, 13, . From the second row, each number is two times the number in its previous row, and so on.

b) The

If we draw a line segment with an arrow between two digits in the lattice of integers in the modified Sarkovskii ordering, one being the original value x and the other being its value of the Collatz function T ( x ) , and then connect T ( x ) to T 2 ( x ) , and so on T 2 ( x ) to T 3 ( x ) , , we get a graph which can be called a Collatz graph.

Fig. 1: The Collatz graph of T 16 ( 7 ) = T ( 5 , 11 , 7 ) = 1 in the lattice of integers in the modified Sarkovskii ordering and the algebraic formula.

For different integers k and l , if there is a common vertex in their Collatz graphs, their graphs will overlap from that point onwards until they reach the minimum value of 1. Using the Collatz function T ( x ) , we can obtain an algebraic formula of 1 2 4 , 3 2 7 , 3 2 2 9 , , 3 m 2 r x , where r is the number of vertical segments and m is the number of oblique segments in the Collatz graph,

( 3 ) T m + r ( n ) = T ( m , r , n ) = 1 2 4 + 3 2 7 + 3 2 2 9 + + 3 m 2 r x = 1.

For example, n = 7 , 7 22 11 34 17 52 26 13 40 20 10 5 16 8 4 2 1 , the algebraic formula is

T 1 6 ( 7 ) = T ( 5 , 1 1 , 7 ) = 1 2 4 + 3 2 7 + 3 2 2 9 + 3 3 2 1 0 + 3 4 2 1 1 + 3 5 2 1 1 7 = 1 ,

and the Collatz graph is Fig.

And n = 36 , 36 18 9 28 14 7 22 11 34 17 52 26 13 40 20 10 5 16 8 4 2 1 , the algebraic formula is

T 2 1 ( 3 6 ) = T ( 6 , 1 5 , 3 6 ) = 1 2 4 + 3 2 7 + 3 2 2 9 + 3 3 2 1 0 + 3 4 2 1 1 + 3 5 2 1 3 + 3 6 2 1 5 3 6 = 1

and the Collatz graph is Fig. 2.

Fig. 2: The Collatz graph of T 21 ( 36 ) = T ( 6 , 15 , 36 ) = 1 in the lattice of integers in the modified Sarkovskii ordering and the algebraic formula.

We observe that there is a property present,

Proposition 1 For positive integers i , j , k , l , and l k , l k 1 , , l 1 , if i > j , then there is a recurrence relation

T i ( n ) = 3 k 2 l T j ( n ) + 3 k 1 2 l k + + 3 2 2 l 3 + 3 2 l 2 + 1 2 l 1

where k + l = i j , and l l k l k 1 l 1 .

For example, there are

T 3 ( 9 7 ) = 3 2 2 9 7 + 1 2 2 = 7 3
T 1 8 ( 9 7 ) = 3 7 2 1 1 9 7 + 3 6 2 1 1 + 3 5 2 9 + 3 4 2 7 + 3 3 2 6 + 3 2 2 5 + 3 2 2 + 1 2 = 1 0 7

We can get the recurrence formula about the Collatz function,

T 26 ( 97 ) = 3 3 2 5 T 18 ( 97 ) + 3 2 2 5 + 3 2 4 + 1 2 2 = 3 10 2 16 97 + 3 9 2 16 + 3 8 2 14 + 3 7 2 12 + 3 6 2 11 + 3 5 2 10 + 3 4 2 7 + 3 3 2 6 + 3 2 2 5 + 3 2 4 + 1 2 2 = 91 ,

II. NUMERICAL EXAMPLE

Using the above Collatz graphs of the integer lattice of the modified Sarkovskii ordering, we give the following algebraic formulas,

( 4 ) T 1 9 ( 9 ) = T ( 6 , 1 3 , 9 ) = 1 2 4 + 3 2 7 + 3 2 2 9 + 3 3 2 1 0 + 3 4 2 1 1 + 3 5 2 1 3 + 3 6 2 1 3 9 = 1 ,
( 5 ) T 1 5 ( 2 3 ) = T ( 4 , 1 1 , 2 3 ) = 1 2 4 + 3 2 9 + 3 2 2 1 0 + 3 3 2 1 1 + 3 4 2 1 1 2 3 = 1 ,
T 1 7 ( 1 5 ) = T ( 5 , 1 2 , 1 5 ) = 1 2 4 + 3 2 9 + 3 2 2 1 0 + 3 3 2 1 1 + 3 4 2 1 2 + 3 5 2 1 2 1 5 = 1 , ( 6 ) T 1 2 ( 1 7 ) = T ( 3 , 9 , 1 7 ) = 1 2 4 + 3 2 7 + 3 2 2 9 + 3 3 2 9 1 7 = 1 , ( 7 )
( 8 ) T 1 9 ( 6 1 ) = T ( 5 , 1 4 , 6 1 ) = 1 2 4 + 3 2 9 + 3 2 2 1 0 + 3 3 2 1 1 + 3 4 2 1 4 + 3 5 2 1 4 6 1 = 1.
( 9 ) T 1 6 ( 3 9 7 ) = T ( 5 , 1 1 , 3 9 7 ) = 1 2 4 + 3 2 7 + 3 2 2 9 + 3 3 2 1 0 + 3 4 2 1 1 + 3 5 2 1 7 + 3 6 2 2 0 + 3 7 2 2 0 3 9 7 = 1 ,

Example 2 For the formula

T ( 6 , 1 4 , 1 8 ) = 1 2 4 + 3 2 7 + 3 2 2 9 + 3 3 2 1 0 + 3 4 2 1 1 + 3 5 2 1 3 + 3 6 2 1 4 1 8 = 1 ,

we rewrite it as an integer equation,

3 6 1 8 + 3 5 2 + 3 4 2 3 + 3 3 2 4 + 3 2 2 5 + 3 2 7 + 2 1 0 = 2 1 4 .

Proof. To calculate the power of 3 and the value of 18 using powers of 2,

3 = 2 + 1
3 2 = 2 3 + 1
3 3 = 2 4 + 2 3 + 2 + 1
3 4 = 2 6 + 2 4 + 1
3 5 = 2 7 + 2 6 + 2 5 + 2 4 + 2 + 1
3 6 = 2 9 + 2 7 + 2 6 + 2 4 + 2 3 + 1
1 8 = 2 4 + 2

substituting these expressions into the left-hand side of the above equation, one obtains,

3 6 1 8 + 3 5 2 + 3 4 2 3 + 3 3 2 4 + 3 2 2 5 + 3 2 7 + 2 1 0 = ( 2 9 + 2 7 + 2 6 + 2 4 + 2 3 + 1 ) ( 2 4 + 2 ) + ( 2 7 + 2 6 + 2 5 + 2 4 + 2 + 1 ) 2 + ( 2 6 + 2 4 + 1 ) 2 3 + ( 2 4 + 2 3 + 2 + 1 ) 2 4 + ( 2 3 + 1 ) 2 5 + ( 2 + 1 ) 2 7 + 2 1 0 ,

and get the value 2 14 which is equal to the right value of the equation.

III. CONVERT THE INTEGER NUMBER FROM DECIMAL TO BINARY

Be inspired by the above, we use binary to rewrite the Collatz function (1) as the following formulas (2) and (3). We denote a binary number, which is a string of 0s and 1s, as n = ( 1 × × ) 2 , where × is either 1 or 0, e.g. 3 = ( 11 ) 2 ,

( 10 ) T ( n ) = T ( ( 1 × × ) 2 ) = { ( 1 1 ) 2 ( 1 × × 1 ) 2 + 1 , if n is odd number , ( 1 × × 1 0 0 0 ) 2 ( 1 0 ) 2 , if n is even number .

The result is

( 11 ) T ( n ) = T ( ( 1 × × ) 2 ) = { ( 1 × × × 1 0 0 ) 2 , if  n  is odd number, ( 1 × × 1 0 0 ) 2 , if  n  is even number.

Namely, when n is an odd number, we multiply it with ( 11 ) 2 and add 1 to the end of the binary number. For example, T ( 97 ) = T ( 1100001 ) in Fig. 3. When n is an even number, the division is equal to deleting the zero at the end in the binary number. We give the iteration of the Collatz function for 1, 5, 7, 9, 97 in binary as the following five tables.

We convert the modified Sarkovskii ordered integer lattice[6] from decimal to binary as the follows,

Fig. 3: For the Collatz function T ( 97 ) in binary, the first step is the multiplication in left, the second step is division in the right bottom.

Example 3 For positive integer 1, we manipulate the iteration of the Collatz function in both decimal and binary numbers,

1,11,101,111,1001,1011,1101,1111,10001,···
10,110,1010,110,10010,10110,11010,11110,100010,···
100,1100,10100,1100,100100,101100,110100,111100,1000100,···
1000,11000,101000,11000,1001000,1011000,1101000,1111000,10001000,···
10000,110000,1010000,110000,10010000,10110000,11010000,11110000,100010000,···
······························
ith0123
decimal1421
binary1100101

Example 4 For positive integer 5 = ( 101 ) 2 , we manipulate the iteration of the Collatz function in both decimal and binary numbers,

ith012345
decimal5168421
binary101100001000100101

Example 5 For 7 = ( 111 ) 2 , we manipulate the iteration of the Collatz function in both decimal and binary numbers.

ith01234578111216
decimal7221134175213405161
binary111101101011100010100011101001101101000101100001

Example 6 For 9 = ( 1001 ) 2 , we manipulate the iteration of the Collatz function in both decimal and binary numbers.

ith01234567141519
decimal928147221134175161
binary100111100111011110110101110001010001101100001

Example 7 For 97 = ( 1100001 ) 2 , we manipulate the iteration of the Collatz function in binary as the following table,

971100001206110011104251101010018661101100010
292100100100103110011112761001111100433110110001
14610010010310100110110638100111110130010100010100
731001001155100110113191001111116501010001010
22011011100466111010010958111011110325101000101
110110111023311101001479111011119761111010000
55110111700101011110014381011001110488111101000
1661010011035010101111071910110011124411110100
8310100111751010111121581000011011101221111010
25011111010526100000111010791000011011161111101
1251111101263100000111323811001010011018410111000
376101110007901100010110161911001010011921011100
1881011100395110001011485810010111101046101110
9410111011861001010001024291001011111012310111
47101111593100101000172881110001111000701000110
14210001110178011011110100364411100011110035100011
71100011189011011110101822111000111101061101010
21411010110445110111101911111000111153110101
1071101011133610100111000273410101010111016010100000
3221010000106681010011100136710101010111801010000
161101000013341010011104102100000000011040101000
4841111001001671010011120511000000000112010100
2421111001050211111011061541100000001010101010
12111110012511111101130771100000001015101
36410110110075410111100109232100100000100001610000
182101101103771011110014616100100000100081000
91101101111321000110110023081001000001004100
2741000100105661000110110115410010000010210
13710001001283100011011577100100000111
4121100111008501101010010173211011000100

Corollary 8 The Collatz function makes an odd integer number in binary bigger by adding 1 or 2 bits to the left of the sequence of 1 s and 0 s , and an even integer number in binary smaller by deleting all zeros at the end of the sequence of 1 s and 0 s . Thus, although in some cases the value of The Collatz function T ( x ) may be bigger than x in decimal, in general, the iteration of the Collatz function will make an integer number smaller and smaller, eventually reaching the smallest positive integer number 1.

We can rewrite the Collatz conjecture in binary, which makes it an easier problem to solve, thus allowing us to completely solve the Collatz conjecture.

Fact 9 For any positive integer, under the Collatz function, the sequence of integer numbers in binary will eventually reach 1.

Proof. For an odd binary integer, we multiply it by ( 11 ) 2 and add 1 in the last bit, the result number must be an even number in binary which at least one zero at the end. We delete all these zeros, namely it is the division. This is the above corollary 8. Thus, we repeat this process as long as we can, because the bits of the sequence in binary of a positive integer number is finite. Eventually, we must in finitely steps reach the smallest positive integer number 1.

Remark 10 We can say that the 3 x + 1 problem is a converse proposition of "period three implies chaos" [4], and it is also an example of any one positive integer number having a period of 3 in the Collatz function.

IV. CONCLUSIONS

We rewrite the Collatz function in binary, which makes the 3 x + 1 problem easier. The multiplications of ( 11 ) 2 and divisions of ( 10 ) 2 make the positive integer number smaller and smaller with the iterations of the Collatz function. In some cases, the value of the Collatz function T ( x ) may be bigger than x , thus allowing us to completely solve the Collatz conjecture.

References

7 Cites in Article
  1. Jeffrey Lagarias (1985). The 3x + 1 Problem and Its Generalizations.
  2. Jeffrey Lagarias The 3x+1 Problem: An Overview.
  3. P Stefan (1977). A theorem of Šarkovskii on the existence of periodic orbits of continuous endomorphisms of the real line.
  4. T Li,J Yorke (1975). Period three implies chaos.
  5. Terence Tao (2022). Almost all orbits of the Collatz map attain almost bounded values.
  6. Feng Jishe,Wang Xiaomeng,Gao Xiaolu,Pan Zhuo (2022). The research and progress of the enumeration of lattice paths.
  7. Alf Kimms (2021). The structure of the 3x + 1 problem.

Funding

No external funding was declared for this work.

Conflict of Interest

The authors declare no conflict of interest.

Ethical Approval

No ethics committee approval was required for this article type.

Data Availability

Not applicable for this article.

How to Cite This Article

Jishe Feng. 2026. "Solve the 3x+1 Problem by the Multiplication and Division of Binary Numbers". Global Journal of Science Frontier Research - F: Mathematics & Decision GJSFR-F Volume 23 (GJSFR Volume 23 Issue F3).

Download Citation

Detailed image of an academic research paper illustrating a math problem and solution from a peer-reviewed journal.
Journal Specifications

Crossref Journal DOI 10.17406/GJSFR

Print ISSN 0975-5896

e-ISSN 2249-4626

Keywords
Classification
GJSFR-F Classification JEL Code: C2
Version of record

v1.2

Issue date
May 23, 2023

Language
English
Order Article Reprint
Experiance in AR

Explore published articles in an immersive Augmented Reality environment. Our platform converts research papers into interactive 3D books, allowing readers to view and interact with content using AR and VR compatible devices.

Read in 3D

Your published article is automatically converted into a realistic 3D book. Flip through pages and read research papers in a more engaging and interactive format.

Article Matrices
Total Views: 440
Total Downloads: 23
All Trends

Request Access

Please fill out the form below to request access to this research paper. Your request will be reviewed by the editorial or author team.
X

This is the heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

High-quality academic research articles on global topics and journals.

Solve the 3x+1 Problem by the Multiplication and Division of Binary Numbers

Jishe Feng
Jishe Feng School of Mathematics and Statistic, Longdong University