I'm having trouble understanding how to analyze these two series for their Big O representations.
I can get the correct answer for this series
$1+2+3+4+...+N$ is $O(N^2)$, which I found by finding the Big O for the equation $N(N+1)/2$.
Apparently the correct answer for the following question is $O(N)$, but my result obviously differs substantially.
$1+5+25+125+...+N$ is $O(5^N)$
I figured that since the series equation is just $(5^N-1)/4$, I can just find the Big O for that equation, which would be $O(5^N)$
Where is my understanding here flawed?