There are $n-1$ choices for the first element of the second row since it cannot be 0.
Now, consider the second element of the second row. If the first element of the second row is 1, then there are $n-2$ choices for the second element (it cannot be 0 or 1). If
Show more…