Go - Simple Solution
go\nfunc countPairs(nums []int, k int) (count int) {\n    n := len(nums)\n    for i := 0; i < n-1; i++ {\n        for j := i+1; j < n; j++ {\n            if num
```go\nfunc countPairs(nums []int, k int) (count int) {\n    n := len(nums)\n    for i := 0; i < n-1; i++ {\n        for j := i+1; j < n; j++ {\n            if nums[i] != nums[j] {\n                continue\n            }\n            if (i * j) % k > 0 {\n                continue\n            } \n            count++\n        }\n    }\n    \n    return \n}\n```\n
['Go']