February 27th, 2008, 6:41 pm
Nice solution cm! Here is another, more combinatorial argument: Let C(n) be the number of ways of choosing 2 things out of a set of n. Of course, C(n)=n(n-1)/2. But we can also calculate C(n) thusly: partition the set into two subsets, say A and B, of sizes m and n-m resp. Then we can pick 2 elements in 3 different ways: both from A, both from B or one from A and one from B. This gives C(n)=C(m)+C(n-m)+m(n-m). Same recursive relation as earlier, same initial condition, so we must have the same solution! Ergo, sum=C(n)=n(n-1)/2.