I'm trying to eliminate prime factors from algebraic integers. Is the following true without further restrictions? And how can I prove it?
Let $p,N,M\in\mathbb Z$, let $p$ be prime such that $gcd(p;N)=1$.
Let $x\in\mathbb C$ such that $p\cdot M\cdot x$ and $N\cdot x$ are algebraic integers.
Then $M\cdot x$ is also an algebraic integer.
Because $\gcd(p,N)=1$ there exist integers $u,v\in\Bbb{Z}$ such that $$up+vN=1.$$ By assumption $pMx$ and $Nx$ are algebraic integers, hence so is $$u\cdot pMx+vM\cdot Nx=(up+vN)Mx=Mx.$$