There is a sequence $x_1, x_2, \ldots , x_n$. A valid labeling from $[1, k]$ is defined as for any $i, j \in [1, n]$, such that $i < j$: $$ \mathrm{label}[i] \leq \mathrm{label}[j]. $$ For $n=2$ and $k = 2$, a valid labeling would be :- $$ 1 \;\;1,\\ 1 \;\;2,\\ 2 \;\;2. $$
How many such labelings are possible. I tried to find if there is a recurrence. Following attempt at it does not work. $$ F(n, k) = F(n-1, k) + F(n-1, k-1) $$ $$ F(1, k) = k\\ F(n, 1) = 1 $$
However that will include duplicates as well.
Please help.
Thanks