Here is a simple way by which SWI-Prolog allows you to calculate exactly N solutions (where you can specify the number N yourself).
In this example, N is 17, and the goal, the 17th solution of which we are interested in, is between(0, inf, I):
?- findnsols(17, I, between(0, inf, I), L), last(L, X), !.
L = [0, 1, 2, 3, 4, 5, 6, 7, 8|...],
X = 16.
, . findnsols/4 (.. 17 ).