Suppose $I\subseteq\{1,\dots,n\}$, and let $\{1,\dots,n\}\setminus I=\{j_1,\dots,j_m\}$ be an enumeration of the complement of $I$ with $j_r<j_{r+1}$ for each $r\in\{1,\dots,m-1\}$. To $I$ I can attach the sequence $p(I)=(p_1,\dots,p_m)$ of non-negative integers with $p_r=|\{i\in I:i<j_r\}|$, which is such that $0\leq p_1\leq\cdots\leq p_m\leq n-m$. Conversely. each such sequence arises from exactly one $I$.
This bijection arises in a homological computation I am trying to do. I have something parametrized in terms of the $I$'s and I want to single out those that satify a condition best expressed in terms of the $p(I)$'s, and this is turning to be somewhat incovenient... It would probably be useful to me to know:
Has this bijection showed up in some other context?