$$\text{gcd}(d,40) = 5$$
where $d$ has four digits. Determine the values $d$ can take.
Perhaps we can rewrite it as
$$\text{gcd}(d,40) = \text{gcd}(40,d \space (\text{mod 40}))$$
Regards
$$\text{gcd}(d,40) = 5$$
where $d$ has four digits. Determine the values $d$ can take.
Perhaps we can rewrite it as
$$\text{gcd}(d,40) = \text{gcd}(40,d \space (\text{mod 40}))$$
Regards
HINT:
We want $d$ such that $$\gcd(d,2^3\cdot5)=5.$$ This means that $d$ can have any prime factorisation (with four digits), but must have a factor of $5$ and cannot be even...