Solving inequality with logarithm

I'm trying to solve this inequality for N where c, p, a are constants. For the 3rd equation, I flipped the inequality because I multiplied both sides by -1. But I'm not sure if the inequality changes when taking the log of both sides?

Taking the log of each side will not switch the inequality sign. Log(greater number) will still be greater than log(lesser number). What logging each side will do is cut down the value difference between the lesser side and greater side. Example: 1000>>0 but 6.9078 = log(1000) > log(10) =2.3026.