Les $A$ be an integral domain[1] and $S\subset A$. The set $gcd(S)$ is the set of elements $\delta$ satisfying the two following properties :
- $\delta|s$ for all $s\in S$
- if $d|s$ for all $s\in S$, then $d|\delta$.
Let $a\in A$. I want to prove the set equality $a gcd(S)=gcd(aS)$.
I am okay with the inclusion $gcd(aS)\subset a\, gcd(S)$. For the reverse inclusion, let $\delta\in gcd(S)$. In want to prove that $a\delta\in gcd(aS)$.
For each $s\in S$, since $\delta|s$, we have $a\delta|s$. So $a\delta$ checks the first property.
Now let $d\in A$ such that $d|as$ for every $s\in S$.
QUESTION: how to prove that $d|a\delta$ ?
[1] Or a unique factorization domain ? What is the most general in which my property is true ?
EDIT : This question is different from that one : Prove that $(ma, mb) = |m|(a, b)\ $ [GCD & LCM Distributive Law] In this question we empathize the fact that the gcd is a set, not a number. The given answers are more general.
You can prove the inclusion $a\gcd(S)\subseteq\gcd(aS)$ if you assume $\gcd(aS)\neq\varnothing$; this is true in a UFD.
Let $\delta\in\gcd(S)$ and $d'\in\gcd(aS)$. For every $s\in S$, we have $\delta\mid s$, hence $a\delta\mid as$, from which $a\delta\mid d'$. Let $u\in A$ such that $d'=ua\delta$. By the inclusion $\gcd(aS)\subseteq a\gcd(S)$ (that you already proved), $u\delta\in\gcd(S)$, hence $u\delta\mid\delta$ from which $u\delta a\mid\delta a$, that's $d'\mid\delta a$.