-
Notifications
You must be signed in to change notification settings - Fork 0
Home
The Collatz Conjecture is a infinite natural integers that takes a number as a base one and using the first result as a new base for the rest of the serie
The procedure is simple
- if the number is pair, divide it by 2
- if it's not, multiply it by 3 then add 1
Simple enough!
But it's better having a example
The french Wikipedia page have a example with 14 as the base.
-
14 is a pair
-
which give us 7 since 7*2 = 14
-
-
7 is a odd one
-
which give us 22
-
-
22 is a pair
-
which give us 11 since 11*2 = 22
-
-
11 is a odd one
-
which give us 34
-
-
34 is a pair
-
which give us 17 since 17*2 = 34
-
-
17 is a odd one
-
which give us 52
-
-
52 is a pair
-
which give us 26 since 26*2 = 52
-
-
26 is a pair
-
which give us 13 since 13*2 = 26
-
-
13 is a odd one
-
which give us 40
-
-
40 is a pair
-
which give us 20 since 20*2 = 40
-
-
20 is a pair
-
which give us 10 since 10*2 = 20
-
-
10 is a pair
-
which give us 5 since 5*2 = 10
-
-
5 is a odd one
-
which give us 16
-
-
16 is a pair
-
which give us 8 since 8*2 = 16
-
-
8 is a pair
-
which give us 4 since 4*2 = 8
-
-
4 is a pair
-
which give us 2 since 2*2 = 4
-
-
2 is a pair
-
which give us 1 since 1*2 = 2
-
-
1 is a odd one
-
which give us 4
-
-
4 is a pair
-
which give us 2 since 2*2 = 4
-
-
2 is a pair
-
which give us 1 since 1*2 = 2
-
-
1 is a odd one
-
which give us 4
-
-
4 is a pair
-
which give us 2 since 2*2 = 4
-
-
2 is a pair
-
which give us 1 since 1*2 = 2
-
-
1 is a odd one
-
which give us 4
-
-
4 is a pair
-
which give us 2 since 2*2 = 4
-
-
2 is a pair
-
which give us 1 since 1*2 = 2
-
-
1 is a odd one
-
which give us 4
-
And it goes on and on...
We have here a infinite repetition of 4, 2 and 1.
Here's the graphical representation of it (taking our first number account (14))
In this case, it's useless to go further since we will only produce a infinitely long string of 4s, 2s and 1s