what have i done wrong to you!
x^3=y
no of terms are the no. of terms
in the expansion of
(y^2+y+1)^p
clearly
the power of y is ( by multinomial theorem) (2*q+r)
this can take any no. even or odd
the biggest power is 2p and smallest is 0
therefore no.of terms 2P+1
p=(n+1)(n)/2
ans
(n+1)n+1
and ya dudes sorry for posting question in that manner