This is a example of a general method. Richardson extrapolation is one example. Define a sequence $$a(n) = \sum_{k=1}^n 1/k^2$$ and the first few values of $a(2^k)$ strongly suggest that $a(n) \sim c_0 + c_1/n$. In general, there will be other terms. So our ansatz is that $$s(n) := a(n) \sim c_0 + c_1/n + c_2/n^2 + \dots$$ asymptotically. We can improve the convergence by eliminating the $1/n$ term. This leads to $$s_1(n) := (2s(2n) - s(n))/(2-1).$$ The next step is to eliminate the $1/n^2$ term using $$s_2(n) := (4s_1(2n) - s_1(n))/(4-1).$$ We continue and eliminate one term at a time. Each time the convergence is better. If the asymptotic expansion is different, we just use similar steps to eliminate one term at a time.