$$(1-x+x^2)^{10}=a_0+a_1\cdot x +a_2\cdot x^2 + a_3\cdot x^3 + \cdots + a_{20}\cdot x^{20}$$
$$\implies a_0 + a_2 +a_4 +a_6 + \cdots+ a_{18} + a_{20}=?$$
I know how to expand binomials of $(a+b)^n$ type, but this one has three terms.
I can think of $(1-x+x^2)^{10}$ as $\bigr((1-x)+x^2 \bigl)^{10}$ in order to make it look like $(a+b)^n$. But I think, it would almost be impossible to find each coefficient.
How can I solve this problem?
Hint:
As we are interested in the even terms only
set $x=1,-1$ in the given identity and add to find the sum to be $$\dfrac{1+3^{10}}2$$