Problem

Source: Moldova TST 2020

Tags: trigonometry, algebra, system of equations, parameterization



Let $n$ be a natural number. Find all solutions $x$ of the system of equations $$\left\{\begin{matrix} sinx+cosx=\frac{\sqrt{n}}{2}\\tg\frac{x}{2}=\frac{\sqrt{n}-2}{3}\end{matrix}\right.$$On interval $\left[0,\frac{\pi}{4}\right).$