EUROPEAN JOURNAL OF PURE AND APPLIED MATHEMATICS Vol. 17, No. 4, 2024, 2621-2650 ISSN 1307-5543 – ejpam.com Published by New York Business Global Binomials Arising from Buchberger Algorithm on Polyomino Ideals Yoshua Yonatan Hamonangan1,∗, Intan Muchtadi-Alamsyah2 1 Doctoral Program of Mathematics, Faculty of Mathematics and Natural Sciences, Bandung Institute of Technology, Bandung, West Java, Indonesia 2 Algebra Research Group, Faculty of Mathematics and Natural Sciences, Bandung Institute of Technology, Bandung, West Java, Indonesia Abstract. A polyomino is a finite set of unit squares joined side by side on the Cartesian plane. Qureshi introduced an ideal constructed from a polyomino which is called ”polyomino ideal”. In this paper, we study the binomials arising from Buchberger Algorithm on polyomino ideals. We also introduce socket wrench polyominoes and study the Gröbner bases of the ideal IP and some algebraic properties of K[P]. 2020 Mathematics Subject Classifications: 05B50, 05E40, 13C05 Key Words and Phrases: Buchberger Algorithm, Gröbner Bases, Polyomino, Radical Ideal 1. Introduction A polyomino is a finite set of unit squares joined side by side on the Cartesian plane. They are discussed in a lot of papers. Look at: [2, 3] for Combinatorics; [17–19] for its relation to the tiling problem on the plane; [12] for the relation between polyominoes and Dyck Words and Motzkin Word; and [41] for statistical physics. The relation between polyominoes and commutative algebra was introduced by Qureshi, introducing an ideal constructed from a polyomino which is called polyomino ideal [34]. The polyomino ideal is a generalization of ideals generated by the set of 2-minor of a matrix. Generally, the ideal of t-minors is a central topic in Commutative Algebra and has some applications in algebraic statistics [33, 40]. There were a lot of research related to the ideal generated by the set of t−minor of a matrix [22, 27]. Since it was introduced by Qureshi in 2012, many interesting question have arisen about polyomino ideal. Here are some recent works and related results: ∗Corresponding author. DOI: https://doi.org/10.29020/nybg.ejpam.v17i4.5016 Email addresses: yoshua.yonatan.h@gmail.com (Y. Y. Hamonangan), ntan@itb.ac.id (I. Muchtadi-Alamsyah) https://www.ejpam.com 2621 Copyright: © 2024 The Author(s). (CC BY-NC 4.0) Y. Y. Hamonangan, I. Muchtadi-Alamsyah / Eur. J. Pure Appl. Math, 17 (4) (2024), 2621-2650 2622 • The primality of the polyomino ideal is studied in many articles [5, 7, 24–26, 31, 32, 35, 36, 38]. In [24, 25, 36], it is proved that K[P] is a domain if P is simple. In [31], it is proved that if K[P] is a domain then the polyomino have no zig-zag walks. They also conjectured that the converse direction is true. Later, it was proved in [5] and [7] that the conjecture holds for two special classes of non-simple polyominoes, called closed path and weakly closed paths. Still, a complete classification of polyominoes with prime polyomino ideal is not known. • The algebraic properties, like when K[P] is Cohen-Macaulay or Gorenstein, are known only for some specific polyominoes. In [36] the authors show that if P is simple then K[P] is a normal Cohen-Macaulay domain, by identifying their quotient ring with the toric ring of a weakly chordal graph. In [6], the authors show that if P is a closed path polyomino having no zig-zag walks then K[P] is a Cohen-Macaulay domain. In [34], Qureshi established that the Cohen-Macaulay property holds for convex polyominoes and characterized all stack polyominoes P for which K[P] is Gorenstein. The Gorensteiness is also studied in [1, 8, 10, 16, 35, 37]. • Gröbner basis of polyomino ideals are studied in [6, 20, 25, 26, 32, 34]. • The König type property is studied for simple thin polyominoes in [21], for closed path polyominoes in [13], and for grid polyominoes in [14]. • The linearly related polyominoes are studied in [15]. • The Charney-Davis conjecture for simple thin-polyominoes are studied in [29]. • The primary decomposition of polyomino ideals, like closed paths, and more in general for polyocollections is studied in [9]. • Another challenging problem is to compute the h-polynomial of K[P] in terms of the rook polynomial of P [8, 16, 28, 30, 35, 37]. An important class of ideals other than the prime ideal is the radical ideal. Radical ideal plays an important role in Algebraic Geometry, for example the Strong Nullstellen- satz Theorem [11]. Qureshi gave an example of a non-simple polyomino with non-prime polyomino ideal [36] that is radical. The radicality of an ideal can be studied from the Gröbner bases of the ideal. If we can define a monomial order such that every element in the Gröbner bases has square-free initial monomial then the ideal is radical [23, Problem 1.8(b)]. The Gröbner bases of an ideal can be computed by using Buchberger Algorithm [23, Section 1.3]. In this paper, we study some elements arising from Buchberger Algorithm to polyomino ideals. In the second section, polyominoes and some terminologies related to our study will be defined. In the third section, we will perform the Buchberger Algorithm in polyomino ideals. In the fourth sections, we will apply the results from previous sections to a class of polyominoes that we call socket wrench polyominoes. We prove that for the socket wrench polyomino P, the ideal IP has square-free quadratic Gröbner bases for a suitable monomial order. We also study some algebraic properties of the K-algebra K[P] = S/IP . Y. Y. Hamonangan, I. Muchtadi-Alamsyah / Eur. J. Pure Appl. Math, 17 (4) (2024), 2621-2650 2623 2. Preliminaries In this section, we will recall the definitions and terminologies about polyomino and polyomino ideal from [5] and [34]. Consider the set Z2 and define the partial order: (i, j) ≤ (k, ℓ) if and only if i ≤ k and j ≤ ℓ. (i) Let a, b ∈ Z2 with a ≤ b. The set [a, b] = { c ∈ Z2 | a ≤ c ≤ b } is called an interval. (ii) Let a = (i, j) and b = (k, ℓ). The elements a and b are called the diagonal corners of the interval [a, b], and the elements (i, ℓ) and (k, j) are called the antidiagonal corners of the interval [a, b]. Particularly, the elements (i, j) and (k, ℓ) are called left lower corner and the right upper corner, respectively, of the interval [a, b]. Similarly, the elements (i, ℓ) and (k, j) are called the left upper corner and the right lower corner, respectively, of the interval [a, b]. (iii) If b = a+ (1, 1) then the interval [a, b] is called a cell. (iv) The edges of a cell [a, a + (1, 1)] are the intervals: [a, a + (1, 0)], [a, a + (0, 1)], [a+ (0, 1), a+ (1, 1)], and [a+ (1, 0), a+ (1, 1)]. (v) Let P be a finite collection of cells in Z2. The collection of all vertices of P, denoted by V (P) is the union of all corners from each cells in P. (vi) Let a = (i, j), b = (k, ℓ) ∈ Z2. The vertices a and b are called in horizontal position if j = ℓ and in vertical position if i = k. (vii) Let P be a finite collection of cells in Z2. Let C and D be two cells in P. The cells C and D are called connected if there exists a sequence of cells C = C1, . . . , Cm = D in P such that Ci ∩ Ci+1 is an edge of Ci for all i = 1, 2, . . . ,m− 1. (viii) A finite collection of cells P in Z2 is called a polyomino if any two cells in P are connected. (ix) A walk from cell C to cell D in Z2 is a sequence of cells C : C = C1, . . . , Cm = D in Z2 such that Ci∩Ci+1 is an edge of Ci and Ci+1 for all i = 1, 2, . . . ,m−1. If Ci ̸= Cj for all i ̸= j then C is called a path. A polyomino P is called simple if for any two cells C and D not belonging to P, there exist a path C : C = C1, . . . , Cm = D such that Ci /∈ P for all i = 1, . . . ,m. (x) Let P be a polyomino and (i, j), (k, ℓ) ∈ V (P) such that i < k and j < ℓ. The interval [(i, j), (k, ℓ)] is called an inner interval of P if any cell [(r, s), (r + 1, s+ 1)] is an element in P for all i ≤ r ≤ k − 1 and j ≤ s ≤ ℓ− 1. (xi) Let P be a polyomino. The interval [(i, j), (k, j)] with i < k is called in a horizontal edge interval of P if the interval [(ℓ, j), (ℓ + 1, j)] are edges of cells of P for all ℓ = i, . . . , k − 1. If [(i− 1, j), (i, j)] and [(k, j), (k, j)] are not edges af cells if P then the interval [(i, j), (k, j)] is called a maximal horizontal edge interval of P. We define the vertical edge interval and the maximal vertical edge interval similarly. Y. Y. Hamonangan, I. Muchtadi-Alamsyah / Eur. J. Pure Appl. Math, 17 (4) (2024), 2621-2650 2624 (xii) Let P be a polyomino and K be a field. Define the polynomial ring S over K with variables xij for all (i, j) ∈ V (P). Each inner interval [(i, j), (k, ℓ)] in P is associated to xijxkℓ − xiℓxkj ∈ S, that is called the inner 2-minor of P. The set of all inner 2-minors of P is denoted by S2. (xiii) Let P be a polyomino. The ideal IP ⊆ S generated by S2 is called the polyomino ideal of P and K[P] = S/IP the coordinate ring of P. (xiv) Let J ⊆ S be a binomial ideal and f = f+ − f− be a binomial in J . The binomial f is called redundant if it can be expressed as a linear combination of binomials in J od lower degree. The binomal f is called irredundant if it is not redundant. We also denote by V + f the set of vertices v such that xv divides f+ and by V − f the set of vertices v such that xv divides f−. 3. Buchberger Algorithm in Polyomino Ideal Let P be a polyomino. We define an ordering in the set V (P) in the following way: (i, j)
x2 > · · · > xn. For the sake of sim- plicity, the elements xa ∈ R will be written with a. We define the degree of monomials xa11 xa22 . . . xann with ∑n i=1 ai. We also define the interval determined by {a, b} as the in- terval with diagonal corners {a, b} or antidiagonal corners {a, b}. Now, we are ready to perform the Buchberger Algorithm. Since S2 consists of inner 2-minors then the polyno- mial obtained by the Buchberger Algorithm in each step is again a binomial consisting of Y. Y. Hamonangan, I. Muchtadi-Alamsyah / Eur. J. Pure Appl. Math, 17 (4) (2024), 2621-2650 2625 two monomials of the same degree. The degree of this binomial is defined as the degree of both monomials. 3.1. Binomials of Degree Three The result in this subsection can also be derived from [34, Theorem 4.1] and [32, Proposition 3.2]. We start the Buchberger Algorithm by computing the S-polynomial S(F,G) for every F,G ∈ S2. The S-polynomial S(F,G) is defined by S(F,G) = lcm(in<(F ), in<(G)) cF · in<(F ) − lcm(in<(F ), in<(G)) cG · in<(G) where in<(F ) (resp. in<(F )) denotes the initial monomial of F (resp. G) with respect to < and cF (resp. cG) denotes the coefficient of in<(F ) (resp. in<(G)) in F (resp. G). • If the initial monomial of F and G are relatively prime then S(F,G) is reduced to zero. • If the greatest common divisor of their initial monomials is a monomial of degree two then F = G and S(F,G) = 0. • If the greatest common divisor of their initial monomials is a monomial of degree one then S(F,G) is a binomial of degree three. We will compute S(F,G) in the last possibility and find the condition for the S- polynomial to be not reduced to zero. Consider the case when F and G have common factor in their non-initial monomials (reader may see [6, Remark 1] for more general result). So, let F = ab− pq and G = ac− pr with initial monomials ab and ac, respectively. Note that S(F,G) = p(br − cq) and the interval determined by {b, r} is an inner interval. We conclude that S(F,G) is reduced to zero. Now we assume that F and G have no common factor in their non-initial monomial. Let F and G be the inner 2-minors associated to inner intervals [a, b] and [c, d], respectively. Without losing of generality, assume that a ≤P c. Write F = ab − pq and G = cd − rs with p
s and both intervals determined by {q, a2} and {q, a4} are not inner intervals • p = a5, a4 > r and both intervals determined by {q, a4} and {q, a6} are not inner intervals. Y. Y. Hamonangan, I. Muchtadi-Alamsyah / Eur. J. Pure Appl. Math, 17 (4) (2024), 2621-2650 2636 a2 a1 a4a5 a6 p = a3 r qs a1 a2 a3 a4 a6 r p = a5 qs : every cell is contained in the polyomino : some cells are not in the polyomino Figure 22: Binomial in Theorem 2. 3.2.2. The Case F ∈ S3 and G ∈ S3 Let F = A1A2A3 −B1B2B3 and G = a1a2a3 − b1b2b3 with initial monomials A1A2A3 and a1a2a3, respectively. We assume that A1
s. (iii) Suppose there are F,G ∈ S3 such that S(F,G) is not reduced to zero. By the definition of S3, since the non-initial monomial of a binomial in S3 is completely determined by its initial monomial then we can eliminate the cases when the initial monomials of F,G are relatively prime or equal. (a) If the greatest common divisor of their initial monomial is a monomial of degree two, we will have a similar argument as in the previous case but using Theorem 3 that it will come to a contradiction. (b) If the greatest common divisor of their initial monomial is a monomial of degree one, by our classifications above, we need to consider several cases of S(F,G). • S(xix11+2nx14+2n−xi+4+nx15+2nx6+n, xjx12+2nx14+2n−xj+4+nx16+2nx6+n), 5 ≤ i < j ≤ 4 + n. The above expression is equal to xix11+2nxj+4+nx16+2nx6+n − xi+4+nx15+2nx6+nxjx12+2n = x6+nx11+2nx16+2n(xixj+4+n − xi+4+nxj) +x6+nxi+4+nxj(x11+2nx16+2n − x15+2nx12+2n) and is reduced to zero. • S(xix11+2nx14+2n−xi+4+nx15+2nx6+n, xjx11+2nx13+2n−xj+4+nx15+2nx5+n), 5 ≤ i < j ≤ 4 + n. The above expression is equal to xix14+2nxj+4+nx15+2nx5+n − xjx13+2nxi+4+nx15+2nx6+n Y. Y. Hamonangan, I. Muchtadi-Alamsyah / Eur. J. Pure Appl. Math, 17 (4) (2024), 2621-2650 2642 = x15+2nx14+2nx5+n(xixj+4+n − xjxi+4+n) +x15+2nxjxi+4+n(x14+2nx5+n − x6+nx13+2n) and is reduced to zero. • S(xix11+2nx14+2n−xi+4+nx15+2nx6+n, xix12+2nx13+2n−xi+4+nx16+2nx5+n), 5 ≤ i ≤ 4 + n. The above expression is equal to x11+2nx14+2nxi+4+nx16+2nx5+n − x12+2nx13+2nxi+4+nx15+2nx6+n = xi+4+nx11+2nx16+2n(x5+nx14+2n − x6+nx13+2n) +xi+4+nx6+nx13+2n(x11+2nx16+2n − x12+2nx15+2n) and is reduced to zero. • S(xix12+2nx14+2n−xi+4+nx16+2nx6+n, xix11+2nx13+2n−xi+4+nx15+2nx5+n), 5 ≤ i ≤ 4 + n. The above expression is equal to x12+2nx14+2nxi+4+nx15+2nx5+n − xi+4+nx16+2nx6+nx11+2nx13+2n = xi+4+nx12+2nx15+2n(x5+nx14+2n − x6+nx13+2n) +xi+4+nx6+nx13+2n(x12+2nx15+2n − x11+2nx16+2n) and is reduced to zero. • S(xix12+2nx14+2n−xi+4+nx16+2nx6+n, xjx12+2nx13+2n−xj+4+nx16+2nx5+n), 5 ≤ i < j ≤ 4 + n. The above expression is equal to xix14+2nxj+4+nx16+2nx5+n − xi+4+nx16+2nx6+nxjx13+2n = x16+2nx14+2nx5+n(xixj+4+n − xjxi+4+n) +x16+2nxjxi+4+n(x14+2nx5+n − x13+2nx6+n) and is reduced to zero. • S(xix11+2nx13+2n−xi+4+nx15+2nx5+n, xjx12+2nx13+2n−xj+4+nx16+2nx5+n), 5 ≤ i < j ≤ 4 + n. The above expression is equal to xix11+2nxj+4+nx16+2nx5+n − xi+4+nx15+2nx5+nxjx12+2n = x5+nx11+2nx16+2n(xixj+4+n − xjxi+4+n) +x5+nxjxi+4+n(x11+2nx16+2n − x12+2nx15+2n) and is reduced to zero. And we are done with the proof. Y. Y. Hamonangan, I. Muchtadi-Alamsyah / Eur. J. Pure Appl. Math, 17 (4) (2024), 2621-2650 2643 Remark 1. Note that we can rotate the socket wrench polyominoes 90◦, 180◦, and 270◦ and get the same conclusion since we also can rotate the labelling and using the same monomial order. We also can prove a stronger result by using the similar argument with [5, Section 4]. Theorem 5. Let P be a socket wrench polyomino then the ideal IP is prime. Proof. We label P according to Figure 29. Let {Vi}i∈I be the set of maximal vertical edge intervals of P and {Hj}j∈J be the set of maximal horizontal edge intervals of P, where I = {1, 2, . . . , n + 4} and J = {1, 2, 3, 4}. Let {vi}i∈I and {hj}j∈J be the set of variables associated respectively to {Vi}i∈I and {Hj}j∈J , respectively. Let w be another variable different from vi and hj . Let A = {3, 4, 7 + n, 8 + n}. Define α : V (P) → K[{vi, hj , w} : i ∈ I, j ∈ J ] r 7→ vihjw k with r ∈ Vi ∩Hj , k = 0 if r /∈ V (A), and k = 1 if r ∈ V (A). Consider the following surjective ring homomorphism ϕ : K[xr : r ∈ V (P)] → K[α(v) : v ∈ V (P)] xr 7→ α(r) The toric ideal JP is the kernel of ϕ. We will prove that IP = JP . We start by proving IP ⊆ JP . Let f = xpxq−xrxs be a generator of IP that associated to the inner interval [p, q]. We may assume that p, r and q, s, respectively, are on the same maximal vertical edge interval. Then, p, s and q, r, respectively, are on the same maximal horizontal edge interval. If [p, q] ∩ A = ∅ then f ∈ JP . Consider the case [p, q] ∩ A ̸= ∅. If [p, q] = A then f ∈ JP . If [p, q] ̸= A, by the construction of P, then either s, q or p, s must be two vertices of A. In the first case, p, r are not the vertices of A. In the second case, r, q are not the vertices of A. In both cases, we conclude that f ∈ JP . Now, it remains to prove that JP ⊆ IP . We will prove this by showing that every binomial of degree two in JP belongs to IP and every irredundant binomial in JP is of degree two (or for some cases, it is in IP). For the first part, let f = xpxq − xrxs be a binomial in JP . If p, q are in horizontal or vertical position, since ϕ(f) = 0 then we can easily argue that {p, q} = {r, s} and f = 0 ∈ IP . We consider the case p, q are the diagonal corners of an interval (the case p, q are the antidiagonal corners can be done similarly). Let vp and hp be the variables associated to the maximal vertical and horizontal edge intervals that contain p, respectively. We define vq, vr, vs, hq, hr, hs similarly. We will prove that r, s are the antidiagonal corners of [p, q] and argue that f ∈ IP . We divide into three cases: • If p, q ∈ A. Since ϕ(xpxq) = vpvqhphqw 2 then w2 divides ϕ(xrxs). Thus, r, s ∈ A. If r = p or r = q then {r, s} = {p, q} and f = 0 ∈ IP . Therefore r is an antidiagonal corner of [p, q]. If ϕ(xr) = vphqw then ϕ(xs) = vqhpw and s is also an antidiagoal corner of [p, q]. The same conclusion for ϕ(xr) = vqhpw. Clearly, [p, q] = [3, n+8] is an inner interval and thus f ∈ IP . Y. Y. Hamonangan, I. Muchtadi-Alamsyah / Eur. J. Pure Appl. Math, 17 (4) (2024), 2621-2650 2644 • If exactly one of p, q belongs to A. We consider the case p ∈ A. By the construction of P, we have p ∈ {3, 7 + n} and q ∈ {12 + 2n, 16 + 2n}. Since w divides ϕ(xp) then r ∈ A or s ∈ A. We may assume that r ∈ A. If r = p then s = q and f = 0 ∈ IP . If p, r are not in horizontal position then Hr contains an edge of A but Hp ̸= Hr and Hq does not contain any edge of A. Therefore hr divides ϕ(xrxs) but does not divide ϕ(xpxq), a contradiction. Now, p, r are in horizontal position. By the construction of P, we conclude that r, q are in vertical position. Thus, ϕ(xs) = vphq and therefore r, s are the antidiagonal corners of [p, q]. Since p ∈ {3, 7 + n} and q ∈ {12 + 2n, 16 + 2n} then [p, q] is an inner interval and thus f ∈ IP . The case q ∈ A is also true by symmetry. • If both p, q do not belong to A. Similarly, we have that f = 0 ∈ IP or r, s are the antidiagonal corners of [p, q]. Let P ′ be a polyomino obtained by removing the cells that has common vertices with A. Note that P ′ is a simple polyomino. Let ϕ′ be the restriction of ϕ onK[xa : a ∈ V (P)\A] and JP ′ be the kernel of ϕ′. Note that f ∈ JP ′ By [36, Theorem 2.2], we have that IP ′ = JP ′ . Therefore f ∈ JP ′ = IP ′ ⊂ IP . For the second part, let f be an irredundant binomial in JP . Clearly, f has degree at least two. Suppose that f has degree at least three and choose f with the least degree. Suppose that every variable of f is in K[xa : a ∈ V (P)\A]. Define P ′ as the previous case then f is a binomial in JP ′ and f is irredundant in JP ′ . Since IP ′ = JP ′ then f is an irredundant binomial in IP ′ which means that f must be a binomial of degree two, a contradiction. Now, suppose that xv1 is a variable of f with v1 ∈ A. Write f = f+ − f−. We may assume that xv1 divides f+. If xv1 divides f− then f = xv1(g + − g−). Since JP is prime then g = g+ − g− ∈ JP . If the degree of g is at least three then g must be irredundant. But, this contradict the choice of f . If the degree of g is two then by the previous part, we conclude that g ∈ IP and f = xv1g ∈ IP . Now, suppose that xv1 does not divide f−. We may assume that no xv divides both f+ and f− for v ∈ A. Since w divides ϕ(f+) and ϕ(f+) = ϕ(f−) then there exists v′1 ∈ A such that xv′1 divides f−. Let Vv1 and Hv1 be the maximal vertical and horizontal edge intervals, respectively, that contain v1. Since vv1 divides ϕ(f+) and ϕ(f+) = ϕ(f−) then there exists v′2 ∈ Vv1 such that xv′2 divides f−. Similarly, there exists v′3 ∈ Hv1 such that xv′3 divides f−. Define Vv′1 and Hv′1 similarly. We also get that there exists v2 ∈ Vv′1 and v3 ∈ Hv′1 such that both xv2 and xv3 divide f+. Consider the following cases: • If v1 and v′1 are on the same horizontal edge interval of P. By the construction of P then the interval determined by v1, v2 is an inner interval. By [5, Lemma 2.2] with three vertices v1, v2 ∈ V + f dan v′1 ∈ V − f , we get a contradiction. • If v1 and v′1 are on the same vertical edge interval of P. Similarly we get a contra- diction by [5, Lemma 2.2] and three vertices v1, v3 ∈ V + f dan v′1 ∈ V − f . • If v1 and v′1 are the diagonal corners of [3, 8 + n]. We may assume that v1 = 3 and v′1 = 8 + n. Consider v′3. If v′3 = 4 then v2 ∈ {12 + 2n, 16 + 2n} and we get a contradiction by [5, Lemma 2.2] and three vertices v1, v2 ∈ V + f dan v′3 ∈ V − f . Y. Y. Hamonangan, I. Muchtadi-Alamsyah / Eur. J. Pure Appl. Math, 17 (4) (2024), 2621-2650 2645 Therefore v′3 ̸= 4. In particular, v′3 is not the antidiagonal corner of [3, 8 + n]. With the similar arguments, we conclude that v′2 is not the antidiagonal corner of [3, 8+n]. Looking at the construction of P, we see that the vertices v1, v ′ 1, v ′ 2, v ′ 3 lie on P as the following figure: v1 4 v′1 v′2 v′3 h Figure 30: Illustration for v1, v ′ 1, v ′ 2, v ′ 3 on P. Note that [v′3, v ′ 1] is an inner interval with 4 as one of the antidiagonal. Let h be the other antidiagonal. Notice that f = ( f+ − f− xv′1xv′3 xhx4 ) − f− xv′1xv′3 (xv′1xv′3 − xhx4). Since xv′1xv′3 − xhx4 ∈ IP ⊆ JP then f+ − f− xv′1 xv′3 xhx4 ∈ JP . But, both x4 and xv′2 divide f− xv′1 xv′3 xhx4 and xv1 divide f+. By [5, Lemma 2.2] and three vertices 4, v′2, v1 we get f+ − f− xv′1 xv′3 xhx4 is redundant and f is also redundant, a contradiction. • We argue similarly for the case v1 and v′1 are the antidiagonal corners of [3, 8 + n]. Corollary 1. Let P be a socket wrench polyomino then K[P] is a normal Cohen-Macaulay domain. Proof. By the previous theorem, we have IP is a toric ideal and has square-free quadratic Gröbner bases for the suitable monomial order. By a theorem of Sturmfels [23, Corollary 4.26] we conclude thatK[P] is normal and by a theorem of Hochster [4, Theorem 6.3.5] we have that K[P] is Cohen-Macaulay. Therefore K[P] is a normal Cohen-Macaulay domain. Next we compute the h-polynomial of socket wrench polyominoes and prove that K[P] is Gorenstein if and only if there is no unit square that we add in the definition of the socket wrench polyominoes. We refer the definition of (L, C)-polyomino in [8]. The socket wrench polyominoes are (L, C)-polyominoes by the following figure Here, we take symmetry to the definition of (L, C)-polyomino so it is suitable to the socket wrench. The results in [8] do not change. We also can rotate the socket wrench polyominoes by 180◦ to see that the socket wrench polyominoes are (L, C)-polyominoes. We recall some terminologies from [8] and [37]. (i) For a polyimino P, the rook number r(P) is the maximum number of non-attacking rooks that can be placed in P. Y. Y. Hamonangan, I. Muchtadi-Alamsyah / Eur. J. Pure Appl. Math, 17 (4) (2024), 2621-2650 2646 a2 d2 a1 d1 b2 b1 b d c2 c1 c a C L Figure 31: Socket wrench polyominoes are (L, C)-polyominoes. (ii) For a polyomino P, denote by rk the number of ways to placed k rook in P in non-attacking position, conventionally r0 = 1. (iii) The polyomino P is thin if it does not contain square tetromino. (iv) Let P be a simple thin polyomino. A cell C of P is single if there exists a unique maximal inner interval of P containing C. If any maximal inner interval of P has exactly one single cell, we say that P has the S-property. We also use some terminologies from [5] and [31]. (i) Let P be a polyomino. A sequence of distinct inner interval W : I1, . . . , Iℓ of P such that vi, zi are diagonal (resp. antidiagonal) corners and ui, vi+1 are antidiagonal (resp. diagonal) corners of Ii, for i = 1, . . . , ℓ, is a zig-zag walk of P, if (a) I1 ∩ Iℓ = {v1 = vℓ+1} and Ii ∩ Ii+1 = {vi+1} for i = 1, 2, . . . , ℓ− 1; (b) vi and vi+1 are on the same edge interval of P, for i = 1, . . . , ℓ. (c) for any i, j ∈ {1, . . . , ℓ}, with i ̸= j, does not exist an inner interval J of P such that zi, zj ∈ J . (ii) A polyomino is called closed path if P is a sequence of cells A1, A2, . . . , An, An+1, n > 5 such that (a) A1 = An+1; (b) Ai ∩Ai+1 is a common edge, for i = 1, 2, . . . , n; (c) Ai ̸= Aj for all i ̸= j and i, j ∈ {1, 2, . . . , n}; (d) For all i ∈ {1, 2, . . . , n} and for all j /∈ {i− 2, i− 1, i, i+ 1, i+ 2} then V (Ai) ∩ V (Aj) = ∅, where A−1 = An−1, A0 = An, An+1 = A1, An+2 = A2. In [31, Corollary 3.6], the authors prove that if there exists a zig-zag walk in P then the ideal IP is not prime. For socket wrench polyominoes, since IP is prime then P has no zig-zag walk. Now, we are ready to prove the next theorem. Theorem 6. Let P be a socket wrench polyomino with n additional unit squares. Then: (i) the h-polynomial of K[P] is hK[P](t) = 1 + (n+ 8)t+ (7n+ 16)t2 + (11n+ 8)t3 + (3n+ 1)t4; Y. Y. Hamonangan, I. Muchtadi-Alamsyah / Eur. J. Pure Appl. Math, 17 (4) (2024), 2621-2650 2647 (ii) reg(K[P]) = 4; (iii) K[P] is Gorenstein if and only if n = 0. Proof. Since P is a (L, C)-polyomino and C is a simple and thin polyomino then by [8, Theorem 5.2], we obtain that hK[P](t) = r(P)∑ k=0 rkt k and reg(K[P]) = r(P). Note that r(P) = 4 since the first, the second and the third row can not contain more than one rook, two rooks, one rook, respectively, and we can place four rooks like illustrated in the figure below R R R R Figure 32: r(P) = 4. We also can easily get r1 = n+8, r2 = 7n+16, r3 = 11n+8, and r4 = 3n+1 by some counting arguments. Then hK[P](t) = 1 + (n+ 8)t+ (7n+ 16)t2 + (11n+ 8)t3 + (3n+ 1)t4 and reg(K[P]) = 4, (i) and (ii) are proven. For (iii), by [39, Theorem 4.2] since 1 ̸= 3n+1 for n > 0 then K[P] is not Gorenstein. If n = 0, then P is a closed path having no zig-zag walks. We notice that the single cells of P are the four cells in the middle of the first row, the third row, the first column, and the third column. We also notice that the maximal intervals of P are the four intervals containing three cells in the first row, the third row, the first column, and the third column. Each of them only has one single cell, and thus P has the S-property. By [8, theorem 5.7], we conclude that K[P] is Gorenstein. 5. Conclusion In this paper, we classify some few-degree binomials that arise from the Buchberger Algorithm on polyomino ideal. Based on the labelling and the monomial order that were explained at the beginning of the third section, we obtain that the Buchberger Algorithm produces binomials of degree three (Theorem 1) and binomials of degree four (Theorem 2 and 3). We also give a class of polyominoes (the socket wrench polyominoes) that has Gröbner bases of degree at most three with respect to the previous labelling and monomial order, and hence the polyomino ideal is radical. We also study some properties of the REFERENCES 2648 polyomino ideal IP of the socket wrench polyominoes. The ideal IP is prime (Theorem 4). The quotient ring KP is a normal Cohen-Macaulay domain (Corollary 1). The h- polynomial, regularity, and Goreinsteness are given in Theorem 6. The problem about Gröbner bases and radicality of polyomino ideal are still open. Acknowledgements This research is funded by PMDSU Program 2015. We also thank to Ayesha Qureshi for suggesting the problem, for the guidance and for the useful advice. The authors also thank the referees of European Journal of Pure and Applied Mathe- matics, for their careful reading and helpful suggestions. References [1] C Andrei. Algebraic properties of the coordinate ring of a convex polyomino. The Electronic Journal of Combinatorics, 28:#P1.45, 2021. [2] E Barcucci, A Del Lungo, M Nivat, and R Pinzani. Reconstructing convex poly- ominoes from horizontal and vertical projections. Theoretical computer science, 155(2):321–347, 1996. [3] C Berge, C C Chen, V Chvátal, and CS Seow. Combinatorial properties of polyomi- noes. Combinatorica, 1(3):217–224, 1981. [4] Winfried Bruns and H Jürgen Herzog. Cohen-macaulay rings. Number 39. Cambridge university press, 1998. [5] C Cisto and F Navarra. Primality of closed path polyominoes. Journal of Algebra and its Applications, 22(02):2350055, 2023. [6] C Cisto, F Navarra, and R Utano. On gröbner bases and cohen-macaulay property of closed path polyominoes. The Electric Journal of Combinatorics, 29:#P3.54, 2022. [7] C Cisto, F Navarra, and R Utano. Primality of weakly connected collections of cells and weakly closed path polyominoes. Illinois Journal of Mathematics, 66(4):545–563, 2022. [8] C Cisto, F Navarra, and R Utano. Hilbert–poincaré series and gorenstein property for some non-simple polyominoes. Bulletin of the Iranian Mathematical Society, 49(3):22, 2023. [9] C Cisto, F Navarra, and D Veer. Polyocollection ideals and primary decomposition of polyomino ideals. Journal Of Algebra, 641:498–529, 2024. [10] Carmelo Cisto, Rizwan Jahangir, and Francesco Navarra. On algebraic properties of some non-prime ideals of collections of cells. arXiv preprint arXiv:2401.09152, 2024. REFERENCES 2649 [11] D A Cox, J Little, and D OShea. Ideals, varieties, and algorithms: an introduction to computational algebraic geometry and commutative algebra. Springer Science & Business Media, 2013. [12] M Delest and G Viennot. Algebraic languages and polyominoes enumeration. Theo- retical Computer Science, 34(1-2):169–206, 1984. [13] R Dinu and F Navarra. Non-simple polyominoes of könig type and their canonical module. page arXiv:2210.12665. [14] R Dinu and F Navarra. On the rook polynomial of grid polyominoes. arXiv:2309.01818. [15] V Ene, J Herzog, and T Hibi. Linearly related polyominoes. Journal of Algebraic Combinatorics, 41:949–968, 2015. [16] V Ene, J Herzog, A A Qureshi, and F Romeo. Regularity and gorenstein property of the l-convex polyominoes. The Electric Journal of Combinatorics, 28(1):#P1.50, 2021. [17] S W Golomb. Tiling with polyominoes. Journal of Combinatorial Theory, 1(2):280– 296, 1966. [18] S W Golomb. Tiling with sets of polyominoes. Journal of Combinatorial Theory, 9(1):60–71, 1970. [19] S W Golomb. Polyominoes: puzzles, patterns, problems, and packings. Princeton University Press, 1996. [20] Y Y Hamonangan and I Muchtadi-Alamsyah. On radical property of cross polyomino ideal. Journal of Physics: Conference Series, 1306(1):012023, 2019. [21] J Herzog and T Hibi. Finite distributive lattices, polyominoes and ideals of könig type. arXiv:2202.09643. [22] J Herzog and T Hibi. Ideals generated by adjacent 2-minors. Journal of Commutative Algebra, 4(4):525–549, 2012. [23] J Herzog, T Hibi, and H Ohsugi. Binomial ideals, volume 279. Springer, 2018. [24] J Herzog and S S Madani. The coordinate ring of a simple polyomino. Illinois Journal of Mathematics, 58(4):981–995, 2014. [25] J Herzog, Ayesha A Qureshi, and A Shikama. Gröbner bases of balanced polyominoes. Mathematische Nachrichten, 288(7):775–783, 2015. [26] T Hibi and A A Qureshi. Nonsimple polyominoes and prime ideals. Illinois Journal of Mathematics, 59(2):391–398, 2015. REFERENCES 2650 [27] S Hoşten and S Sullivant. Ideals of adjacent minors. Journal of Algebra, 277(2):615– 642, 2004. [28] R Jahangir and F Navarra. Shellable simplicial complex and switching rook poly- nomial of frame polyominoes. Journal Of Pure and Applied Algebra, 228(6):107576, 2024. [29] M Kummini and D Veer. The charney-davis conjecture for simple thin polyominoes. Communications in Algebra, 51(4):1654–1662, 2023. [30] M Kummini and D Veer. The h-polynomial and the rook polynomial of some poly- ominoes. The Electronic Journal of Combinatorics, 30(2):P2.6, 2023. [31] C Mascia, G Rinaldo, and F Romeo. Primality of multiply connected polyominoes. Illinois Journal of Mathematics, 64(7):291–304, 2020. [32] C Mascia, G Rinaldo, and F Romeo. Primality of polyomino ideals by quadratic gröbner basis. Mathematische Nachrichten, 295(3):593–606, 2022. [33] G Pistone, E Riccomagno, and H P Wynn. Algebraic statistics: Computational com- mutative algebra in statistics. CRC Press, 2000. [34] A A Qureshi. Ideals generated by 2-minors, collections of cells and stack polyominoes. Journal of Algebra, 357:279–303, 2012. [35] A A Qureshi, G Rinaldo, and F Romeo. Hilbert series of parallelogram polyominoes. Research in the Mathematical Sciences, 9(2):28, 2022. [36] A A Qureshi, T Shibuta, A Shikama, et al. Simple polyominoes are prime. Journal of Commutative Algebra, 9(3):413–422, 2017. [37] G Rinaldo and F Romeo. Hilbert series of simple thin polyominoes. Journal of Algebraic Combinatorics, 54(2):607–624, 2021. [38] A Shikama. Toric representation of algebras defined by certain nonsimple polyomi- noes. J. Commut. Algebra, 10(2):265–274, 2018. [39] Richard P Stanley. Hilbert functions of graded algebras. Advances in Mathematics, 28(1):57–83, 1978. [40] B Sturmfels. Solving systems of polynomial equations. Number 97. American Math- ematical Soc., 2002. [41] S G Whittington and C E Soteros. Lattice animals: rigorous results and wild guesses. Disorder in Physical Systems, pages 323–335, 1990.