I need to prove the following result from an exercise book.
$V = \mathbb{Z}_3[x]$ is a vector space (over $\mathbb{Z_3}$) of all polynomials over $\mathbb{Z_3}$ in indeterminate $x$.
$S = \{x^n + x^{n+2} : n\in \mathbb{N}\cup\{0\}\}$ and $W = \langle S\rangle$.
How to prove that $\dim\left(V/W\right) = 2$ over $\mathbb{Z_3}$.
I know the formula to find the dimension of quotient spaces. But here I am totally unable to prove it. Kindly help to prove the result. Thanks for your help.
Hint: Let $P(x)\in\mathbb{Z}_3[x]$. Dividing $P(x)$ by $1+x^2$ you'll get$$P(x)=Q(x)(1+x^2)+a+bx,$$for some $Q(x)\in\mathbb{Z}_3[x]$ and some $a,b\in\mathbb{Z}_3$. But $Q(x)(1+x^2)\in W$.