Factorial symbols in LaTeX

Symbol Command
$3!$ 3!
$!3$ !3
$3!!$ 3!!

LaTeX combinatorics

LaTeX