Solving gcd problem , is $\gcd(x,y)=1$ equivalent to $ p \not \mid x $ for EVERY prime divisor of $y$

198 Views Asked by At

Given two integers $x$ and $y$,

Is $\gcd(x,y)=1$ equivalent to $ p \not \mid x $ for EVERY prime divisor of $y$

the actual question is to find all integers $k$ such that

$$\gcd(k+8,18)=1$$

thanks.

1

There are 1 best solutions below

1
On

Notice that if $k$ satisfies the condition, that is, $\gcd(k+8,18)=1,$ then since $\gcd((k+18)+8,18)=1,$ $k+18$ also satisfies the condition.

Thus, you only need to consider solutions to this equation for $0\le k<18,$ and every other solution is a multiple of $18$ plus one of these "base" solutions.