let there be any base "b"
That can represent a number by the sum of their positional digits:
number = sum(d_i * b ^ i)
where i is the position index and d_i is the digit at this position. (note: index starts with 0, from the least digit farthest to the right)