Fuente TeX:
\binom{n}{2}(\#\bar{A})^{n-2}