Your derivative seems correct, I cannot see anything wrong with what you have written. 0 raised to the power of anything (except zero) equals zero and so the numerator will always be zero and the summation will just be a sum of zeros which will equal zero. Maybe you wrote down the question incorrectly?