Simplify
\[\left( \frac{3 + i \sqrt{3}}{2} \right)^8 + \left( \frac{3 - i \sqrt{3}}{2} \right)^8.\]
from sympy import I, simplify, sqrt

eq = (( 3 + I*sqrt(3) ) / 2)**8 + (( 3 - I*sqrt(3) ) / 2)**8

answer = simplify(eq)

print(answer)