INTERESTING PROBLEM

why the answer to the problem

is the gcd of all divisors of n ?? soemone plz
give an explanantion