Given,
$$a_{n+1}=a_n^2-2a_n+2$$
Rewrite as
$$a_{n+1}-1=a_n^2-2a_n+1$$
$$a_{n+1}-1=(a_n-1)^2$$
Let $$b_n=a_n-1$$
Then $$b_{n+1}=b_n^2$$
Since $$a_1=3$$
we have $$b_1=2$$
Therefore,
$$b_2=2^2=2^{2}$$
$$b_3=(2^2)^2=2^{2^2}$$
$$b_4=(2^{2^2})^2=2^{2^3}$$
Continuing,
$$b_n=2^{2^{\,n-1}}$$
Hence,
$$a_n=1+2^{2^{\,n-1}}$$
Now,
$$1-\frac1{a_n}=\frac{a_n-1}{a_n}$$
$$=\frac{2^{2^{\,n-1}}}{1+2^{2^{\,n-1}}}$$
Let
$$m_n=2^{2^{\,n-1}}$$ Then $$m_{n+1}=m_n^2$$
and
$$1-\frac1{a_n}=\frac{m_n}{1+m_n}$$
Therefore,
$$P_N=\prod_{n=1}^{N}\frac{m_n}{1+m_n}$$
Substituting $$m_n=2^{2^{\,n-1}}$$ gives
$$P_N=\frac2{1+2}\cdot\frac{2^2}{1+2^2}\cdot\frac{2^4}{1+2^4}\cdots\frac{2^{2^{N-1}}}{1+2^{2^{N-1}}}$$
Now use the identity
$$x^{2^N}-1=(x-1)(x+1)(x^2+1)(x^4+1)\cdots(x^{2^{N-1}}+1)$$
Putting $$x=2$$ we get $$2^{2^N}-1=(2-1)(2+1)(2^2+1)(2^4+1)\cdots(2^{2^{N-1}}+1)$$
Since $$2-1=1$$ $$\prod_{k=0}^{N-1}(1+2^{2^k})=2^{2^N}-1$$
Therefore,
$$P_N=\frac{2^{1+2+4+\cdots+2^{N-1}}}{2^{2^N}-1}$$
The exponent sum is
$$1+2+4+\cdots+2^{N-1}=2^N-1$$
Hence,
$$P_N=\frac{2^{2^N-1}}{2^{2^N}-1}$$
Taking limit as
$$N\to\infty$$
$$P=\lim_{N\to\infty}\frac{2^{2^N-1}}{2^{2^N}-1}$$
Divide numerator and denominator by
$$2^{2^N}$$
$$P=\lim_{N\to\infty}\frac{\frac12}{1-\frac1{2^{2^N}}}$$
$$=\frac{\frac12}{1-0}$$
$$=\frac12$$