What you have, initially, [itex]\sum_{n= 1}^\infty na_n x^{n+ 1}= \sum_{n= 0}^\infty a_nx^n[/itex].
(Notice that the left sum starts at n= 1. That is because if when n= 0, the term is "[itex]0x^0= 0[/itex].) You say you tried "to set the coefficients for the corresponding powers equal, but when I do I don't get the correct answer" but you don't say what you tried what answer you got or what the correct answer you should have gotten.
You could try writing out the first few terms of each sum: [itex]a_1x^2+ 2a_2x^3+ 3a_3x^4+ \cdot\cdot\cdot[/itex] on the left and [itex]a_0+ a_1x+ a_2x^2+ a_3x^3+ a_4x^4+ \cdot\cdot\cdot[/itex] and since those are equal we must have [itex]a_0= 0[/itex], [itex]a_1= 0[/itex], [itex]a_2= a_1[/itex], [itex]a_3= 2a_2[/itex], [itex]a_4= 3a_3[/itex], etc.
Generally, we can compare corresponding coefficients for [itex]\sum_{n= 1}^\infty na_n x^{n+ 1}= \sum_{n= 0}^\infty a_nx^n[/itex] as you do by letting j= n+ 1 in the left sum and j= n in the sum on the right:
[itex]\sum_{n= 1}^\infty na_n x^{n+ 1}= \sum_{j= 2}^\infty (j-1)a_{j-1}x^j= \sum_{j= 0}^\infty a_j x^j[/itex]. Since the left sum does not begin until j= 2, for j= 0 we have [itex]a_0= 0[/itex] and for i= 1,[itex]a_1= 0[/itex]. For j> 1, [itex](j-1)a_{j-1}= a_j[/itex]. In particular, [itex]a_2= 1a_1= 0[/itex], [itex]a_3= 2a_2= 2(0)= 0[/itex], etc.