I would like to be able to express the coefficients of $(2+x+x^2)^n$ in terms of the trinomial coefficients studied by Euler, ${n \choose \ell}_2 = [x^\ell](1+x+x^2)^n$ where $[x^\ell]$ denotes the coefficient of $x^\ell$. The triangle of these numbers is given in OEIS A027907 and begins \begin{matrix} 1 \\ 1 & 1 & 1 \\ 1 & 2 & 3 & 2 & 1 \\ 1 & 3 & 6 & 7 & 6 & 3 & 1\\ 1 & 4 & 10 & 16 & 19 & 16 & 10 & 4 & 1 \end{matrix} The triangle $t(n,\ell) = [x^\ell](2+x+x^2)^n$ I want to relate to the ${n \choose \ell}_2$ begins \begin{matrix} 1 \\ 2 & 1 & 1 \\ 4 & 4 & 5 & 2 & 1 \\ 8 & 12 & 18 & 13 & 9 & 3 & 1\\ 16 & 32 & 56 & 56 & 49 & 28 & 14 & 4 & 1 \end{matrix} I'm hoping for a general result of the form $t(n,\ell) = \left(\text{function of ${m \choose k}_2$}\right)$ with $m \le n$ and $k \le \ell$. I see patterns for certain columns and diagonals, and recurrence relations within the triangle, but not yet a general expression in terms of trinomial coefficients.
One note: The trinomial coefficients can be worked out in terms of binomial coefficients, but I'd like an expression in ${n \choose \ell}_2$ instead, as this is the first step in a larger program: Eventually I want to relate the coefficients of $(2+x+\cdots+x^k)^n$ to ${n \choose \ell}_k = [x^\ell](1+x+\cdots+x^k)^n$.