Easy Understanding Python Dictionary Solution
\n        count = 0\n        seen = defaultdict(list)\n        for i, num in enumerate(nums):\n            if num in seen:\n                for idx in seen[num]
```\n        count = 0\n        seen = defaultdict(list)\n        for i, num in enumerate(nums):\n            if num in seen:\n                for idx in seen[num]:\n                    if idx * i % k == 0:\n                        count += 1                \n            \n            seen[num].append(i)\n            \n        return count\n```
[]