Is there a formula that can perform this discounting of a constant cash flow to present value without having to do the whole summation?
$$DCF=\dfrac{CF_1}{(1+r)^1}+\dfrac{CF_2}{(1+r)^2}+\cdots+\dfrac{CF_n}{(1+r)^n}$$
As you can see; currently I have to discount each year's cash flow individually to get its present value. The cash flow each year is the same so is there a formula that I can use rather than punching into my calculator this whole $\frac{1}{(1+i)^1}+\frac{1}{(1+i)^2}+\frac{1}{(1+i)^3}+\frac{1}{(1+i)^n}$