For some $x \in N$ and $n \in N$, suppose $0 \leq a_i < x$ and $0 \leq b_i < x$ for $i=0,...,n-1$ and that the following is true
$$ \sum_{i=0}^{n}a_i\cdot x^i = \sum_{i=0}^{n}b_i\cdot x^i $$
How can we show that $a_i\cdot x^i$ = $b_i\cdot x^i$ for all $i$, and more specifically, that $a_i = b_i$ for all $i$?
In written terms, how can we show that if $n$ numbers are encoded in base $x$ where each digit is used to hold a single number (each number is less than $x$), that two equal encodings imply that each number used to obtain one encoding is the same as the corresponding number used to obtain the other encoding?
Essentially I am trying to show that the encoding is a bijection.