We are considering polynomials over a field $\mathbb{F}$. For $a \in \mathbb{F}[X]$, we have a squarefree decomposition $$ a = \prod_{i=1}^k a_i^i $$ where $\gcd(a_i,\,a_j) = 1$ for $i \neq j$ and the $a_i$ are squarefree. Existence is clear; simply group together all prime factors of the same multiplicity.
At this webpage the following is said:
If $a = \prod_{i=1}^k a_i^i$ is the square-free factorization of $a$, then it is clear that $$ a' = a \sum_{i=1}^k\frac{i\cdot a_i'}{a_i} $$ and hence that $c = \gcd(a, a')$ is $$ c = \prod_{i=2}^k a_i^{i-1} $$
I have some trouble verifying this - obviously, the given polynomial divides $\gcd(a,\,a')$, but how do I show divisibility in the other direction?
Writing $a'$ as
$$
a' = \left( \prod_{i=2}^k a_i^{i-1} \right) \sum_{j=1}^k j \cdot a_j'\, \prod_{i=1,\,i\neq j}^k a_i
$$
how can I show that there isn't some other prime factor $p\,\vert\,a$, such that
$$ p \,\mid\, \sum_{j=1}^k j \cdot a_j'\, \prod_{i=1,\,i\neq j}^k a_i $$ i.e., that $\gcd(a,\,a')$ doesn't contain more prime factors?
I guess my main problem is that I want to know about the divisibility of a sum by some prime, but prime numbers intrinsically only directly relate to products, not sums...
I'm sorry if this question has some obviously easy answer I failed to see, I'm rather uninspired as of late.
Short trick, notice that $p$ would divide all the summands except at most one. Hence we are reduce to $p$ dividing one of the summands.
For more details, read the following: