Given any fraction $\frac{s}{t}=\frac{s}{\Pi_pp^{i_p}}$ with $s,t$ relatively prime, I would like to know if it is possible to write $\frac{s}{\Pi_pp^{i_p}}=\sum_p\frac{s_p}{p^{i_p}}$ for some unique integers $s_p$.
It seems like this is a simple algebraic fact, but I'm not totally sure how to prove it, especially the uniqueness part. The furthest that I've gotten is that for all nonzero $i_p$ we must have $s_p$ nonzero, because otherwise $s$ would be divisible by that $p$, contradicting that $t$ and $s$ are relatively prime.
I guess an equivalent question would be to ask for solutions to some finite equation $\sum_i a_ix_i=a$ where $\text{gcd}(a,\{a_i\})=1$.