# compute first (and only first) values of Hilbert function

I have an homogeneous ideal (say $I$) and I'm interested in computing the first few values of the Hilbert function. I undestand that doing something like

`QQ[['x']](I.hilbert_series()(x)`

does give me this, but this seems to require computing the whole Hilbert series which blows up for my problem quickly. Is there a way of getting the first few values without computing the whole thing?

Could you please provide the construction of

`I`

and`x`

?There is no previous definition of 'x' and I is a generic homogeneous ideal Ideal (x_11^3 + ... ) of Multivariate Polynomial Ring in x_11, x_21, x_31, x_12,..., x_26, x_36 over Rational Field.