How to divide natural number N into M nearly equal summands?
For example, to divide 20 by 13, in geometric representation, I should get

How to generate the sequence above?
What is the name of this operation? It is close to division, but exact and giving unequal summands as a result.
P.S. Also this is probably related with leap years / calendar calculations.
UPDATE
Regarding examples where we get
$20=2+2+2+2+2+2+2+2+1+1+1+1$
I think it is not ballanced in the middle:

I would like partial sums be close to ratio as much as possible.
Consider the sequence $$\left\lfloor\frac{N k}{M}\right\rfloor, \qquad k = 0,\ldots, M.$$ which for $N = 20, M = 13$, gives $$0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 20.$$ The differences between successive terms are $$\left\lfloor\frac{N (k + 1)}{M}\right\rfloor - \left\lfloor\frac{N k}{M}\right\rfloor, \qquad k = 0,\ldots, M - 1.$$ In our example, $$1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2,$$ and the reverse of this is $$\phantom{(\ast)\qquad} 2, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, \qquad(\ast)$$ which is nearly the sequence given.
Reversing the order in the sequence of differences exchanges the $k$th term with the $(M - k - 1)st$ (for every $k$), so the general formula for the desired sequence is $$\color{#df0000}{\left\lfloor\frac{N (M - k)}{M}\right\rfloor - \left\lfloor\frac{N (M - k - 1)}{M}\right\rfloor, \qquad k = 0,\ldots, M - 1}.$$
Remark One can alternately produce more "balanced" partitions by rounding each multiple $\frac{Nk}{M}$ to the nearest integer (rather than flooring): $$\left\lfloor\frac{N k}{M} + \frac{1}{2}\right\rfloor, \qquad n=0,\ldots, M$$ (this convention rounds $\frac{1}{2}$ up). The resulting sequence of differences is $$\left\lfloor\frac{N (M - k)}{M} + \frac{1}{2}\right\rfloor - \left\lfloor\frac{N (M - k - 1)}{M} + \frac{1}{2}\right\rfloor, \qquad n=0,\ldots, M - 1,$$ which for our example is the aesthetically pleasing $$2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2.$$