private static String elementsOfUnitGroupSteps(final int n) {
        Algorithms.notLessThanCheck(n, 2);
        final StringBuilder result = new StringBuilder(64);
        result.append("Z").append(n).append(TIMES).append(" = ");
        if (Algorithms.isPrime(n))
            return result.append("Z").append(n).append("*").append(NEWLINE).toString();
        
        result.append("\\{");
        for (int i = 1; i < n; ++i) {
            if (Algorithms.isCoprime(i, n)) {
                result.append(i);
                if (i < n - 1)
                    result.append(", ");
            }
        }
        return result.append("\\}").append(NEWLINE).toString();
    }