I'm considering the following $\mathbb{Z}$-module
$$ K= \Big\{ \sum_{j=1}^k m_j \cdot \frac{p_j}{q_j}\cdot \frac{1}{D^{n_j}}: m_1,...,m_k\in \mathbb{Z},n_1,...,n_k\in \mathbb{Z}_{\geq 0} \Big\}, $$
where $\frac{p_1}{q_1},...,\frac{p_k}{q_k}\in \mathbb{Q}$ are reduced fractions and $D\in \mathbb{N}$. My question is under which conditions can I find $q\in \mathbb{N}$ such that I can write any element in $K$ as $\frac{m}{q}\cdot \frac{1}{D^n}$ for some $m\in \mathbb{Z}$ and $n\in \mathbb{Z}$.
I am pretty sure that any term in $K$ can be written as $\frac{m}{q}\cdot \frac{1}{D^n}$, with $q=\text{lcm}(q_1,...,q_k)$. It also seems like if $p_{i}\cdot \frac{q}{q_i}$ and $p_{j}\cdot \frac{q}{q_j}$ are co-prime, then I can express $\frac{1}{q}\cdot \frac{1}{D^n}$ and be done. Are there necessary and sufficient conditions for when this holds in general?
My algebra skills are pretty weak, so I would appreciate suggestions, remarks and examples of when this might not hold.
The number $q=\text{lcm}(q_1,...,q_k)$ fits. Indeed, it is well-known that any finitely generated Abelian group is a direct sum of cyclic groups. It follows that any finitely generated subgroup of $\mathbb Q$ is cyclic. Put $$ K_0= \Big\{ \sum_{j=1}^k m_j \cdot \frac{p_j}{q_j}: m_1,...,m_k\in \mathbb{Z}\Big\}.$$ Then $K_0$ is a finitely generated subgroup of $\mathbb Q$, and so $K_0$ is cyclic. Therefore $K_0$ is generated by some its element, which has a form $\frac pq$ for some $p\in\mathbb Z$. So $K_0=\frac pq\mathbb Z$ and $$K=\bigcup_{n=0}^\infty \frac 1{D^n}K_0=\bigcup_{n=0}^\infty \frac 1{D^n}\cdot\frac pq\mathbb Z.$$