Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a similar trivial equation for solving $\sum^h_{k=0}(m^k)$ like for solving $\sum^h_{k=0}(k) = \frac{n(n+1)}{2}$ as I want to evaluate the smallest h which when used will fulfill the equation $n \leq \sum^h_{k=0}(m^k)$

share|cite|improve this question
up vote 3 down vote accepted

The sum $1+m+m^2+\cdots+m^h$ is a finite geometric series. It has (for $m\ne 1$) the sum $$\frac{m^{h+1}-1}{m-1}.$$

However, for your application, this is not directly useful, and estimates will be necessary. The strategy depends on the sizes of the numbers involved.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.