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)