Starting from the idea that $$\sum_{n=1}^\infty n = -\frac{1}{12}$$ It's fairly natural to ask about the series of odd numbers $$\sum_{n=1}^{\infty} (2n - 1)$$ I worked this out in two different ways, and get two different answers. By my first method $$\sum_{n=1}^{\infty} (2n - 1) + 2\bigg( \sum_{n=1}^\infty n \bigg) = \sum_{n=1}^\infty n$$ $$\therefore ~\sum_{n=1}^{\infty} (2n - 1) = - \sum_{n=1}^\infty n = \frac{1}{12}$$ But then by the second $$\sum_{n=1}^{\infty} (2n - 1) - \sum_{n=1}^\infty n = \sum_{n=1}^\infty n$$ $$\therefore ~\sum_{n=1}^{\infty} (2n - 1) = 2 \sum_{n=1}^\infty n = - \frac{1}{6}$$ Is there any reason to prefer one of these answers over the other? Or is the sum over all odd numbers simply undefined? In which case, was there a way to tell that in advance?
I'm also curious if this extends to other series of a similar form $$\sum_{n=1}^{\infty} (an + b)$$ Are such series undefined whenever $b \neq 0$?