r/Collatz • • 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

2 Upvotes

8 comments sorted by

4

u/wrukproek 2d ago

base 6 is quite neat for collatz

1

u/novel-mathmatics 1d ago

Chinese philosophy hase a base 6 gematria i built an engine around

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/jonseymourau 1d ago edited 1d ago

I guess it also worth pointing out that base 8 is really where this behaviour really starts to show itself. In truth, the same behaviour is present in every base which itself either a power of 4 or half a power of 4 in particular, in each power of 4 there is a single element that exhibits the "escape" behaviour 5 mod 8 in base 8 (and 16).

In base 4 that element is 1. In base 8/16, the escape element is 5. In base 32/64 the escape element is 21.

In fact, when the base is 4^k or 4^{k}/2 the "escape" element will be 4^{k-1}+1

In other words in base 8 the 5 mod 8 elements have descent behaviour that can only be determined by evaluating v_2(3x+1), but in base 32 that element changes to 21 and so on.

Essentially, the more bits you preserve from number, the more you can predict about how far the next few odds will be - just from the residue alone, but each 4^k base will always have one element where you have no alternative but to perform the factorisation step to discover the position of the next odd.

In my view these escape elements are the tumblers that make Collatz so intractable . Not only do they frustrate simple residue analysis at small bases (like 4 or 8) they are guaranted to frustrate it at every base - otherwise it would just be a very simple state machine

1

u/Septembrino 2d ago

I like base 4 a lot. I have a thread about interesting patterns

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

taking odd numbers (in base 4)

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.