To elaborate a bit.
It's better to know what the n stands for. I tend to think n as in "the number of terms in the sequence" (apparently some don't agree with this? But stick to one definition and you're good).
The nth term in a geometric sequence is ar^(n-1). As a gut check, n=1 should give a, i.e. the first term in the sequence.
The sum of first n terms in a geometric series is a*(r^n - 1)/(r-1). Again, gut check with n=1 should give you the sum of the first 1 term, which is a convoluted way of saying the first term is a.
Note: Beware of where the brackets are/are not.
Moral of the story though, if in doubt, plug in some obvious values of n, and see if the formula yields what you expect.
(in particular, the questions with years often confuse people, so a sanity check is immensely useful)
To drive home mqb's point, there are n+1, not n, terms in the sequence 0, 1, 2, ..., n. Again, if you aren't sure about this, plug in some easy values of n for sanity check.