Let \$n=42\$ (Input)
Then divisors are : 1, 2, 3, 6, 7, 14, 21, 42
Squaring each divisor : 1, 4, 9, 36, 49, 196, 441, 1764
Taking sum (adding) : 2500
Since \$50\times 50=2500\$ therefore we return a truthy value. If it is not a perfect square, return a falsy value.
Examples :
42 ---> true
1 ---> true
246 ---> true
10 ---> false
16 ---> false
This is code-golf so shortest code in bytes for each language wins
Thanks to @Arnauld for pointing out the sequence : A046655