Let $P=\{\frac{a}{3^n} : a \in \mathbb{Z}, n \in \mathbb{N}\}$.
a) Which elements are irreducible in $P$: 4, 5, 6, 9, 10, 15?
b) Find out, which one of rings: $ P$, $\mathbb{Z}[i\sqrt{5}]$, $P[x]$ is a unique factorization domain.
My guess for a) is 4 and 10. Could you give me any hints for b)?
a) $4=\frac{2}{1}\cdot\frac21$ and similarly for $10$. On the other side, $5$ is irreducible, $6=\frac21\cdot\frac31$ and $\frac31$ is invertible in $P$, so $6$ is also irreducible, and similarly for $15$. It remains $9=3^2$ which is invertible in $P$.
b) $P$ is a UFD as a ring of fractions of a UFD; see here. We also have that $P[x]$ is a UFD; see here.