Count Equal and Divisible Pairs in an Array
Count pairs of equal values whose index product is divisible by k. The visual groups indices by value and tests each pair's product against k.
Count pairs of equal values whose index product is divisible by k. The visual groups indices by value and tests each pair's product against k.