Weird and Wonderful Number Bases
Number systems are weird β
When we think of number systems, we usually imagine the familiar base-10 (decimal) or base-2 (binary). But the idea of a βbaseβ is much more flexible than most people realize. We arenβt restricted to integers β₯ 2. In fact, we can use fractional bases, irrational bases, and even negative or complex ones.
Now, just because we could, does that mean we should?
Short answer: No.
Long answer: Also no.
What is a base, really? β
A base
means
As long as we agree on a digit set (often
A general rule thus emerges: In any base-10
, and 1
followed by n
zeros.
Fractional bases β
Take base 1.5. The digits are typically
1000
in base-1.5 means101
in base-1.5 means
Numbers donβt line up as neatly as in base-10, but the system is perfectly valid.
Irrational bases: base-Ο β
Nothing stops us from picking an irrational base, like
Now, if you remember from earlier: Any number 10
.
So in base-Ο, the string
10
represents exactly:
So if you ever felt the need to express 10
. (in base-Ο).
Of course, other numbers get strange expansions. For example, the number 2 in base-Ο would look like a fraction of 10
.
The Golden Ratio base (phinary) β
One of the most beautiful non-integer bases is the golden ratio base, also called phinary or the Fibonacci coding system.
The golden ratio is
In base-
Examples:
1Ο0
=100Ο
=- Every positive integer has a finite, unique representation in base-
.
This system is tightly connected to the Fibonacci sequence, since powers of
Other exotic bases β
- Negabinary (base -2): Every integer has a unique representation using only 0 and 1, without needing a minus sign.
- Complex base
: The βquater-imaginaryβ system (base ) can represent every complex integer with digits 0β3.
Why does this matter? β
I have no idea. I haven't slep today and just thought it's cool.