Base Representation
Suppose that m , k N 1 and ( a k , a k 1 , , a 1 ) { 0 , 1 , 2 , , m 1 } k . Then we define n := i = 0 k 1 a i m i and we say that the string a k a k 1 a 1 is the representation of n in the base m and define b a s e _ r e p r ( n , m ) := a k a k 1 a 1
Isn't this Circular?

In the above definition nothing seems to out of the ordinary until you try b = 10 or any fixed number, and start thinking about what this even means.

Understanding the Structure of Numbers: Beyond Base 10 Representation

When we write a number like ( a b c d ) 10 in base 10, we typically understand it as the expression a × 10 3 + b × 10 2 + c × 10 1 + d . Here, a , b , c , and d are digits ranging from 0 to 9, and the number 10 represents the base. This interpretation seems straightforward until we consider the deeper implications of what the "10" on the right-hand side truly represents. If we claim that this "10" is also written in base 10, we encounter a circular argument: how can we define numbers using the very system we are trying to explain?

The Circularity of Base 10 Representation

The circularity arises because we are using the base 10 system to define itself. The digits a , b , c , and d are combined according to the powers of 10 to produce a number in base 10, but this assumes that the concept of "10" is already understood. This reliance on the same base for both the number and its construction suggests that there is more to numbers than just their syntactical representation in a given base.

A Deeper Approach: Numbers as Abstract Entities

To avoid this circularity, we need to step away from the idea of numbers as simply sequences of digits and instead view them as abstract entities defined by a set of fundamental principles. This leads us to the concept of the Successor function in mathematics, a foundational approach rooted in set theory and logic. The idea is simply that numbers are not syntactical objects, they are things which can never actually see or touch, but they have certain properties about them, and when we create symbols to represent them that's about as close as we can get.

Numbers Through the Successor Function

In this framework, we begin with a single element, typically denoted as 0 . We then define the successor of 0 as S ( 0 ) , which we call 1. Continuing this process, we define:

Here, each number is not defined by its relationship to a base, but rather as the successor of the previous number. This method builds the entire number system from the ground up, without relying on a predefined base like 10.

Defining Base b Numbers Safely

With this successor-based approach, we can define numbers in any base b without falling into circular reasoning. A number in base b can be expressed as:

(abcd) b = a × b 3 + b × b 2 + c × b 1 + d

Here, the number b is understood as S ( S ( S ( 0 ) ) ) (with b applications of S ). This understanding is independent of any base system and is built solely on the Successor function and the concept of 0 .

Conclusion: Numbers as Abstract Constructs

The exploration of the circularity in base 10 representation reveals that numbers, when abstracted from their syntactical form, are better understood as constructs built on the Successor function and the element 0 . This perspective allows us to define numbers safely in any base, avoiding the pitfalls of circular reasoning and providing a more fundamental understanding of numerical systems.

S ( 0 ) ) .--> S ( 0 ) ) and this no longer results in cyclic reasoning.--> S ( 0 ) ) , so when we write things like a b c we know that this references 100 a + 10 b + c rather than S ( S ( 0 ) ) -->
Every Number has a Base b Representation
Let b N 2 and n N 0 then there exists a k N 1 and a 1 , , a k [ 0 , , b 1 ] such that n = ( a k a 1 ) b

Let b N 2 and we continue with induction. In the base case when n = 0 then the representation ( 0 ) b works. Now let j N 0 and and let i [ 0 , , j ] and assume that it holds for i , now we'll show it holds true for j + 1 .

What we will try to do is extract the largest b m we can from j + 1 and then use the induction hypothesis. So let J := { m N 1 : b m j + 1 } , this set has a maximum element because j + 1 is an upper bound, it is because we know that 1 j + 1 2 j + 1 b j + 1 therefore j + 1 is indeed an upper bound to J , let l be the max element of J and then by the quotient remainder theorem we have some q , r Z such that j + 1 = q b l + r  with  0 r < b l since r < b l j + 1 then the induction hypothesis holds on r so that r has a base b representation so that r = i = 0 p c i b i where p < l , because if p l then that makes r = i = 0 p x i b i b l which is a contradiction since we know that r < b l this means that the representation is exactly ( q c p c 0 ) b

