Let $m_1,m_2\in \mathbb{N}$ s.t. $m_1\mid n$ and $m_2\mid n$. By that, both $\mathbb{Z}/(m_1)$ and $\mathbb{Z}/(m_2)$ are $\mathbb{Z}/(n)$-Algebras. Show that $$\mathbb{Z}/(m_1) \otimes_{\mathbb{Z}/(n)} \mathbb{Z}/(m_2) \cong \mathbb{Z}/(m_1,m_2)$$
Please see my edit below
Hi, i was working on this problem and would like to have some feedback and maybe some general advice regarding my approach (since i didn't manage to solve it).
My attempt:
I tried to invoke the universal property of the tensor product by first defining a map
\begin{align*} \varphi \colon \mathbb{Z}/(m_1) \times \mathbb{Z}/(m_2) &\to \mathbb{Z}/(m_1,m_2) \\ (z_1+(m_1),z_2+(m_2)) &\mapsto z_1z_2 + (m_1,m_2) \end{align*}
This map is bilinear, thus it induces a unique map
\begin{align*} \widetilde{\varphi} \colon \mathbb{Z}/(m_1) \otimes \mathbb{Z}/(m_2) &\to \mathbb{Z}/(m_1,m_2) \end{align*}
which is indeed well defined (by the universal property of the tensor product).
I was then trying to somehow naively guess an inverse and my attempt was trying something like
\begin{align*} \psi \colon \mathbb{Z}/(m_1,m_2) &\to \mathbb{Z}/(m_1) \otimes \mathbb{Z}/(m_2) \\ z + (m_1,m_2) &\mapsto z+(m_1)\otimes z+(m_2)\end{align*}
where $\overline{z_i} = z_i + (m_i)$ are the respective cosets.
However, i didnt succeed in proving well definedness and since the solution we were given to this exercise was in fact quite different to what i've tried, i wanted to ask whether my attempt is actually reasonable of if i went completely the wrong way.
Question 1: Is this attempt fine so far? Or should i have thought about something completely different while appempting to solve this problem?
Question 2: If my attempt was not reasonable, would you mind elaborating how i should have approached this problem instead?
Question 3: What role does the property of being an $\mathbb{Z}/(n)$-Algebra play here actually? I've treated everything as if i'd be working with modules, is this ok?
Thanks for any help!
Edit
I figured the following maps would actually do the trick:
\begin{align*} \varphi \colon \mathbb{Z}/(m_1) \otimes \mathbb{Z}/(m_2) &\to \mathbb{Z}/(m_1,m_2)\\ \left(z + (m_1)\right)\otimes \left(1 + (m_2) \right)&\mapsto z\cdot 1 + (m_1,m_2)\end{align*}
with the inverse map
\begin{align*} \psi \colon \mathbb{Z}/(m_1,m_2) &\to \mathbb{Z}/(m_1) \otimes \mathbb{Z}/(m_2) \\ z + (m_1,m_2) &\mapsto \left(z+(m_1)\right)\otimes \left(1+(m_2)\right)\end{align*}
It obviously holds that $$\varphi\circ\psi = \operatorname{id},\ \psi\circ\varphi = \operatorname{id}$$
Is my solution correct?