OFFSET
1,4
EXAMPLE
For n=3, the leading monomial is x3^4, so a(3) = 1.
For n=4, the 3 leading monomials are x1x4^3, x2x4^3, x3x4^3, so a(4) = 3.
PROG
(Magma)
function a(n);
F:=GF(251);
P<[x]>:=PolynomialRing(F, n, "grevlex");
M2:=[ &*[P| x[i] : i in s] : s in Multisets({1..n}, 2) ];
A:=[ &+[Random(F)*m : m in M2] : i in [1..n]];
G:=GroebnerBasis(A, 4);
return #[ g : g in G | TotalDegree(g) eq 4 ];
end function;
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Gilles Macario-Rat, Sep 18 2023
STATUS
approved