Composite factors of binomials and linear systens in roots of unity