计算 $D=\left|\begin{array}{cccccc}
1 & 2 & 3 & \cdots & n-1 & n \\
2 & 2 & 3 & \cdots & n-1 & n \\
3 & 3 & 3 & \cdots & n-1 & n \\
\vdots & \vdots & \vdots & & \vdots & \vdots \\
n-1 & n-1 & n-1 & \cdots & n-1 & n \\
n & n & n & \cdots & n & n
\end{array}\right| .$