I'm born for regret minimization

No content.

Statement as follows:

g,kZ with gcd(g,k)=1, it holds tZ aZ such that gcd(t,g+ak)=1.

Proof:

Fix such g,kZ and arbitrary tZ. Factorize t=i=1npiei.

Consider piei for any 1in:

If pik and pig, then gcd(piei,g+ak)=1 for any aZ.

If pik, then gcd(piei,k)=1. Proceed as follows:

Let set T={aN{0}:a<piei} and S={g+ak:aT}.

Let function f:ST by g+akg+akmodpiei.

If g+a1kg+a2kmodpiei (and we know gcd(piei,k)=1), then piei(a2a1).

This then implies a2=a1 by definition of T, so f is injective.

By injectivity, we have T=f(S), which then implies aiT such that g+aik1modpiei and so gcd(g+aik,piei)=1.

Finally, by Chinese Reminder Theorem (which I completely forget now), we get aZ such that aaimodpiei for all i where pik. And for this a, one can check gcd(g+ak,t)=1.