Under what conditions does an integer dividing the square of n imply that the integer must divide n?
I believe it's that the integer must be prime, but maybe not...I can see counterexamples for certain composites, like 12 divides the square of 6, but 12 does not divide 6, but I it seems like if 6 (also a composite) divides the square of a number, it will necessarily divide the number. What's different about 6 and 12? Is it that 6's prime factorization has an only odd powers?
I ask because of a response under a question about proving that if n squared is even, then n is even. One proof says essentially, "given that 2 divides square of n, since 2 is prime, 2 must divide n," but I'm not seeing so much the "since 2 is prime" part...
the simplest condition is that the number that does the dividing be squarefree.