Consider the recurrence relation
$$P(1)=1$$ $$P(2)=x$$ $$P(n)=x\cdot P(n-1)+P(n-2)$$
The first few polynomials are $$1,x,x^2+1,x^3+2x,x^4+3x^2+1$$
The polynomials occur in the convergents of the number with continued fraction $[x,x,x,\cdots]$
Is there a closed form for $P(n)$ for all $n\in\mathbb N$ ?