I was looking up to some previous papers of a competitive exam when I found the following problem: $$\lim_{n\to\infty}\left(2^n+n\cdot2^n\sin^2{\frac{n}{2}}\right)^{\left(\frac{1}{2n-n\cos{\frac{1}{n}}}\right)}$$
I proceeded as follows: $$\require{cancel}\lim_{n\to\infty}\left(2^n+n\cdot2^n\sin^2{\frac{n}{2}}\right)^{\left(\frac{1}{2n-n\cos{\frac{1}{n}}}\right)}\\ =\lim_{n\to\infty}2^\left(\frac{1}{2-\cos{\frac{1}{n}}}\right)\cdot\lim_{n\to\infty}\left(1+n\cdot\sin^2{\frac{n}{2}}\right)^{\left(\frac{1}{2n-n\cos{\frac{1}{n}}}\right)}\\ =\cancelto{2^1=2}{\lim_{n\to\infty}2^\left(\frac{1}{2-\cos{\frac{1}{n}}}\right)}\cdot\lim_{n\to\infty}\left(1+n\cdot\sin^2{\frac{n}{2}}\right)^{\left(\frac{1}{2n-n\cos{\frac{1}{n}}}\right)}\\ =2\cdot\lim_{n\to\infty}\left(1+n\cdot\sin^2{\frac{n}{2}}\right)^{\left(\frac{1}{2n-n\cos{\frac{1}{n}}}\right)}$$
After this step, my intuition was that the answer is $2$ as this was an integer-only answer type question. But, I cannot seem to proceed after this step. I did apply the L'hospital method after this, but, I didn't go far. A little bit of hint/help would be very kind.
P.S.: WolframAlpha did confirm my intuition (see here).