The statement goes as following: if $3 \mid 2a$, then $3 \mid a$ and $a$ is an integer. In my approach, I used prime factorization, but is this actually valid? This was my approach:
$$3 \mid 2a \implies 2a = 2 \cdot 3 \cdot k, k \in \mathbb{N}$$
$$\frac{2a}{2} = \frac{2\cdot 3 \cdot k}{2}$$
$$a = 3 \cdot k$$
$$\therefore 3 \mid a$$
Is this valid or am I doing forbidden things here?
Note that $2a=3k$ implies $$ a=3a-2a=3(a-k)$$