this post was submitted on 04 Nov 2023
10 points (100.0% liked)
A place for everything about math
886 readers
1 users here now
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Highly composite numbers are useful cause they have a lot of factors! That's why the Babylonians and us use 60 for minutes and seconds. It makes dividing really simple, how much is 2/5 of 60? Why it's 24 (no fractions) etc. Being a square number is just interesting. I bet quarternary would have funky repetitive fractions. Hilbert curves are just some space filling fractal thing, apparently they use quarternary at some point in analyzing or generating them.
I'm still struggling to convert base 4 and decimal in my head, so I might just stay in my lane and take it slow ๐คฏ
Here's how you can do it while only ever dividing or multiplying by two.
Decimal to quaternary
This is a cycle of looking at remainders from dividing by two, with the first one an odd-even determinant, and the second a big-little determinant for each quaternary digit. You make numbers even before dividing by two, so there are never fractions to consider.
Example
Decimal number is 57~10~.
Next round:โ
Final digit:โ
That process gives 57~10~ = 321~4~; that is, 3 sixteens, 2 fours and 1.
Quaternary to decimal
Here you only need to add a small number and then double twice with each digit.
Example
Quaternary number is 321~4~.
Next round:โ
Final digit:โ
So 321~4~ = 57~10~.