I am not a mathematician, I hope the question is sufficiently clear and has a solution.
The use case is the design of an online experiment.
- Parameter
ais typically between 10 and 1000. - Parameter
sis typically between 3 and 6. - Parameter
nis typically between 1 and 20.
If a formal solution does not exist or is very computationally intensive, an algorithmic solution that would give an approximate, faster answer would be great as well (list of subsets where almost all pairs of items appear in n subsets).