in your example you have completely ignored prime factorization.
suppose we write a number as a list of exponents n=(e1,e2,e3,...) where only finitely many ei's are non-zero, and so that e1 is the exponent of 2, e2 is the exponent of 3, and en is the exponent of the nth prime.
in your example...