I want to compute the Hilbert function for the ring $$M:=\frac{k[x,y,z,w]}{(x,y)\cap(z,w)}$$ and compare it to the Hilbert function for the ring $$N:=k[x,y].$$
I tried computing the bases for each $M_i$ and $N_i$:
\begin{align} &M_1=\{x,y,z,w\} & &N_1=\{x,y\}\\ &M_2=\{x^2,xy,y^2,z^2,zw,w^2\}& & N_2=\{x^2,xy,y^2\}\\ &M_3=\{x^3,x^2y,xy^2,y^3,z^3,z^2w,zw^2,w^3\}& &N_3=\{x^3,x^2y,xy^2,y^3\}\\ &\vdots & & \vdots \end{align}
Did I compute these bases correctly? Since any elements in $(x,y)\cap(z,w)$ are identified with $0$ in $M$, it's like there are two copies of $k[x,y]$ insides of $M$. That is, there will be twice as many basis elements in $M_i$ than there are in $N_i$. So then the Hilbert functions should be: $$ H_M(t)=\begin{cases} 0&\text{ if $t\leq 0$}\\ 2(t+1)&\text{ if $t>0$} \end{cases} \;\;\;\;\;\; H_N(t)=\begin{cases} 0&\text{ if $t\leq 0$}\\ t+1&\text{ if $t>0$} \end{cases} $$
Does this work?
(I'm not looking for a general theory to compute Hilbert functions yet... I was just introduced to them).