2.1. The Composition of Odd-Number and Even-Number Functions
A natural number is considered even if it can be divided by 2; if not, it is considered odd. According to the Peano’s Axiom, the smallest natural number is 1. The set of natural numbers can be divided into odd and even sets; in this paper, we will use the usual definition of natural numbers. .
In the set of natural numbers where 1 is the smallest odd number and 2 is the smallest even number, we can use the expression to indicate that it is an odd, and the expression to indicate that it is an even, where k is any natural number.
We introduce two functions to express odd numbers greater than 1, and to express even numbers, where x is any natural number in N.
We define a strictly increase monotonically piecewise function
, from a natural number
n it generates two cases: odd or even numbers:
Definition 1 A natural number
n is obtained by composition of the odd-number function
and the even-number function
several times, namely
the function
f is either odd-number function
or even-number function
.
For example, ,
,
.
Any natural integer n is the value of the finite times composite function of the odd-number and even-number functions beginning at 1. In particular, If , then is the inverse function.
2.3. Use a Graph to Represent the Composite Procedure of the Natural Numbers
In order to give an intuitive impression, we provide
a full binary directed tree to represent the natural number set, the root is the smallest number 1. For per vertex, its left-child is an even number which double itself, its binary string is appended by 0, right-child is an odd number which double itself and add 1, its binary string is appended by 1. For an natural number its binary string indicates the procedure of the composition of
and
from initial value 1 to the final accordingly binary string from the left to right. The full binary directed tree, as in
Figure 2, is a very good representation of natural number
N.
Proposition 1 A binary string’s length indicates its level in the full binary directed tree, and a binary string’s length minus one represents the number of times the odd- and even-number composite functions occur.
For given natural number
n, its binary string from the second bit in left to right appending 0 or 1, indicates which comes from the root 1 of the full binary directed tree traversal according only one branch to itself. For instance,
Figure 3 illustrates the procedures of composite odd-number and even-number of 21 and 29.
Given a natural number
n, its binary string make of 0 or 1 from the second bit from left to right shows which originates from the root 1 of the full binary directed tree traversal, which only allows one branch to lead to itself. For example, the processes for the composite odd-number and even-number of 21 and 29 are shown in
Figure 3.
2.4. Another Partition of the Natural Number Set
We give the definitions of three kinds of natural numbers:
Definition 2(i) A natural number,
, is obtained by applying the odd-number function
m components. We call it as
pure odd number. For instance, those are pure odd numbers:
. These are located in the full binary directed tree of
Figure 2, which is the right leg of the isosceles triangle.
(ii) A natural number,
, is obtained by applying the even-number function
m components. We call it as
pure even number. For instance, those are pure even numbers:
,
,
,
,
,
. Those are located in the left leg of the isosceles triangle, namely the full binary directed tree of the
Figure 2.
(iii) The natural number obtained by the composition of odd function
and even function
, we call it
mixed number. Such as,
. Those are in the inside of the isosceles triangle, the full binary directed tree of the
Figure 2.
In particular, the natural numbers obtained by the finite alternately composition of the odd function and the even function , namely, . Such as
We call hard numbers.
The traversal path in the full binary directed tree from the root to down along the arcs, for each natural integer n, is its binary string , where the left-child appended 0 for each vertex is an even number and the right-child appended 1 for each vertex is an odd number. For instance, in Fig. 3, originates at the root 1 and proceeds down 2,5,10, ultimately reaching 21. To the vertexes, , 0,1,0,1 are appended. In addition, for , the appendix 1,1,0,1 is added to the vertexes, , after it descends from the root 1 down 3,7,14, and ultimately reaches 29.
Property 2 The set of natural numbers can be partited into three different sets: {natural number}=
{pure even number}∪{pure odd number}∪{mixed number}, where {mixed number}={mixed even number}∪{mixed odd number}
Example 1 (1) 60, 97 are mixed numbers.
(2) are pure even numbers.
(3) are pure odd numbers.
When we convert those natural numbers from decimal to binary, the facts are obvious.
(1) is a mixed-even number, is a mixed-odd number.
(2) , are pure even numbers:
, are pure odd numbers.