Problem 2198 · Medium

Number of Single Divisor Triplets

Check every triple of distinct positions and keep the ones whose sum is divisible by exactly one of the three values.

Open the interactive visualisation