I'm refreshing my brain by going through some chapters of CLRS (algorithms bible). One of the first example problems in the appendix (A.1) is showing the harmonic series. But they do a simplification of the fraction that leaves me dumbfounded. I understand the sum, but not how they went from this fraction:
$$\frac{1}{x(x+1)}$$
to this one:
$$\frac{1}{x} - \frac{1}{x+1}$$
I can work it backwards fine, but starting from $\frac{1}{x(x+1)}$ I can't wrap my head around it! What am I forgetting?
The original problem was to find an equation for this harmonic series:
$$\sum_{x=1}^n \frac{1}{x(x+1)}$$
Write $$\frac{1}{x(x+1)}=\frac{A}{x}+\frac{B}{x+1}$$ and solve for $A$ and $B$.