How do I solve limits such as these? The $...$ always make it seem hard to me. From what I can understand from them, they both are $0/0$ limits, and I should be looking to write the numerator in such a way that the denominator should simplify it somehow. For the first I tried writing each element from the numerator as $(a-1)$ where $a = 1, x, x^2 ... x^n$ so that I can simplify the denominator eventually, but I didn't get much out of that. I'm guessing these two are solved in similar ways, hence why I posted them both. Any clues/hints I can get would be appreciated.
$$\lim \:_{x\to \:1}\frac{1+x+x^2+...\:+x^n-\left(n+1\right)}{x-1}$$ $$\lim _{x\to 1}\frac{x+x^2+...\:x^n-n}{x+x^2+...\:+x^m-m}$$
$n,\:m\:\in \mathbb{R}$