The Sharkovsky ordering is an ordering of the natural numbers $\mathbb{N}$, where
$3$ $\prec$ $5 $ $\prec$ $7 $ $\prec$ $9$ $\prec$ ...
$2*3$ $\prec$ $2*5$ $\prec$ $2*7$ $\prec$ $2*9$ $\prec$ ...
...
$2^n*3$ $\prec$ $2^n*5$ $\prec$ $2^n*7$ $\prec$ $2^n*9$ $\prec$ ...
...
... $2^n$ $\prec$ ... $\prec$ $2^3$ $\prec$ $2^2$ $\prec$ $2$ $\prec$ $1$
The ordering starts with all odd numbers, except for one, in increasing order, followed by two times the odds, $2^2$ times the odds, $2^3$ times the odds and so one. Finally the powers of two are listed last in decreasing order.
I know what to prove that this order is a total ordering. Thus, I need to show
- Antisymmetry: If $a \leq b$ and $b \leq a$ then $a=b$
- Transitivity: If $a \leq b$ and $b \leq c$ then $a \leq c$
- Connexity: $a\leq b$ or $b \leq a$
I came up with the following mapping from the Sharkovsky ordering to the natural numbers: \begin{equation}\label{eq1} P = \begin{cases} \mathbb{N}_0 \times \mathbb{N}_0 & \rightarrow \mathbb{N}\\ (r,p) & \rightarrow 2^r \cdot (2p+1) \end{cases} \end{equation}
As this function is bijective, each natural number appears exactly once in the Sharkovsky ordering.
See answer below for attempt at proof.
I would simply define the relation $\prec$ carefully and then use the definition to show that $\preceq$ is a linear order. Specifically,
$$\begin{align*} 2^r(2k+1)\prec 2^s(2\ell+1)\text{ iff }&r<s\text{ and }k\ne 0\ne\ell,\text{ or}\\ &r=s\text{ and }0<k<\ell,\text{ or}\\ &r>s\text{ and }k=\ell=0,\text{ or}\\ &k>0\text{ and }\ell=0\,. \end{align*}$$