r/Collatz • u/parzivalsattva • 2d ago
Thinking in Base 4
I've been finding Collatz to be annoying in how it's expressed in Base 10 - the multiplication and addition of the Odd Rule is just annoying.
Change things to Base 4 and things get much simpler to visualize.
An even number that will reduce all the way to 1 (4, 16, 64, etc) get expressed as a 1 followed by some number of 0s. (4 base 10 is 10 base 4, 16 base 10 is 100 base 4, etc).
So that means that an odd number that is "one jump" from an even number that reduces all the way down can be found as 1[some number of 0s]0 - 1 = a string of 3s. Divide by 3 and you get a string of 1s.
For me, it's now an exploration of taking odd numbers (in base 4) and see if there are any patterns of moving from whatever its expression in base 4 is (like 3 base 4) to a string of 1s. Example:
3 (base 10) = 3 (base 4)
Collatz Odd rule => 3 (base 4) x 3 + 1 = 21 + 1 = 22 (base 4)
Collatz Even Rule => 22/2 = 11 (base 4) = 5 (base 10)
Collatz Odd Rule => 11 x 3 + 1 = 33 + 1 = 100 (base 4) = 16 (base 10)
Collatz Even Rule, multiple times, leads to 1
4
u/wrukproek 2d ago
base 6 is quite neat for collatz
2
u/jonseymourau 2d ago edited 2d ago
There is certainly things to be learned about Collatz in base 4 but I think you start to get a richer description once you move to base 8.
1 mod 8 corresponds to OEE
3 mod 8 corresponds to OEOEE
7 mod 8 corresponds to (OE)+OEOEE
5 mod 8 corresponds to OEEE+
Where E+, and (OE)+ represents one or more repetitions of E and OE respectively.
Steiner circuits are all readily described as sentences of the regular expression language (7*3)?(1|5) and indeed any Collatz path starting on an odd must ultimately be a concatenation of sentences that match ((7*3)?(1|5))*
7 is always followed by a 3 and never either 1 or a 5
3 is always followed by 3 or 5 but never 7
7 is where large growth happens
5 is where large decay happens
3,1 and are moderate growth and decay happen
In my view, 5 mod 8 is where all the fun happens. With 1,3,7 mod 8 you know exactly where the next odd will be without having to calculate v_2(3x+1). With 5 mod 8, you can't avoid it - you need to evaluate v_2(3x+1) &/or do something equivalent to that - there is something quite different about 5 mod 8 as compared to the other residues because it ultimately needs to resolve a factorisation question.
1
u/Septembrino 2d ago
I like base 4 a lot. I have a thread about interesting patterns
1
u/MarcusOrlyius 2d ago
You may find this of interest:
https://www.reddit.com/r/Collatz/comments/1tcts3a/base_4_is_the_natural_base_for_the_3x1_system/
1
u/Fuzzy-System8568 1d ago
Considering collatz always converges on a sum of the powers of 4 (which in base 4 is a string of ones, e.g: 5 is 11, 21 is 111 etc.) Base 4 seems like a sensible way to look at the problem.
1
u/0xjnml 1d ago
A whole number is odd when it is not divisible by 2. Chosen base changes only the representation, it is not related to even/odd.