Let $\mathcal{A} = \left\{1,2,...,M\right\}$, and let $N>M$ be some natural number.
A configuration is a string of $N$ numbers where each of the $N$ numbers takes values in $\mathcal{A}$. For example, if $\mathcal{A} = \left\{1,2\right\}$, and $N=3$, then possible configurations are \begin{align} 1,1,1\\ 1,1,2 \end{align} and so on. I want to count the number of possible configurations excluding permutations. So, for the previous example, this number is equal to $4$, where the possible configurations are (of course, we can choose other permuted configurations) \begin{align} 1,1,1\\ 1,1,2\\ 1,2,2\\ 2,2,2 \end{align}