MathDB
Sum of gcd of n and 2019-n.

Source: RMO maharashtra and goa 2019 P1

November 10, 2019
number theorygreatest common divisor

Problem Statement

For each nNn\in\mathbb{N} let dnd_n denote the gcd of nn and (2019n)(2019-n). Find value of d1+d2+d2018+d2019d_1+d_2+\cdots d_{2018}+d_{2019}