Let M = { 1 , … , n } {\displaystyle {}M=\{1,\ldots ,n\}} . For 1 {\displaystyle {}1} , there are n {\displaystyle {}n} possible images, for 2 {\displaystyle {}2} , there are n − 1 {\displaystyle {}n-1} possible images remaining, for 3 {\displaystyle {}3} , there are n − 2 {\displaystyle {}n-2} possible images remaining, etc. Therefore, there are altogether
possible permutations.