Problem 2176 · Easy

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.

Open the interactive visualisation