z1 and
z2 are both
nth roots of unity. This means each one can be written in the form
eni2πr, where
r is an integer.
Let
z1=eni2πr1 and
z2=eni2πr2 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
z2z1 is a purely imaginary number. A complex number is purely imaginary when its argument (angle) is
2π or
23π, or in general,
2π+mπ where
m is an integer.
We find:
z2z1=eni2π(r1−r2)For this to be purely imaginary, we need:
n2π(r1−r2)=2π+mπDivide both sides by
π:n2(r1−r2)=22m+1Now solve for
n:n=2m+14(r1−r2)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.