I have the following question: Let $n$ be a positive integer and $d$ be divisor of $n$. Use Dirichlet's theorem to show that there exists an integer $k$, where $1\le k\le d-1$ such that the number $m:=1+\frac{nk}{d}$ is coprime to $n$.
My idea is to show that if we can find such a $m$ that is prime, then $m$ is coprime to $n$ necessarily. Let us suppose on the contrary for all $k=1,\cdots, d-1$, the number $m$ is not prime. Then (perhaps?) This will show that there exists finitely many numbers of the form $1+\frac{nk}{d}$ that is not prime, contradicting Dirichlet's theorem. I am stuck here. Any ideas how to proceed?
Using a sledgehammer to kill a flea...
Hint: by Dirichlet's theorem, there is some $k$ (not necessarily $\le d-1$) such that $p = 1 + nk/d$ is prime. Note that if $k' \equiv k\; (\bmod d)$, $1 + n k'/d \equiv p\; (\bmod n)$.