Let $p=(p_1,p_2,\dots,p_n)$ be a weak composition of a positive integer number $n$ into $n$ non-negative integer parts and let $k_i$ be the count of the part $i$ ($i=0,1,2,\dots$) in the composition.
A permutation $\tilde p$ of $p$ is allowed if its partial sums obey the inequality: $$ \forall m (1\le m\le n):\ s_m\equiv\sum_{j=1}^m \tilde p_j\ge m. $$
The simple but rather unexpected result valid by numerical evidence is that the number of allowed permutations is $$ \frac{n!}{\displaystyle(k_0+1)!\prod_{i>0}k_i!}.\tag1 $$
This means that the number is exactly $n+1$ times less than the number of all permutations of the composition supplemented by an additional 0. This simplicity suggests that there should be almost obvious explanation of the fact but I could not find it.
Any hint is appreciated.
Given any weak composition $p = (p_1, p_2, \ldots, p_n)$, append an extra $0$ to it, and consider the rearrangement $ p' = (p_1' p_2', \ldots , p_n', p_{n+1}' )$.
There are $\frac{ (n+1)! } { (k_0 + 1) ! \prod k_i ! } $ such rearrangements.
We can naturally pair them up into groups of size $n+1$, obtained by cyclically permuting the indices.
For such a rearrangement, we associate it to the "up and right path" of:
We use the bijection as described in the third proof of Catalan's number. The following is a section of the writeup which contains the necessary information, though I encourage you to read the full details on Wikipedia for more context.
Using this algorithm, we conclude that the $n+1$ cyclic permutations each have a unique exceedance. Since this exceedance ranges from 0 to $n$, and there are $n+1$ of them, hence it's exactly the integers from 0 to $n$ (inclusive).
Here's the bijection for the case of $n = 3$.
The rows are cyclic permutations of $ (3,0,0,0), (2, 1, 0, 0), (1, 2, 0, 0), (2, 0, 1, 0), (1, 1, 1, 0)$.
The columns have exceedance $3, 2, 1, 0$.
(source: wikimedia.org)
Now, verify that an allowed permutation has an associated staircase diagram that stays on or above the line $ y = x$, hence has exceedence exactly $n$.
Finally, the number of allowed permutations is (the desired): $$ \frac{1}{n+1} \times \frac{ (n+1)! } { (k_0 + 1) ! \prod k_i ! } = \frac{ (n)! } { (k_0 + 1) ! \prod k_i ! } $$
In the case of $n=3$, this corresponds to the first column, and the allowed permutations are $(3, 0, 0), (1, 2, 0), (2, 0, 1), (1, 1, 1)$.
Corollary: The total number of allowed permutations is the Catalan number $C_n$.