2013 Mock AIME I Problems/Problem 7
Problem
Let be the set of all th primitive roots of unity with imaginary part greater than . Let be the set of all th primitive roots of unity with imaginary part greater than . (A primitive th root of unity is a th root of unity that is not a th root of unity for any .)Let . The absolute value of the real part of can be expressed in the form where and are relatively prime numbers. Find .
Solution
Note that the only non-primitive th or th root of unity with a positive imaginary part is . Listing the other such roots shows that both and have elements, so is equal to times the sum of all the elements of plus times the sum of all the elements of , because all of the terms are added thrice to the sum.
Because all of the th roots of unity sum to , the sum of their real parts must be . Without , the sum of their real parts is . Because reciprocals of th roots of unity are also th roots of unity (but with opposite imaginary parts and the same real part), the sum of the real parts of the roots with a positive imaginary part must be . The same would be true for the th roots of unity, but we have to remember to exclude , which, by Euler's Identity, has a real part of . Subtracting this from yields , so the sum of the real parts of the elements of is .
Thus, , so our answer is .