thank you to both of you. i think Дьявол has proved the cases of +a,-b and -a,-b.
"For n = 4, for example, you would start with gcd(2ab(2a2 + 3ab + 2b2),a+b) "
Here is what I have:
Let say p|2ab(2a2 + 3ab + 2b2), this could be the cases where
case1: p|2 or p|a but not b, and p does not divide (2a2 + 3ab + 2b2)
OR
case2: p|2 or p|b but not a, and p does not divide (2a2 + 3ab + 2b2)
clearly in both cases if p|(a+b), this is the cases when p|2. so p=1,2.
If both a,b are odds. let a=2k+1, b=2p+1, then a2=4k2+4k+1, b2=4p2+4p+1, ab=4kp+2(k+p) +1.
2(4kp+2(k+p)+1)(8k2+8p2+14(k+p)+12kp+7) which is divisible by 2, so does a+b, so gcd=2.
If only one is odd, let a=2k+1, b=2p, then a2=4k2+4k+1, b2=4p2, ab=2p(2k+1).
2(2p)(2k+1)(8k2+4p2+2(4k+p)+2kp+2)=8(p)(2k+1)(4k2+2p2+(4k+p)+kp+1) which is divisible by 8, but a+b=2(k+p) +1 is only divisible by 1, so gcd=1.
Am i doing this correctly?