Firstly, the given definition of spread-out is
"A partition is said to be 'spread-out' if all the parts are distinct and no two parts are consecutive numbers."
I am trying to work out how many spread-out partitions of 21 are there into 4 parts? I believe the answer is 7, but I only achieved this by brute force, and hence wondering if there is a easier way and more general formula of working this out.
Let $f(n,k,m)$ be the number of spread-out partitions of $n$ into $k$ distinct parts of size at most $m$. By conditioning on whether part $m$ appears, we find that $$f(n,k,m) = f(n-m,k-1,\min(m-2,n-m)) + f(n,k,m-1)$$ with obvious boundary conditions. We want to compute $f(21,4,21)$, which turns out to be $6$. The corresponding partitions are $$ 12+5+3+1\\ 11+6+3+1\\ 10+7+3+1\\ 10+6+4+1\\ 9+7+4+1\\ 9+6+4+2\\ $$