I'm not a mathematician, so I may be asking this in an ambiguous way. I'll restate in a way that makes sense to me just in case.
In the set [2, 5, 9] there are no pairs that can divide evenly.
In the set [2, 4, 16] 2/4, 2/16, and 4/16, so there are 3 pairs that can divide evenly.
Is there a way to calculate this value without having to brute force through every combination?
If there's not a way to work out the exact value, is there a way compare two sets and work out which one has the higher value according to this property without knowing the exact value?
Thanks!