In how many ways you can make an unordered selection of four positive integers each less than or equal $25$ such that every pair of selected integers differ by at least $3$, i.e. for any two such integers $a$ and $b$, $d(a,b) = |a-b| \geq 3 $?
We can choose $x_1$ in 25 no of ways. We cannot choose $x_2$ to be $x_1-2$,$x_1-1$,$x_1$,$x_1+1$ or$x_1+2$. If $x_1$ is between 3 to 23, we choose $x_2$ in 20 ways. If $x_1 = 2$ or $x_1 = 24$, then no of ways is 21 and $x_1 = 1$ or $x_1 = 25$, then no of ways is 22 ways. While choosing $x_3$, there will be more such cases. Now I'm completely lost.
Imagine the integers as four balls, arrange them in a line, and glue two dummy balls to the right of the first three of them. That's $10$ balls in $4$ units; now add $15$ more balls, which makes $25$ balls and $19$ units. There are $\binom{19}4=3876$ ways to choose positions for the $4$ original units among the $19$ units, and they correspond to the solutions for your problem.