`n * (n - 1)`  should probably be in parens to make clear that an even number is being divided by 2.