If \( z^2 + z + 1 = 0 \) where \( z \) is a complex number, then the value of \( \left( z + \frac{1}{z} \right)^2 + \left( z^2 + \frac{1}{z^2} \right)^2 + \left( z^3 + \frac{1}{z^3} \right)^2 \) equals:
Show Hint
For any expression involving \( z^n + 1/z^n \) where \( z^2+z+1=0 \), the value repeats every 3 terms. If \( n \) is a multiple of 3, the sum is 2; otherwise, the sum is -1.