Ojala, T. “Sums of Roots of Unity”. MATHEMATICA SCANDINAVICA, vol. 37, Dec. 1975, pp. 83-101, doi:10.7146/math.scand.a-11590.