These are regularized sums. The first one is actually the one that you already wrote in the first line (adding zero doesn't do anything). The second turns out to regularize to zero. Read up on zeta regularization and watch these excellent videos
https://www.youtube.com/watch?v=w-I6XTVZXww
https://www.youtube.com/watch?v=0Oazb7IWzbA
And you can generalize $\sum_{n=0}^\infty n^k = \zeta(-k)$ where $\zeta$ is the Riemann zeta function - you can see from the definition of this function, that all we do is to put in a number outside the convergence domain of original series, so the result is not a true sum of the series (which diverges) but analytic continuation that extends the domain beyond what the series can do.