\section{Diophantine approximation}\label{sec:diophapprox} The following result is often stated with the condition that $Q$ be an integer. Let us prove it for all real $Q\geq 1$. (This variant is of course well-known.) \begin{lemma}[Dirichlet's approximation theorem]\label{lem:dirithm}\index{Dirichlet's approximation theorem|boldindex} Let $\alpha\in \mathbb{R}$, $Q\geq 1$. Then there are integers $a$, $1\leq q\leq Q$ with $(a,q)=1$ such that \begin{equation}\label{eq:kukulir} \left|\alpha - \frac{a}{q}\right|< \frac{1}{q Q}.\end{equation} \end{lemma} If only a non-strict inequality $\leq$ is desired in (\ref{eq:kukulir}), the proof below can be modified so as to give a strict inequality for $q$, that is, $q 1/q q_1$, and so $q + q_1 > Q$. If $q_1> Q/2$, let $a'/q' = a_1/q_1$. If $q_1\leq Q/2$, then $q>Q/2$, and we may let $a'/q' = a/q$. \end{proof}