If m−x is a factor of the expression −x2+161pm2, where p and m are constants and m>0, what is the value of p?
−16
−161
161
16