GATE Computer ScienceHardGATE CS
What is the value of Σ_{k=1}^{100} gcd(k, 100)?
- A. 520
- B. 600
- C. 460
- 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
- What is the size of a maximum cut of the Petersen graph (the largest number of edges between a vertex set S and its complement)?
- How many Latin squares of order 4 are there (4 × 4 arrays over {1, 2, 3, 4} in which every row and every column contains each symbol…
- In the game of Nim with piles of 9, 12, 17, 21, 30 and 6 stones, a move removes any positive number of stones from a single pile. How many…
- Let F(0) = 0, F(1) = 1, F(n) = F(n − 1) + F(n − 2). What are the last two decimal digits of F(2024)?
- How many different equivalence relations can be defined on a set of 5 elements?
- How many onto (surjective) functions exist from a 5-element set to a 3-element set?