If $a$ and $b$ be the roots of the quadratic equation $x^2-6x+4=0$ then find the value of given expression.
Note that $a+b=6$ and $ab=4$, by Vieta's theorem. On the other hand, from $$(a^{n-1}+b^{n-1})(a+b)=(a^n+b^n)+ab(a^{n-2}+b^{n-2})$$ we obtain the recursion $P_n-(a+b)P_{n-1}+ab P_{n-2}=0$, so that $$P_0=2,\quad P_1=6,\qquad P_n-6P_{n-1}+4P_{n-2}=0\quad(n\geq2)\ .$$ Using the "Master Theorem" it is possible to obtain an explicit representation of $P_n$ that should allow to compute the expression in question.