/ ___\ / ___\ / ___\ / ___\
| 1 I*\/ 3 | | 1 I*\/ 3 | | 1 I*\/ 3 | | 1 I*\/ 3 | / /pi\ /pi\\ / /pi\ /pi\\ / /pi\ /pi\\ / /pi\ /pi\\ / /2*pi\ /2*pi\\ / /2*pi\ /2*pi\\ / /2*pi\ /2*pi\\ / /2*pi\ /2*pi\\ / /pi\ /pi\\ / /pi\ /pi\\ / /pi\ /pi\\ / /pi\ /pi\\ / /4*pi\ /4*pi\\ / /4*pi\ /4*pi\\ / /4*pi\ /4*pi\\ / /4*pi\ /4*pi\\ / /5*pi\ /5*pi\\ / /5*pi\ /5*pi\\ / /5*pi\ /5*pi\\ / /5*pi\ /5*pi\\ / /2*pi\ /2*pi\\ / /2*pi\ /2*pi\\ / /2*pi\ /2*pi\\ / /2*pi\ /2*pi\\ / /7*pi\ /7*pi\\ / /7*pi\ /7*pi\\ / /7*pi\ /7*pi\\ / /7*pi\ /7*pi\\ / /8*pi\ /8*pi\\ / /8*pi\ /8*pi\\ / /8*pi\ /8*pi\\ / /8*pi\ /8*pi\\ / /10*pi\ /10*pi\\ / /10*pi\ /10*pi\\ / /10*pi\ /10*pi\\ / /10*pi\ /10*pi\\ / /11*pi\ /11*pi\\ / /11*pi\ /11*pi\\ / /11*pi\ /11*pi\\ / /11*pi\ /11*pi\\ / /4*pi\ /4*pi\\ / /4*pi\ /4*pi\\ / /4*pi\ /4*pi\\ / /4*pi\ /4*pi\\ / /13*pi\ /13*pi\\ / /13*pi\ /13*pi\\ / /13*pi\ /13*pi\\ / /13*pi\ /13*pi\\
(x + 1)*x*(x - 1)*|x + - + -------|*|x + - - -------|*|x + - - + -------|*|x + - - - -------|*|x + cos|--| + I*sin|--||*|x + cos|--| - I*sin|--||*|x + I*sin|--| - cos|--||*|x + - I*sin|--| - cos|--||*|x + cos|----| + I*sin|----||*|x + cos|----| - I*sin|----||*|x + I*sin|----| - cos|----||*|x + - I*sin|----| - cos|----||*|x + cos|--| + I*sin|--||*|x + cos|--| - I*sin|--||*|x + I*sin|--| - cos|--||*|x + - I*sin|--| - cos|--||*|x + cos|----| + I*sin|----||*|x + cos|----| - I*sin|----||*|x + I*sin|----| - cos|----||*|x + - I*sin|----| - cos|----||*|x + cos|----| + I*sin|----||*|x + cos|----| - I*sin|----||*|x + I*sin|----| - cos|----||*|x + - I*sin|----| - cos|----||*|x + cos|----| + I*sin|----||*|x + cos|----| - I*sin|----||*|x + I*sin|----| - cos|----||*|x + - I*sin|----| - cos|----||*|x + cos|----| + I*sin|----||*|x + cos|----| - I*sin|----||*|x + I*sin|----| - cos|----||*|x + - I*sin|----| - cos|----||*|x + cos|----| + I*sin|----||*|x + cos|----| - I*sin|----||*|x + I*sin|----| - cos|----||*|x + - I*sin|----| - cos|----||*|x + cos|-----| + I*sin|-----||*|x + cos|-----| - I*sin|-----||*|x + I*sin|-----| - cos|-----||*|x + - I*sin|-----| - cos|-----||*|x + cos|-----| + I*sin|-----||*|x + cos|-----| - I*sin|-----||*|x + I*sin|-----| - cos|-----||*|x + - I*sin|-----| - cos|-----||*|x + cos|----| + I*sin|----||*|x + cos|----| - I*sin|----||*|x + I*sin|----| - cos|----||*|x + - I*sin|----| - cos|----||*|x + cos|-----| + I*sin|-----||*|x + cos|-----| - I*sin|-----||*|x + I*sin|-----| - cos|-----||*|x + - I*sin|-----| - cos|-----||
\ 2 2 / \ 2 2 / \ 2 2 / \ 2 2 / \ \27/ \27// \ \27/ \27// \ \27/ \27// \ \27/ \27// \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \9 / \9 // \ \9 / \9 // \ \9 / \9 // \ \9 / \9 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 9 / \ 9 // \ \ 9 / \ 9 // \ \ 9 / \ 9 // \ \ 9 / \ 9 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 9 / \ 9 // \ \ 9 / \ 9 // \ \ 9 / \ 9 // \ \ 9 / \ 9 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 // \ \ 27 / \ 27 //
$$x \left(x + 1\right) \left(x - 1\right) \left(x + \left(\frac{1}{2} + \frac{\sqrt{3} i}{2}\right)\right) \left(x + \left(\frac{1}{2} - \frac{\sqrt{3} i}{2}\right)\right) \left(x + \left(- \frac{1}{2} + \frac{\sqrt{3} i}{2}\right)\right) \left(x + \left(- \frac{1}{2} - \frac{\sqrt{3} i}{2}\right)\right) \left(x + \left(\cos{\left(\frac{\pi}{27} \right)} + i \sin{\left(\frac{\pi}{27} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{\pi}{27} \right)} - i \sin{\left(\frac{\pi}{27} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{\pi}{27} \right)} + i \sin{\left(\frac{\pi}{27} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{\pi}{27} \right)} - i \sin{\left(\frac{\pi}{27} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{2 \pi}{27} \right)} + i \sin{\left(\frac{2 \pi}{27} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{2 \pi}{27} \right)} - i \sin{\left(\frac{2 \pi}{27} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{2 \pi}{27} \right)} + i \sin{\left(\frac{2 \pi}{27} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{2 \pi}{27} \right)} - i \sin{\left(\frac{2 \pi}{27} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{\pi}{9} \right)} + i \sin{\left(\frac{\pi}{9} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{\pi}{9} \right)} - i \sin{\left(\frac{\pi}{9} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{\pi}{9} \right)} + i \sin{\left(\frac{\pi}{9} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{\pi}{9} \right)} - i \sin{\left(\frac{\pi}{9} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{4 \pi}{27} \right)} + i \sin{\left(\frac{4 \pi}{27} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{4 \pi}{27} \right)} - i \sin{\left(\frac{4 \pi}{27} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{4 \pi}{27} \right)} + i \sin{\left(\frac{4 \pi}{27} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{4 \pi}{27} \right)} - i \sin{\left(\frac{4 \pi}{27} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{5 \pi}{27} \right)} + i \sin{\left(\frac{5 \pi}{27} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{5 \pi}{27} \right)} - i \sin{\left(\frac{5 \pi}{27} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{5 \pi}{27} \right)} + i \sin{\left(\frac{5 \pi}{27} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{5 \pi}{27} \right)} - i \sin{\left(\frac{5 \pi}{27} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{2 \pi}{9} \right)} + i \sin{\left(\frac{2 \pi}{9} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{2 \pi}{9} \right)} - i \sin{\left(\frac{2 \pi}{9} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{2 \pi}{9} \right)} + i \sin{\left(\frac{2 \pi}{9} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{2 \pi}{9} \right)} - i \sin{\left(\frac{2 \pi}{9} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{7 \pi}{27} \right)} + i \sin{\left(\frac{7 \pi}{27} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{7 \pi}{27} \right)} - i \sin{\left(\frac{7 \pi}{27} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{7 \pi}{27} \right)} + i \sin{\left(\frac{7 \pi}{27} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{7 \pi}{27} \right)} - i \sin{\left(\frac{7 \pi}{27} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{8 \pi}{27} \right)} + i \sin{\left(\frac{8 \pi}{27} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{8 \pi}{27} \right)} - i \sin{\left(\frac{8 \pi}{27} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{8 \pi}{27} \right)} + i \sin{\left(\frac{8 \pi}{27} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{8 \pi}{27} \right)} - i \sin{\left(\frac{8 \pi}{27} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{10 \pi}{27} \right)} + i \sin{\left(\frac{10 \pi}{27} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{10 \pi}{27} \right)} - i \sin{\left(\frac{10 \pi}{27} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{10 \pi}{27} \right)} + i \sin{\left(\frac{10 \pi}{27} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{10 \pi}{27} \right)} - i \sin{\left(\frac{10 \pi}{27} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{11 \pi}{27} \right)} + i \sin{\left(\frac{11 \pi}{27} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{11 \pi}{27} \right)} - i \sin{\left(\frac{11 \pi}{27} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{11 \pi}{27} \right)} + i \sin{\left(\frac{11 \pi}{27} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{11 \pi}{27} \right)} - i \sin{\left(\frac{11 \pi}{27} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{4 \pi}{9} \right)} + i \sin{\left(\frac{4 \pi}{9} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{4 \pi}{9} \right)} - i \sin{\left(\frac{4 \pi}{9} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{4 \pi}{9} \right)} + i \sin{\left(\frac{4 \pi}{9} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{4 \pi}{9} \right)} - i \sin{\left(\frac{4 \pi}{9} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{13 \pi}{27} \right)} + i \sin{\left(\frac{13 \pi}{27} \right)}\right)\right) \left(x + \left(\cos{\left(\frac{13 \pi}{27} \right)} - i \sin{\left(\frac{13 \pi}{27} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{13 \pi}{27} \right)} + i \sin{\left(\frac{13 \pi}{27} \right)}\right)\right) \left(x + \left(- \cos{\left(\frac{13 \pi}{27} \right)} - i \sin{\left(\frac{13 \pi}{27} \right)}\right)\right)$$
((((((((((((((((((((((((((((((((((((((((((((((((((((((x + 1)*x)*(x - 1))*(x + 1/2 + i*sqrt(3)/2))*(x + 1/2 - i*sqrt(3)/2))*(x - 1/2 + i*sqrt(3)/2))*(x - 1/2 - i*sqrt(3)/2))*(x + cos(pi/27) + i*sin(pi/27)))*(x + cos(pi/27) - i*sin(pi/27)))*(x + i*sin(pi/27) - cos(pi/27)))*(x - i*sin(pi/27) - cos(pi/27)))*(x + cos(2*pi/27) + i*sin(2*pi/27)))*(x + cos(2*pi/27) - i*sin(2*pi/27)))*(x + i*sin(2*pi/27) - cos(2*pi/27)))*(x - i*sin(2*pi/27) - cos(2*pi/27)))*(x + cos(pi/9) + i*sin(pi/9)))*(x + cos(pi/9) - i*sin(pi/9)))*(x + i*sin(pi/9) - cos(pi/9)))*(x - i*sin(pi/9) - cos(pi/9)))*(x + cos(4*pi/27) + i*sin(4*pi/27)))*(x + cos(4*pi/27) - i*sin(4*pi/27)))*(x + i*sin(4*pi/27) - cos(4*pi/27)))*(x - i*sin(4*pi/27) - cos(4*pi/27)))*(x + cos(5*pi/27) + i*sin(5*pi/27)))*(x + cos(5*pi/27) - i*sin(5*pi/27)))*(x + i*sin(5*pi/27) - cos(5*pi/27)))*(x - i*sin(5*pi/27) - cos(5*pi/27)))*(x + cos(2*pi/9) + i*sin(2*pi/9)))*(x + cos(2*pi/9) - i*sin(2*pi/9)))*(x + i*sin(2*pi/9) - cos(2*pi/9)))*(x - i*sin(2*pi/9) - cos(2*pi/9)))*(x + cos(7*pi/27) + i*sin(7*pi/27)))*(x + cos(7*pi/27) - i*sin(7*pi/27)))*(x + i*sin(7*pi/27) - cos(7*pi/27)))*(x - i*sin(7*pi/27) - cos(7*pi/27)))*(x + cos(8*pi/27) + i*sin(8*pi/27)))*(x + cos(8*pi/27) - i*sin(8*pi/27)))*(x + i*sin(8*pi/27) - cos(8*pi/27)))*(x - i*sin(8*pi/27) - cos(8*pi/27)))*(x + cos(10*pi/27) + i*sin(10*pi/27)))*(x + cos(10*pi/27) - i*sin(10*pi/27)))*(x + i*sin(10*pi/27) - cos(10*pi/27)))*(x - i*sin(10*pi/27) - cos(10*pi/27)))*(x + cos(11*pi/27) + i*sin(11*pi/27)))*(x + cos(11*pi/27) - i*sin(11*pi/27)))*(x + i*sin(11*pi/27) - cos(11*pi/27)))*(x - i*sin(11*pi/27) - cos(11*pi/27)))*(x + cos(4*pi/9) + i*sin(4*pi/9)))*(x + cos(4*pi/9) - i*sin(4*pi/9)))*(x + i*sin(4*pi/9) - cos(4*pi/9)))*(x - i*sin(4*pi/9) - cos(4*pi/9)))*(x + cos(13*pi/27) + i*sin(13*pi/27)))*(x + cos(13*pi/27) - i*sin(13*pi/27)))*(x + i*sin(13*pi/27) - cos(13*pi/27)))*(x - i*sin(13*pi/27) - cos(13*pi/27))
6 / 2\ / 2 \ / 3 6\ / 6 3\ / 9 18\ / 18 9\
-x *(1 + x)*(-1 + x)*\1 + x + x /*\1 + x - x/*\1 + x + x /*\1 + x - x /*\1 + x + x /*\1 + x - x /
$$- x^{6} \left(x - 1\right) \left(x + 1\right) \left(x^{2} - x + 1\right) \left(x^{2} + x + 1\right) \left(x^{6} - x^{3} + 1\right) \left(x^{6} + x^{3} + 1\right) \left(x^{18} - x^{9} + 1\right) \left(x^{18} + x^{9} + 1\right)$$
-x^6*(1 + x)*(-1 + x)*(1 + x + x^2)*(1 + x^2 - x)*(1 + x^3 + x^6)*(1 + x^6 - x^3)*(1 + x^9 + x^18)*(1 + x^18 - x^9)