Let $A$ be a $\mathbb Z$-algebra that is finitely-generated and free as a $\mathbb Z$-module and let $\pi: A \rightarrow \mathbb Z$ a nontrivial $\mathbb Z$-module homomorphism. For a positive integer, $m$, I am interested in ${\rm Hom}_{\,\mathbb Z}(A/mA, \mathbb Z/m\mathbb Z)$, the $\mathbb Z$-module homomorphisms, considered as an $A$-module.
Under suitable conditions (e.g., $m$ relatively prime to some integer depending on $A$ and $\pi$, probably), it seems that ${\rm Hom}_{\,\mathbb Z}(A/mA, \mathbb Z/m\mathbb Z)$ and $A/mA$ are isomorphic as $A$-modules.
The (conjectured) isomorphism I have been looking at maps $\overline{a}$ (the coset of $a \in A$ in $A/mA$) to the homomorphism defined by taking $\overline{b}$ to $\pi(ab) \bmod m$ (where $ab$ is the product of $a$ and $b$ in $A$).
However, I am stuck trying to prove this is actually an isomorphism. Or disproving it.
Any suggestions?