\[\sum_{k=0}^{m-1}(a+dk)^{n}={\frac{d^{n}}{n+1}\left(B_{n+1}\left(m+\frac{a}{d}%
\right)-B_{n+1}\left(\frac{a}{d}\right)\right)},\]