(4)A useful formula, here and in the following, is ∑ n=1Nn2 = N(N + 1)(2N + 1)∕6.