We know that if a series is convergent, then we can perform grouping on the series and the resulting series would still be convergent.
However,for an arbitrary series, grouping may not always give the same result. E.g. $a_n=(-1)^{n+1}$ is the non-convergent series
$1+(-1)+1+(-1)+...$
which can be grouped to
$(1-1)+(1-1)+...$ which converges to 0.
So my question is, in this link Establish convergence of the series: $1-\frac{1}{2}-\frac{1}{3}+\frac{1}{4}+\frac{1}{5}+\frac{1}{6}-...$ the solutions have grouped the terms in the series (before knowing whether the series converges or not) and showed it is convergent. How is that possible?