I am following the example from this website to learn: An additional example of a series solution

How does he pull out the n=0 and n=1 terms to get: -2a2-6a3x+a1x-a0-a1x?

It's driving me insane, please help. If anyone could listen step for step, how he got that number from the summations I would greatly appreciate it.