I need to integrate: pn[1-F(p)]N-1f(p) dp

I should probably explain the question in more detail..

This is an economics question about non-sequential search. I'm stuck when it comes to calculating the value of the expected minimum price after N visits Ep(N)= integral of pg(p) within limits of the lowest p and highest p.
I have found g(p) which is Nf(p)[1-F(p)]^N-1

Now substituting this into the above i must integrate pN[1-F(p)]^N-1 f(p) dp

I think I am supposed to integrate by parts, but I am not sure what to do. Should I use p as U and the rest of the equation as V'?