Let g(x)=(x−1)nlogcosm(x−1);0<x<2, m and n are integers, m≠0,n>0, and let p be the left hand derivative of |x−1| at x=1. If limx→1+g(x)=p then