The following answer provides a proof that $\log_7{n}$ is either an integer or irrational. https://math.stackexchange.com/a/179198
In a comment, the author writes:
Since the only prime in the prime factorization of $7^a$ is 7 and prime factorizations are unique, $n^b$ and therefore n, can't contain any other primes.
I am confused how he makes this conclusion (bolded). So I know that $n^b$ is made up of a bunch of $7$s and this is its prime factorization. But how can we extend that conclusion to $n^1$?