For any k∈Sk\in Sk∈S, applying the condition with i=j=ki=j=ki=j=k gives (k+k)/gcd(k,k)=2(k+k)/\gcd(k,k)=2(k+k)/gcd(k,k)=2. Thus 2∈S2\in S2∈S.