because the power on each factor of 30 is 1. And each factor which appears on N^2 must appear at least once, and each factor of 30 appears only once, so it must be true that 30 is a factor of N if 30 is a factor of N^2.
For a counter example, 90=2*3^2*5, here the power on 3 is 2, more than 1. Here 90 is a factor of 30^2 but not 30.