GATE Computer ScienceHardGATE CS

What is the value of Σ_{k=1}^{100} gcd(k, 100)?

  1. A. 520
  2. B. 600
  3. C. 460
  4. D. 500

Correct answer: A. 520

Σ gcd(k, n) = Σ_{d | n} d·φ(n/d), which is multiplicative. For 4: 1·φ(4) + 2·φ(2) + 4·φ(1) = 8; for 25: 1·φ(25) + 5·φ(5) + 25·φ(1) = 65. So the sum for 100 = 4 · 25 is 8 × 65 = 520 (confirmed by direct summation).

More Discrete Mathematics questions

Exams that ask this topic