The sum of all the elements in the set {n∈{1,2,…,100}:gcd(n,2040)=1} is equal to \_\_\_\_\_\_\_\_.
Answer: 1251
Solutions · 1
Official solution
2040=23×3×5×17. Numbers in {1,…,100} coprime to 2040 must avoid all factors of 2,3,5,17:
\[\{1,7,11,13,19,23,29,31,37,41,43,47,53,59,61,67,71,73,77,79,83,89,91,97\}.\]
Their sum is 1251.