Question: Let $\gcd(a,n)=d_1\gt 1$ and $\gcd(b,n)=d_2\gt 1$, given that $\gcd(d_1,d_2)=1$, find $\gcd(a+b,n)$.
My try Since $\gcd(a,n)=d_1$ so $a=pd_1$ and since $\gcd(b,n)=d_2$ so $b=qd_2$.
My guess is since the greatest common divisors of $a,b$ have gcd =1, so $\gcd(a+b,n)=1$. But I cant prove it in a compact and well defined fashion
Can someone please help me out?
The question boils down to this:
How is $\gcd(a+b,n)$ related to $\gcd(a,n)$ and $\gcd(b,n)$?
As counter-examples to $\gcd(a+b,n)=1$, let $n=ab(a+b)$, for example $30$.