Let $m,n$ be positive integers with $m\mid n$. I want to compute $$ \mathrm{Ext}_{\mathbb{Z}/n\mathbb{Z}}^i (\mathbb{Z}/m\mathbb{Z},\mathbb{Z}/m\mathbb{Z}) \qquad \mathrm{Tor}^{\mathbb{Z}/n\mathbb{Z}}_i (\mathbb{Z}/m\mathbb{Z},\mathbb{Z}/m\mathbb{Z}) $$ for $i \ge 0$. At first, I thought that the way to do this was to find a projective resolution of $\mathbb{Z}/m\mathbb{Z}$ as a $\mathbb{Z}/n\mathbb{Z}$-module, and I didn't know how to do that, so asked about it in an earlier question (What is a projective resolution of $\mathbb{Z}/m\mathbb{Z}$ as a $\mathbb{Z}/n\mathbb{Z}$-module?).
However, the answer seems to depend on whether $m$ has repeated prime factors of $n$, so this doesn't seem like the way to compute these Ext and Tor groups. Is there a better way to do this?