[(x, y, z) | (x, y, z) <- triplets n, x^2 + y^2 == z^2]