Find det A for
A = \begin{bmatrix}1&2&3&4&5\\0&2&3&4&5\\0&0&3&4&5\\0&0&0&4&5\\0&0&0&0&5\end{bmatrix}.
Note that A is an upper triangular matrix. To have a nonzero product, a pattern must contain the first component of the first column, then the second component of the second column, and so on. Thus, only the diagonal pattern P makes a nonzero contribution. We conclude that
det A = (\text{sgn } P)(\text{prod } P) = (−1)^0 1 · 2 · 3 · 4 · 5 = 5! = 120.