i too had solved it like that except that in the relation p^m = (p+1)^n i used the arguement that p and p+1 being consecutve nos. so one of them is even and the other is odd .. hence there cannot exist natural nos. m ,n bcoz the lhs and rhs will be even and odd respectively or vice versa...