$P_n(x,y)$ denote the vector space of polynomial with degree less than equal to $n $, then $\dim (P_n(x,y))=\dfrac{(n+1)(n+2)}{2!}$
How this answer is coming?
My attempt,
Total base elements (of degree${}=n)= n+1$
Total base elements (of degree${}=n-1)= n$
$\ldots$
Total base elements (of degree${}=1)= 2$.
Therefore total possible base elements${}=\dfrac{((n+1)+1)(n+1)}{2}$
Am I Right?
How to generalize the formula. Please explain.