Hint $\ {\rm mod}\ 2n\!+\!1\!:\,\ 2n\equiv-1\,\Rightarrow\, \color{#c00}{n\equiv -\dfrac{1}2}\ \, $ so $\ \ 0\equiv a\!\color{#c00}{-\!n} \equiv a+\color{#c00}{\dfrac{1}2}\overset{\large\rm\ \times\ 2}\iff 0\equiv 2a\!+\!1$
Alternatively if modular fractions are unfamilar we can scale the above by $2$ yielding
$\qquad\ {\rm mod}\ 2n\!+\!1\!:\,\ \color{#c00}{2n\equiv -1},\ \ 0\equiv a-n\overset{\rm\large times\ 2}\iff 0\equiv 2a\color{#c00}{-2n}\equiv 2a\color{#c00}{+1}$
The reverse direction $\,(\Leftarrow)\,$ arises by scaling by $\,\color{#c00}{2^{-1}\equiv -n}.$
Alternatively if congruences are unfamiliar, rewriting the above using divisibility
$$\ 2n\!+\!1\mid a\!-\!n\color{#c00}\iff 2n\!+\!1\mid 2(a\!-\!n)\iff 2n\!+\!1\mid 2(a\!-\!n)+(2n\!+\!1) = 2a+1$$
because $\ 2n\!+\!1\mid \color{#0a0}{2k}\,\color{#c00}\Rightarrow\, 2n\!+\!1\mid k = -\color{#0a0}{2k}n + k(2n\!+\!1),\,$ or, since $\,2n\!+\!1\,$ and $\,2\,$ are coprime, therefore $\,2^{-1}\,$ exists mod $\,2n\!+\!1.$