| i1 : R = ZZ/101[a..d] | 
| i2 : S = image map(R, R, {a^4, a^3*b, a*b^3, b^4}) | 
| i3 : presentation S | 
| i4 : h = hilbertPolynomial S | 
The rational quartic curve in P^3 is therefore 'like' 4 copies of P^1, with three points missing. One can see this by noticing that there is a deformation of the rational quartic to the union of 4 lines, or 'sticks', which intersect in three successive points.
These Hilbert polynomials can serve as Hilbert functions, too.
| i5 : h 3 | 
| i6 : basis(3,S) | 
| i7 : rank source basis(3,S) | 
Note that the Hilbert polynomial of P^i is z |--> binomial(z + i, i).
See also ProjectiveHilbertPolynomial.




