I have the following function (pdf of geometric distribution) $f(k)=(1-p)^{k-1}p$ for $k=1,2,3...$ and $p\in[0,1]$. I'm looking for a $p\in[0.25,1]$ which maximizes $\sum_3 f(k)$. Ignore the $3$ in the sum (...it's related to calculating a p-value). All I'd like to know if, by inspection, one can see that $p=0.25$ maximizes the sum of $(1-p)^{k-1}p$ for $k$ going possibly to infinity?