Can someone explain this one (both a and b... I can't get the algebra to work out)?
I don't know how to explain that they are counting the same thing, but I can explain the algebra.
First, looking at the left side you have C(2n,2) which equals $ \frac{(2n)!}{(2!*(2n-2)!} $. This can be "simplified" to $ \frac{(2n*(2n-1))}{2} $. which further simplifies down to $ 2n^2-n $. The right side starts at $ 2*C(n,2)+n^2 $. so $ 2*(\frac{n!}{(2!*(n-2)!)})+n^2 $. Simplifing this leads to $ \frac{(2*n*(n-1))}{2} + n^2 $ which goes to $ n^2 - n + n^2 $ which ofcourse equals $ 2n^2 - n $. (someone that understands how to make the formulas look nice, feel free to do so).