Looks like someone in the comments pointed out the confusion between $a$ and $n$. With that cleared up, you need to prove the base case; show that the equality holds for $n=1$. Once that's done, make your induction hypothesis:
Suppose $\sum_{i=0}^{n-1} a^i = \frac{a^n-1}{a-1}$ holds for all $n \in \{1,2,\ldots , k\}$.
Now you want to show that equality holds for $n = k+1$, so evaluate $$\sum_{i=0}^{(k+1)-1} a^i = \sum_{i=0}^{k} a^i $$ The trick here would be to write this quantity in a meaningful way (one that lets you apply the induction hypothesis). So in this case I'd recommend writing $$\sum_{i=0}^{k} a^i = \left(\sum_{i=0}^{k-1} a^i \right)+ a^k $$ You are in a position to say something about $\sum_{i=0}^{k-1} a^i$ with the induction hypothesis. Can you proceed from here?