College Algebra 7th Edition

We evaluate the sum: $\sum_{i=1}^{8}[1+(-1)^{i}]=[1-1]+[1+1]+[1-1]+[1+1]+[1-1]+[1+1]+[1-1]+[1+1]=0+2+0+2+0+2+0+2=8$