My question is rather general but I got stuck in that issue after trying to solve a trigonometric equation.
After simplifying I got this:
$$\sin \left(\frac{5x}{4}\right) + \cos x = 2$$
which is true if and only if
\begin{align*} \begin{cases} \sin \left(\frac{5x}{4}\right) &= 1\\ \cos x &= 1 \end{cases} \end{align*}
Hence
\begin{align*} \cos x &= 1 \\ \implies x &= 2\pi k, \qquad (k \in \mathbb{Z} ) \end{align*}
and
\begin{align*} \sin \left(\frac{5x}{4}\right) &= 1\\ \implies \frac{5x}{4} &= \frac{\pi}{2} + 2\pi n\\ &= \frac{2\pi}{5} + \frac{8\pi n}{5},\qquad (n \in \mathbb{Z} ) \end{align*}
Thus the solutions are
\begin{align*} 2\pi k &= \frac{2\pi}{5} + \frac{8\pi n}{5}\\ k &= \frac{1+4n}{5}, \qquad (k \in \mathbb{Z} ) \end{align*}
Here I'm stuck. Clearly the constraint of $k \in \mathbb{Z}$ is not true for all $n$'s. $n$ has to be made up of some number $m$ that makes the numerator divisible by $5$. The answer that I'm given says that $n = 5m + 1$, which makes sense but I don't know how to get there. And what if, just to say, $\displaystyle k = \frac{8+13n}{7}$?
Thanks!!
If you're not familiar with congruences, you can look at it this way: If $4n+1$ is divisible by $5$, then there is some integer $r$ with $4n+1 = 5r$, so that $4n = 5r-1$ and then $4n-4=5r-5$. Factoring both sides gives $4(n-1) = 5(r-1)$. Since $4$ and $5$ are relatively prime, it follows that $5$ divides $n-1$; that is, $n-1 = 5s$ for some integer $s$ and thus $n = 1+5s$.