Let $n,k$ be given positive integers and $n\ge k$. Let $A_i, i=1, 2, \cdots, n$ be given real numbers. If for all real numbers $x$ we have $$A_{1}\cos{x}+A_{2}\cos{(2x)}+\cdots+A_{n}\cos{(nx)}\le 1$$ Find the maximum value of $A_{k}$.
I don't know if this question has been studied
If $n=2$ it is easy to solve it.
COMMENT
May be this idea can help:
We use following identity:
$$\sin^2(x)+\sin^2(2x)+\sin^2 (3x)+ . . .+\sin^2(nx)=\frac{n\sin(x)-\sin(nx)\cos(n+1)x}{2\sin x}$$
Taking derivative of both sides we get:
$$2\sin(x)\cos(x)+4\sin(2x)\cos(2x)+6\sin(3x)\cos(3x)+ . . . 2n\sin(nx)\cos(nx)=\big(\frac{n\sin(x)-\sin(nx)\cos(n+1)x}{2\sin x}\big)'\leq 1$$
We solve derivative $\leq 1$, we get a relation between n and x which may be used to find maximum value of $A_k$. In fact the proble can be reduced to: If:
$\big(\frac{n\sin(x)-\sin(nx)\cos(n+1)x}{2\sin x}\big)'\leq 1$
Find maximum of $A_n=f(x)= 2n\sin(nx)$