如果把上面的過程,一般化,
設兩等差數列 <a_n>, <b_n> 滿足 \displaystyle\frac{a_n}{b_n}=\frac{p{\color{red}{n}}+q}{u{\color{red}{n}}+v}, \forall n\in\mathbb{N},
可令 a_n = \left(p{\color{red}{n}}+q\right)t, b_n=\left(u{\color{red}{n}}+v\right)t,其中 t\neq0,
則 \displaystyle\frac{a_1+a_2+\cdots+a_n}{b_1+b_2+\cdots+b_n} = \frac{\displaystyle\frac{n\left(a_1+a_n\right)}{2}}{\displaystyle\frac{n\left(b_1+b_n\right)}{2}}=\frac{a_1+a_n}{b_1+b_n} = \frac{\displaystyle\frac{\left(p\cdot{\color{red}{1}}+q\right)+\left(p\cdot{\color{red}{n}}+q\right)}{{\color{red}{2}}}}{\displaystyle\frac{\left(u\cdot{\color{red}{1}}+v\right)+\left(u\cdot {\color{red}{n}}+v\right)}{{\color{red}{2}}}} = \frac{\displaystyle p\cdot{\color{red}{\left(\frac{1+n}{2}\right)}}+q}{\displaystyle u\cdot{\color{red}{\left(\frac{1+n}{2}\right)}}+v}