I have two vectors:
$x = \{ x_1,\dots,x_n \}$
and
$y = \{ y_1,\dots,y_n \}$
with the following condition: $0 \leq x_i$ and $y_i \leq M$ and some value $u$ with $u > M$.
There are two numbers $a$ and $b$ defined:
$a = x_1 \cdot u^n + x_2 \cdot u^{n-1} + \dots + x_n \cdot u^1$
$b = y_1 \cdot u^n + y_2 \cdot u^{n-1} + \dots + y_n \cdot u^1$
I have to show that:
$a = b \Leftrightarrow x = y$ and
$a < b \Leftrightarrow x$ is lexicographically smaller then $y$.
I have troubles to give a clean proof, that both of these hold true.
For the first case, I try to do it the following way:
$a = b$
thus
$x_1 \cdot u^n + x_2 \cdot u^{n-1} + \dots + x_n \cdot u^1 = y_1 \cdot u^n + y_2 \cdot u^{n-1} + \dots + y_n \cdot u^1$
and argue, that there has to be combination of values for that both vectors are the same, as in the absolute value $|x| = |y|$. So basically I reduce it to:
$\sqrt{x_n^2 + \dots + x_n^2} = \sqrt{y_1^2 + \dots + y_n^2}$
But that's it, I don't know how to continue.
Similiar to the second proof. I argue, that $u$ stays the same on both sides and that with the lexicographical order the values are at least the same and in the end the other vector is bigger than the other. But my whole argumentation seems to vague. Is there a more mathematical approach where I can change the equation and the logic seems more obivous?