There is a theorem which says that every ring $R$ may be embedded in a $S$ ring with identity. In Hungerford's "Abstract Algebra" it says that the ring $S$ may be chosen to be either of characteristics zero or to have the same characteristics as $R$. I don't understand the second part of the theorem. Why is it so?
Proof of the first part is straightforward. One can show that $S=R\times \mathbb{Z}$ is a ring with addition and multiplication defined as follows: $$(r,n)+(s,m)=(r+s,n+m)$$ $$(r,n)\cdot(s,m)=(rs+mr+ns,nm)$$ The identity is the element $(0,1)$. It is obvious that the characteristics of this ring is zero. Similarly, we can define $S=R\times \mathbb{Z}_k$ which is also a ring with respect to $$(r,\bar{n})+(s,\bar{m})=(r+s,\bar{n}+\bar{m})$$ $$(r,\bar{n})\cdot(s,\bar{m})=(rs+mr+ns,\bar{n}\bar{m}),$$ where $\bar{n}$ and $\bar{m}$ denote images of $n$ and $m$ under the canonical map and operations on second coordinate are both modulo $k$. Now $S$ is a ring with unity $(0,1)$ but of characteristics $k$. It seems to me that the characteristics of the ring $S$ in no way depends on the characteristics of $R$ and can be an arbitrary $k\in\mathbb{N}_0$, not just $0$ or $char R$.