Ok then, the n is even part of your function will give all the positive multiples, now try something similar for n odd. I don't know how to give you a decent hint without giving it away, but basically, the odd case is very similar to the even case, except with a negative sign, and a little change to the n term to make sure it's divisible by 2.