Let $k$ and $S$ be fixed non-negative integers. Let us regard the following set of tuples
$\{ (x_1,\dots,x_k)| x_i \leq x_{i+1}, \sum_j x_j \leq S \}$
I have got some questions on this set.
- Is there are name for this set? It is similiar to an arbitrary partition of an integer.
- Is there a nice formula that provides the number of elements in this set? It may be recursive.
- Is there an easy to compute index for each of the elements, such that in turn any element can be computed from the index (easily)?
Of course, there are brute force algorithms for the last two questions. I am looking for something neater.