Specifying sets where/with/for

I would say that "with" is not a likely choice, but in fact it is possibly used more often than "where", and "for" is chosen most often: ngram.

In this ngram are included all cases in which n is fixed and equal to 1, but I think it doesn't matter.