1. Check if parallel: direction vectors \(\mathbf{d}_1 = \langle 2, 1, 3 \rangle\) and \(\mathbf{d}_2 = \langle 1, -1, 1 \rangle\) are not scalar multiples (\(2/1 \neq 1/(-1)\)). So the lines are not parallel.
2. Direction of common perpendicular: \[ \mathbf{n} = \mathbf{d}_1 \times \mathbf{d}_2 = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ 2 & 1 & 3 \\ 1 & -1 & 1 \end{vmatrix} = \mathbf{i}(1 - (-3)) - \mathbf{j}(2 - 3) + \mathbf{k}(-2 - 1) = \langle 4, 1, -3 \rangle. \] Modulus: \(|\mathbf{n}| = \sqrt{4^2 + 1^2 + (-3)^2} = \sqrt{16 + 1 + 9} = \sqrt{26}\).
3. Vector connecting given points on each line: \[ \mathbf{a}_2 - \mathbf{a}_1 = \langle 2, 1, 0 \rangle - \langle 1, 0, -1 \rangle = \langle 1, 1, 1 \rangle. \] 4. Compute the scalar triple product: \[ (\mathbf{a}_2 - \mathbf{a}_1) \cdot \mathbf{n} = \langle 1, 1, 1 \rangle \cdot \langle 4, 1, -3 \rangle = 4(1) + 1(1) - 3(1) = 2. \] Since the triple product \(2 \neq 0\), the lines do not intersect. Therefore, the lines are skew.
5. Shortest distance: \[ D = \frac{|(\mathbf{a}_2 - \mathbf{a}_1) \cdot (\mathbf{d}_1 \times \mathbf{d}_2)|}{|\mathbf{d}_1 \times \mathbf{d}_2|} = \frac{2}{\sqrt{26}} = \frac{\sqrt{26}}{13}. \]