z1 and
z2 are both
nth roots of unity. This means each one can be written in the form
e‌, where
r is an integer.
Let
z1=e‌ and
z2=e‌ for some integers
r1 and
r2.
If the line segment joining
z1 and
z2 makes a right angle at the origin, this means the points
z1,z2, and the origin form a right-angled triangle with the right angle at the origin.
This can only happen if
‌ is a purely imaginary number. A complex number is purely imaginary when its argument (angle) is
‌ or
‌, or in general,
‌+mπ where
m is an integer.
We find:
‌=e‌(r1−r2)For this to be purely imaginary, we need:
‌(r1−r2)=‌+mπDivide both sides by
π:‌(r1−r2)=‌Now solve for
n:n=‌Since
n must be a positive integer,
2m+1 must divide evenly into
4(r1−r2). The simplest way for this to always work for integer values is when
n is a multiple of 4 . Therefore,
n=4k for some positive integer
k.