A variational approach to the equation $$\Delta u + Ku^{\frac{{n + 2}}{{n - 2}}} = 0$$ in R n