In reference to the question mentioned here : Number of ways to express a number as the sum of different integers,
what would be the number of ways to express the number if there is an additional constraint on the ordering of the k integers? For example - if a,b,c,d are k positive integers which express the number and the required ordering constraint is:
a <= b <= c <= d.
There is also a programming solution to this example here: Number of ways to express an integer N as sum of 4 integers which I can't seem to understand.
There is a same question here too In how many ways I can write a number N as sum of 4 numbers? However, the method used in the above mentioned programming solution looks simple. It would be of great help if the method could be explained easily.