C# || 1-line solution with LINQ
Code\n\npublic class Solution {\n    public int SumOfSquares(int[] nums) {\n        return nums.Where((_, i) => nums.Length % (i + 1) == 0 ).Sum(n => n * n);\n 
# Code\n```\npublic class Solution {\n    public int SumOfSquares(int[] nums) {\n        return nums.Where((_, i) => nums.Length % (i + 1) == 0 ).Sum(n => n * n);\n    }\n}\n```
['C#']