# Alon’s Unique Factorization Pathologies

Over at Abstract Nonsense, Alon teaches me something in just 4 short paragraphs.

Sometime in the last hour and a half I got a Google hit on integer that is both a square and a cube. Never one to fail people who read my blog, I feel I should talk a bit about it.

First, in the ring of integers Z, like in all other unique factorization domains, it’s simple: an element is both a square and a cube if and only if it’s a sixth power. Examples of integers that are both squares and cubes are then 1, 64, 729, 4096, and 15625.

However, without unique factorization, it’s more complicated. Take the ring Z[x], the ring of all polynomials with integer coefficients. That ring has unique factorization, by a theorem that says that if R is a UFD, then so is R[x]. But we can take the set of all elements in Z[x] whose x-coefficient is 0, such as 7, x^2 – 5, x^5 + x^4 – x^3, etc.; this set forms a subring of Z[x] because we can still add, subtract, and multiply in it. In that ring, we naturally have x^6 = (x^2)^3 = (x^3)^2, but since x is not in the ring, x^6 is not a sixth power.