How to prove all numbers which divided by square numbers are also divided by square numbers of prime?

43 Views Asked by At

I'm solving algorithm problem. In this problem, there are max and min.

Between max and min, which number is not divided by square number? is problem.

When I solving this problem, many users solved using square numbers of a prime number.

But I don't understand why I can use square numbers of a prime number instead of normal square numbers.


EX) MAX = 10, MIN = 20

Normal square numbers = $10^2, 11^2 ... 20^2$

Prime square numbers = $11^2, 13^2 ... 19^2$

Users said that I can solve which numbers are not divided by square numbers using prime square numbers.


Can you explain why it can be?

2

There are 2 best solutions below

2
On

HINT

By FTA $\forall n\in \mathbb{N}$ we have that $n=\prod p_i^{a_i}$.

2
On

If $m^2|n$, take $p$ prime, $p|m$. Then $p^2|m^2$ and $p^2|n$.