On the integers of the form ²+²+2ⁿ and ₁²+₂²+2^{²}