# 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?

edit retag close merge delete

Could you please provide the construction of I and x ?