Sum of integral values of n such that the equation sin x (2 sin x + cos x) = n, has at least one real solution is