Every Base b Representation is Unique
For any b N 2 and n N 0 there is exactly one base b representation of n

Let b N 2 and perform induction on n . So for n = 0 we know that the representation ( 0 ) b and for any other representation where a 0 then ( a ) b 0 there is exactly one representation as needed.

Now suppose that n N 0 and that for any k [ 0 , n ] has a unique base b representation, let's prove that n + 1 has a unique base b representation, for the sake of contradiction suppose that it has two different representations, which implies that i = 0 m a i b i = n + 1 = i = 0 k c i b i firstly we claim that m = k for if that were not the case then without loss of generality m < k and note the following i = 0 m a i b i i = 0 m ( b 1 ) b i ( b 1 ) i = 0 m b i ( b 1 ) b m + 1 1 b 1 = b m + 1 1 < b m + 1 Note that since m < k we know that m + 1 k then we know that b m + 1 b k i = 0 k c i b i which is a contradiction because chaining the last few inequalities we obtain n + 1 = i = 0 m a i b i < i = 0 k c i b i = n + 1 thus we deduce that m = k .

Now we additionally claim that a m = c k for if that were not the case then without loss of generality we assume that a m < c k and therefore ( n + 1 ) a m b m = i = 0 m a i b i a m b m = i = 0 m 1 a i b i but also ( n + 1 ) a m b m = i = 0 k c i b i a m b m = c k b k + + ( c m a m ) b m + + c 0 b 0 and since c m a m > 0 this is valid base b representation of ( n + 1 ) a m b m , but clearly they differ as a k 0 and so the length of the two representations are different. This a contradiction because by our induction hypothesis they must have the same base b representation, therefore our assumption that n + 1 has two different base b representations is false and therefore by strong induction the original statement is true.

Decimal Representation
The decimal representation of a number n is the representation of n in the base 10
The decimal representation of a number is the usual way you've most likely dealt with numbers so far, for example when you write 123 you are referring to the number 1 10 2 + 2 10 1 + 3 10 0 . Note
binary representation
The binary representation of a number n is the represetnation of n in the base 2
Binary Natural Numbers
We define the following: B := b a s e _ r e p r ( N 0 , 2 )
Number of Digits Required in a Base 2 Representation
Given any n N 0 prove that the number of digits in it's base 2 representation is given by log 2 ( n ) + 1

Let n N , suppose n requires d digits in it's base 2 representation, we'd like to show that d = log 2 ( n ) + 1 .

At most we have n = 1 1 , that is d 1's in a row. But we know that is

i = 0 d 1 2 i = 2 d 1

At a minimum the first digit is a 1 and the rest are zeros (since the powers start at 0 right to left, this is 2 d 1 ).

We now have the following bound on n .

2 d 1 n 2 d 1

Taking log base 2 on on the above inequality yields: (Call this inequality $\beta$)

d 1 log 2 ( n ) log 2 ( 2 d 1 )

*Note*: Taking the log respects the inequalities because $\log_2(\cdot)$ is a strictly increasing function (check it's derivative)

We will attempt to take the floor of β . Since d 1 is an integer d 1 = d 1 , as for log 2 ( 2 d 1 ) , we must look a little closer.

Since 2 d 1 2 d 1 < 2 d and , we know that

d 1 = log 2 ( 2 d 1 ) log 2 ( 2 d 1 ) < l o g 2 ( 2 d ) = d

Therefore log 2 ( 2 d 1 ) = d 1 and so the result of taking the floor of β yields

d 1 log 2 ( n ) log 2 ( 2 d 1 ) = d 1

In other words

d 1 log 2 ( n ) d 1

So

d 1 = log 2 ( n ) d = log 2 ( n ) + 1
Base Plus Minus One To a Power is Congruent to Plus Minus One
For any b N 2 and for any n N 1 and let x be the character we use to represent b 1 then ( 10 n ) b = ( x x ) + 1
Division by 9 Rule
Suppose that n = ( a k a 0 ) then 9 | n if and only if 9 | i = 0 k 1 a i
We know that 10 n 1 n ( mod 10 ) and therefore n = i = 0 k a i 10 i i = 0 k a i ( mod 9 )