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.
Check every triple of distinct positions and keep the ones whose sum is divisible by exactly one of the three values.