Fall moed A 2015

i didn’t understand why we multiplied the weight X[q-1] and X[p-1] by two in question 1

Try explicitly writing the sums. If you don’t succeed I will add another comment with the solution. I suggest you try figuring it out by yourself before looking at the solution.