This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Combinations without specified separations

Michael A. Allen [email protected] Physics Department, Faculty of Science, Mahidol University, Rama 6 Road, Bangkok 10400, Thailand
Abstract

We consider the restricted subsets of n={1,2,,n}\mathbb{N}_{n}=\{1,2,\ldots,n\} with q1q\geq 1 being the largest member of the set 𝒬\mathcal{Q} of disallowed differences between subset elements. We obtain new results on various classes of problem involving such combinations lacking specified separations. In particular, we find recursion relations for the number of kk-subsets for any 𝒬\mathcal{Q} when |q𝒬|2\left\lvert\mathbb{N}_{q}-\mathcal{Q}\right\rvert\leq 2. The results are obtained, in a quick and intuitive manner, as a consequence of a bijection we give between such subsets and the restricted-overlap tilings of an (n+q)(n+q)-board (a linear array of n+qn+q square cells of unit width) with squares (1×11\times 1 tiles) and combs. A (w1,g1,w2,g2,,gt1,wt)(w_{1},g_{1},w_{2},g_{2},\ldots,g_{t-1},w_{t})-comb is composed of tt sub-tiles known as teeth. The ii-th tooth in the comb has width wiw_{i} and is separated from the (i+1)(i+1)-th tooth by a gap of width gig_{i}. Here we only consider combs with wi,gi+w_{i},g_{i}\in\mathbb{Z}^{+}. When performing a restricted-overlap tiling of a board with such combs and squares, the leftmost cell of a tile must be placed in an empty cell whereas the remaining cells in the tile are permitted to overlap other non-leftmost filled cells of tiles already on the board.

keywords:
restricted combination , combinatorial proof , tiling , directed pseudograph , well-based sequence
MSC:
[2010]Primary 05A15; Secondary 05A19, 05B45
journal: and later accepted for Communications in Combinatorics and Optimization

1 Introduction

The problem of enumerating combinations with disallowed separations is as follows. We wish to find the number SnS_{n} of subsets of n={1,2,,n}\mathbb{N}_{n}=\{1,2,\ldots,n\} satisfying the condition |xy|𝒬\left\lvert x-y\right\rvert\notin\mathcal{Q} where x,yx,y is any pair of elements in the subset and 𝒬\mathcal{Q} is a given nonempty subset of +\mathbb{Z}^{+}. We also wish to find the number Sn,kS_{n,k} of such subsets of n\mathbb{N}_{n} that are of size kk. For 𝒬={1}\mathcal{Q}=\{1\} it is well known that Sn=Fn+2S_{n}=F_{n+2} where FjF_{j} is the jj-th Fibonacci number defined by Fj=Fj1+Fj2+δj,1F_{j}=F_{j-1}+F_{j-2}+\delta_{j,1} with Fj<1=0F_{j<1}=0, where δi,j\delta_{i,j} is 1 if i=ji=j and 0 otherwise, and Sn,k=(n+1kk)S_{n,k}=\tbinom{n+1-k}{k} [12]. The quantity (n+1kk)\tbinom{n+1-k}{k} is also the number of ways of tiling an (n+1)(n+1)-board (i.e., an (n+1)×1(n+1)\times 1 board of unit square cells) using unit squares and kk dominoes (2×12\times 1 tiles) [6]. This correspondence can be regarded as a result of the bijection given in [3], generalized in [1], and that we will extend to the most general case here. It also appears to be well known that if 𝒬={1,,q}\mathcal{Q}=\{1,\ldots,q\} then Sn=Sn1+Snq1+δn+q,0S_{n}=S_{n-1}+S_{n-q-1}+\delta_{n+q,0} with Sn+q<0=0S_{n+q<0}=0. Expressions for the number of combinations when 𝒬={2}\mathcal{Q}=\{2\}, 𝒬={q}\mathcal{Q}=\{q\} for q2q\geq 2, and 𝒬={m,2m,,jm}\mathcal{Q}=\{m,2m,\ldots,jm\} for j,m1j,m\geq 1 are derived in [14], [19, 16, 15], and [17, 1], respectively.

Sn,kS_{n,k} also has links with graph theory. A path scheme P(n,𝒬)P(n,\mathcal{Q}) is an undirected graph with vertex set V=nV=\mathbb{N}_{n} and edge set {(x,y):|xy|𝒬}\{(x,y):\left\lvert x-y\right\rvert\in\mathcal{Q}\} [13]. A subset 𝒮\mathcal{S} of VV is said to be an independent set (or a stable set) if no two elements of 𝒮\mathcal{S} are adjacent. The number of independent sets of path scheme P(n,𝒬)P(n,\mathcal{Q}) of size kk is then clearly Sn,kS_{n,k} (and the total number is SnS_{n}). The elements qiq_{i} for i=1,,|𝒬|i=1,\ldots,\left\lvert\mathcal{Q}\right\rvert of set 𝒬\mathcal{Q} are said to form a well-based sequence if, when ordered so that qj>qiq_{j}>q_{i} for all j>ij>i, then q1=1q_{1}=1 and for all j>1j>1 and Δ=1,,qj1\Delta=1,\ldots,q_{j}-1, there is some qiq_{i} such that qj=qi+Δq_{j}=q_{i}+\Delta [21, 13]. Equivalently, the sequence of elements of 𝒬\mathcal{Q}, the largest of which is qq, is well based if a=|q𝒬|a=\left\lvert\mathbb{N}_{q}-\mathcal{Q}\right\rvert is zero or if for all i,j=1,,ai,j=1,\ldots,a (where ii and jj can be equal), pi+pj𝒬p_{i}+p_{j}\notin\mathcal{Q} where the pip_{i} are the elements of q𝒬\mathbb{N}_{q}-\mathcal{Q}. E.g., the only well-based sequences of length 3 are the elements of the sets {1,2,3}\{1,2,3\}, {1,2,4}\{1,2,4\}, {1,2,5}\{1,2,5\}, and {1,3,5}\{1,3,5\}. By considering P(n,𝒬)P(n,\mathcal{Q}), Kitaev obtained an expression for the generating function of SnS_{n} when the elements of 𝒬\mathcal{Q} are a well-based sequence [13]. We will show the result via combinatorial proof and also obtain a recursion relation for Sn,kS_{n,k}.

We define a (w1,g1,w2,g2,,gt1,wt)(w_{1},g_{1},w_{2},g_{2},\ldots,g_{t-1},w_{t})-comb as a linear array of tt sub-tiles (which we refer to as teeth) of dimensions wi×1w_{i}\times 1 separated by t1t-1 gaps of width gig_{i}. The length of a comb is i=1t1(wi+gi)+wt\sum_{i=1}^{t-1}(w_{i}+g_{i})+w_{t}. When the tt teeth are all of width ww and the t1t-1 gaps are all of width gg, it is referred to as a (w,g;t)(w,g;t)-comb [4]; such combs can be used to give a combinatorial interpretation of products of integer powers of two consecutive generalized Fibonacci numbers [5]. Evidently, a (w,g;1)(w,g;1)-comb (or ww-comb) is just a ww-omino (and a (w,0;n)(w,0;n)-comb is an nwnw-omino). A (w,g;2)(w,g;2)-comb is also known as a (w,g)(w,g)-fence. The fence was introduced in [7] to obtain a combinatorial interpretation of the tribonacci numbers as the number of tilings of an nn-board using just two types of tiles, namely, squares and (12,1)(\frac{1}{2},1)-fences. (12,g)(\frac{1}{2},g)-fences have also been used to obtain results on strongly restricted permutations [8].

In this paper, we start in §2 by giving the bijection between combinations with disallowed separations and the restricted-overlap tilings of boards with squares and combs. Counting these types of tilings requires knowledge of all permissible minimal gapless configurations of square-filled and/or restricted overlapping combs known as metatiles which are introduced in §3. In §4 we derive results from which recursion relations for Sn,kS_{n,k} (or SnS_{n}) for various classes of the set of disallowed differences 𝒬\mathcal{Q} can be obtained.

2 The bijection between combinations with disallowed separations and restricted-overlap tilings with squares and combs

In order to formulate the bijection we first introduce the concept of the restricted-overlap tiling of an nn-board. In this type of tiling, any cell but the leftmost cell of a tile is permitted to overlap any non-leftmost cell of another tile. The C2C^{2}, C2SC^{2}S, and C3SC^{3}S metatiles in Figure 1 are examples where such overlap occurs (note that in that figure and in Figure 3, for clarity, some of the overlapping tiles are shown displaced downwards a little from their final position). It is readily seen that when tiling an nn-board, only tiles with gaps can overlap in this sense and so restricted-overlap tiling of nn-boards with just squares and other ww-ominoes is the same as ordinary tiling.

Let qq be the largest element in the set 𝒬\mathcal{Q} of disallowed differences. The comb corresponding to 𝒬\mathcal{Q} is of length q+1q+1, has cells numbered from 0 to qq, and is constructed as follows. By definition, cells 0 and qq are filled (as they are the end teeth or parts of them). For the cells in between, cell ii (for i=1,,q1i=1,\ldots,q-1) is filled if and only if i𝒬i\in\mathcal{Q}. For example, 𝒬={1,2,4}\mathcal{Q}=\{1,2,4\} corresponds to a (3,1,1)(3,1,1)-comb. One could also regard it as a (1,0,2,1,1)(1,0,2,1,1)-comb but for simplicity we insist that all teeth and gaps in a comb corresponding to 𝒬\mathcal{Q} are of positive width. This ensures that there is only one comb that corresponds to a given 𝒬\mathcal{Q}.

Theorem 1

There is a bijection between the kk-subsets of n\mathbb{N}_{n} each pair x,yx,y of elements of which satisfy |xy|𝒬\left\lvert x-y\right\rvert\notin\mathcal{Q} and the restricted overlap-tilings of an (n+q)(n+q)-board using squares and kk combs corresponding to 𝒬\mathcal{Q} as described above.

Proof: The (n+q)(n+q)-board associated with a subset 𝒮\mathcal{S} satisfying the conditions regarding disallowed differences has cells numbered from 1 to n+qn+q. It is obtained by placing a comb at cell ii (with the leftmost tooth of the comb occupying cell ii) if and only if i𝒮i\in\mathcal{S} and then, after all the comb tiles have been placed, filling any remaining empty cells with squares. 𝒮=\mathcal{S}=\varnothing therefore corresponds to a board tiled with squares only. The nn singletons correspond to each of the possible places to put a tile of length q+1q+1 on an (n+q)(n+q)-board. If 𝒮\mathcal{S} contains more than one element, then there will be a tiling corresponding to 𝒮\mathcal{S} iff, for any two elements x<yx<y in 𝒮\mathcal{S}, the comb representing xx (which has its cell 0 at cell xx of the board) has a gap at its cell yxy-x (which is cell yy on the board). This will be the case if yx𝒬y-x\notin\mathcal{Q}.  \Box

To illustrate the bijection, we return to the 𝒬={1,2,4}\mathcal{Q}=\{1,2,4\} example. The first case of an allowed subset of n\mathbb{N}_{n} with more than one element is {1,4}\{1,4\} which can only occur if n4n\geq 4. This subset corresponds to the restricted-overlap tiling of an (n+4)(n+4)-board with the first comb (corresponding to the element 1) placed at the start (cell number 1) of the board and the second comb (corresponding to the element 4) placed with its start in the gap of the first comb which is at cell number 4 of the board. As the length of a (3,1,1)(3,1,1)-comb is 5, a board of length at least 8 is required for such a tiling. The remaining empty cells on the board (cell 7 and any cells beyond cell 8) are filled with squares.

The bijection also applies in the 𝒬=\mathcal{Q}=\varnothing case if we set q=0q=0. The comb corresponding to 𝒬\mathcal{Q} is then a square (but we still call it a comb to distinguish it from the ordinary squares) so Sn,kS_{n,k} is the number of tilings of an nn-board using kk square combs (and nkn-k ordinary squares) which is (nk)\tbinom{n}{k}.

Let BnB_{n} be the number of ways to restricted-overlap tile an nn-board with squares and combs corresponding to 𝒬\mathcal{Q}, and let Bn,kB_{n,k} be the number of such tilings that use kk combs. We choose to set B0=B0,0=1B_{0}=B_{0,0}=1.

Theorem 2

Sn=Bn+qS_{n}=B_{n+q} and Sn,k=Bn+q,kS_{n,k}=B_{n+q,k}.

Proof: This follows immediately from Theorem 1.  \Box

Lemma 1

If the number of tilings of an nn-board with squares and length-(q+1)(q+1) combs is given by

Bn=δn,0+m>0(αmδn,m+βmBnm),Bn<0=0,B_{n}=\delta_{n,0}+\sum_{m>0}(\alpha_{m}\delta_{n,m}+\beta_{m}B_{n-m}),\quad B_{n<0}=0,

then the generating function G(x)G(x) for SnS_{n} can be written as

G(x)=1+m>0(αm+q+j=1qβm+j)xm1m>0βmxm.G(x)=\dfrac{1+\sum_{m>0}\left(\alpha_{m+q}+\sum_{j=1}^{q}\beta_{m+j}\right)x^{m}}{1-\sum_{m>0}\beta_{m}x^{m}}. (1)

Proof: The generating function for BnB_{n} is (1+m>0αmxm)/(1m>0βmxm)(1+\sum_{m>0}\alpha_{m}x^{m})/(1-\sum_{m>0}\beta_{m}x^{m}). The first q+1q+1 terms of the expansion of this must be 1+x++xq1+x+\cdots+x^{q} since there is only one way to tile an nn-board with squares and combs when 0nq0\leq n\leq q, namely, the all-square tiling. From Theorem 2, Sn=Bq+nS_{n}=B_{q+n}, and so

G(x)=1xq(1+m>0αmxm1m>0βmxm1xxq1),G(x)=\frac{1}{x^{q}}\left(\dfrac{1+\sum_{m>0}\alpha_{m}x^{m}}{1-\sum_{m>0}\beta_{m}x^{m}}-1-x-\cdots-x^{q-1}\right),

which simplifies to (1) after first putting the terms inside the parentheses over a common denominator and then in the numerator discarding the xrx^{r} terms for 1r<q1\leq r<q since they must sum to zero.  \Box

It can be seen that restricted-overlap tiling with squares and just one type of (1,g;t)(1,g;t)-comb, where g=0,1,2g=0,1,2\ldots, will result in no overlap of the combs and so the number of such tilings is the same as for ordinary tiling. For other types of comb, there will be some tilings where overlap occurs. The case 𝒬={m,2m,,jm}\mathcal{Q}=\{m,2m,\ldots,jm\} with j,m1j,m\geq 1 as studied in [17, 1], which is a generalization of all the other cases for which results for Sn,kS_{n,k} were obtained previously, corresponds to tiling with squares and (1,m1;j+1)(1,m-1;j+1)-combs. Thus any results for Sn,kS_{n,k} we obtain for nonempty 𝒬\mathcal{Q} not of this form (and so overlap does occur) will be new ones.

3 Metatiles

We extend the definition of a metatile given in [7, 8] to the case of restricted-overlap tiling. A metatile is a minimal arrangement of tiles with restricted overlap that exactly covers a number of adjacent cells without leaving any gaps. It is minimal in the sense that if one or more tiles are removed from a metatile then the result is no longer a metatile.

When tiling with squares (denoted by SS) and combs corresponding to 𝒬\mathcal{Q} (denoted by CC), the two simplest metatiles are the free square (i.e., a square which is not inside a comb), and a comb with all the gaps filled with squares. The symbolic representation of the latter metatile is CSgCS^{g} where g=igig=\sum_{i}g_{i}. If a comb has no gaps then it is a (q+1)(q+1)-omino and is therefore a metatile by itself.

Refer to caption
Figure 1: Metatiles, their symbolic representations, and digraphs for generating them when restricted-overlap tiling an nn-board with squares and (l,1,r)(l,1,r)-combs for (a) rlr\geq l (b) r<lr<l.

If the comb contains a gap, we can initiate the creation of at least one more metatile by placing the start of another comb in the gap. For instance, in the case of an (l,1,r)(l,1,r)-comb where rlr\geq l, this is the only other possible metatile and so there are three metatiles in total (Figure 1a). However, if r<lr<l, adding a comb leaves a gap which can be filled either with a square to form a completed metatile (C2SC^{2}S) or with another comb which will leave a further gap, and so on (Figure 1b). Thus the possible metatiles in this case are CmSC^{m}S for m=0,1,2,m=0,1,2,\ldots. More generally, we have the following lemma.

Lemma 2

Let rr be the length of the final tooth in the comb which has at least one gap. The set of possible metatiles when restricted-overlap tiling a board of arbitrary length with squares and combs is finite if and only if 2rq2r\geq q.

Proof: We can reuse the depiction of tilings in Figure 1 but with the left tooth of each comb now replaced by arbitrary teeth and gaps (but starting with a tooth). There is no possibility of a ‘chain’ of combs if, when a second comb is placed with the first cell of its first tooth just before the start of the right tooth of the first comb, the start of the right tooth of the second comb is before or aligned with the end of the right tooth of the first comb. This occurs if qrrq-r\leq r. If qr>rq-r>r, a third comb can be placed so that its first cell is immediately to the left of the right tooth of the second comb and this can be continued indefinitely.  \Box

As with fence tiling [8], we can systematically construct all possible metatiles with the aid of a directed pseudograph (henceforth referred to as a digraph). As before, the 0 node corresponds to the empty board or the completion of the metatile. The other nodes represent the state of the incomplete metatile. The occupancy of a cell in it is represented by a binary digit: 0 for empty, 1 for filled. We label the node by discarding the leading 1s and trailing zeros and so the label always starts with a 0 and ends with a 1, with 1r1^{r} denoting 1 repeated rr times. Each arc represents the addition of a tile and any walk beginning and ending at the 0 node without visiting it in between corresponds to a metatile. With our restricted-overlap tiling, all nodes have an out-degree of 2 as a gap may always be filled by a square or the start of a comb. The destination node is obtained by performing a bitwise OR operation on the bits representing the added tile and the label of the current node, and then discarding the leading 1s. Figure 1 illustrates this for the metatiles involved when tiling with squares and (l,1,r)(l,1,r)-combs.

The most important property of a metatile is its length. This is obtained by summing the contribution to the length associated with each arc in the walk representing the metatile. The contribution to the length associated with an arc is zero if it corresponds to the addition of a square (except in the case of the trivial SS metatile) and for a comb arc equals q+1dq+1-d where dd is the number of digits in the node label from which the arc emanates except when that node is the 0 node in which case d=0d=0. In the digraphs, the contribution to the length associated with each arc is given as a subscript in square brackets if it is not zero. For example, from the digraph in Figure 1b, for tiling with squares and (l,1,r<l)(l,1,r<l)-combs we see that the length of a CmSC^{m}S metatile where m>0m>0 is q+1+(m1)(qr)=ml+r+1q+1+(m-1)(q-r)=ml+r+1 as in this case q=l+rq=l+r.

4 Counting restricted-overlap tilings

For brevity, we just give results for BnB_{n} and Bn,kB_{n,k} as these are easily converted to recursion relations for SnS_{n} and Sn,kS_{n,k} and the generating function for SnS_{n} using Theorem 2 and Lemma 1. As with ordinary (non-overlapping) tiling, the following lemma is the basis for obtaining recursion relations for BnB_{n} and Bn,kB_{n,k}.

Lemma 3

For all integers nn and kk,

Bn\displaystyle B_{n} =δn,0+i=1NmBnli,\displaystyle=\delta_{n,0}+\sum_{i=1}^{N_{\rm m}}B_{n-l_{i}}, (2a)
Bn,k\displaystyle B_{n,k} =δn,0δk,0+i=1NmBnli,kki,\displaystyle=\delta_{n,0}\delta_{k,0}+\sum_{i=1}^{N_{\rm m}}B_{n-l_{i},k-k_{i}}, (2b)

where NmN_{\rm m} is the number of metatiles, lil_{i} is the length of the ii-th metatile and kik_{i} is the number of combs it contains, and Bn<0=Bn,k<0=Bn<k,k=0B_{n<0}=B_{n,k<0}=B_{n<k,k}=0.

Proof: As in [6, 8], we condition on the last metatile on the board. To obtain (2b) we note that if an nn-board tiled with squares and kk combs ends with a metatile of length lil_{i} that contains kik_{i} combs then there are Bnli,kkiB_{n-l_{i},k-k_{i}} ways to tile the rest of the board. The δn,0δk,0\delta_{n,0}\delta_{k,0} term is from the requirement that B0,0=1B_{0,0}=1. This term arises in the sum when a particular metatile containing kk combs completely fills the board; there is only one tiling where this occurs. The derivation of (2a) is analogous but we ignore the number of combs. Alternatively, each term in (2a) is obtained from the corresponding term in (2b) by summing over all kk.  \Box

Theorem 3

If 𝒬={1,,l1,qr+1,,q1,q}\mathcal{Q}=\{1,\ldots,l-1,q-r+1,\ldots,q-1,q\} (or 𝒬={qr+1,,q1,q}\mathcal{Q}=\{q-r+1,\ldots,q-1,q\} if l=1l=1) where l1l\geq 1, 2rq2r\geq q, and q+1l+rq+1\geq l+r, then

Bn\displaystyle B_{n} =δn,0+Bn1+Bnq1+j=0qlrfj(l)Bnlq1j,\displaystyle=\delta_{n,0}+B_{n-1}+B_{n-q-1}+\sum_{j=0}^{q-l-r}f^{(l)}_{j}B_{n-l-q-1-j},
Bn,k\displaystyle B_{n,k} =δn,0δk,0+Bn1,k+Bnq1,k1+j=0qlri=0j/l(j(l1)ii)Bnlq1j,k2i,\displaystyle=\delta_{n,0}\delta_{k,0}+B_{n-1,k}+B_{n-q-1,k-1}+\sum_{j=0}^{q-l-r}\sum_{i=0}^{\lfloor j/l\rfloor}\binom{j-(l-1)i}{i}B_{n-l-q-1-j,k-2-i},

where the (1,l)(1,l)-bonacci number fj(l)=fj1(l)+fjl(l)+δj,0f^{(l)}_{j}=f^{(l)}_{j-1}+f^{(l)}_{j-l}+\delta_{j,0}, fj<0(l)=0f^{(l)}_{j<0}=0. The sums are omitted if q+1=l+rq+1=l+r.

Proof: We use Lemma 3. If q+1=l+rq+1=l+r, CC is just a (q+1)(q+1)-omino and the results follow immediately. Otherwise, CC is an (l,q+1lr,r)(l,q+1-l-r,r)-comb. There are two trivial metatiles: SS and CSq+1lrCS^{q+1-l-r} which have lengths of 1 and q+1q+1, respectively. For the remaining metatiles, since 2rq2r\geq q, as described in the proof of Lemma 2, the final comb in the metatile must start within the gap of the first comb. Number the cells in this gap from j=0j=0 to qlrq-l-r. If the start of the left tooth of the final comb in the metatile lies in cell jj of this gap, the length of the metatile is l+q+1+jl+q+1+j. Cells 0 to j1j-1 of the gap can have either an SS or the left tooth of a CC and we end up with a metatile of this length. The number of ways this can be done is simply the number of ways to tile a jj-board using squares and ll-ominoes which is fj(l)f^{(l)}_{j} [6] (when l=1l=1, the ll-ominoes are regarded as being distinguishable from the ordinary squares). Hence there are fj(l)f^{(l)}_{j} metatiles of length l+q+1+jl+q+1+j of which (jli+ii)\tbinom{j-li+i}{i} have 2+i2+i combs.  \Box

As an example of the application of the above theorem, we consider the case 𝒬={2}\mathcal{Q}=\{2\}. Then l=r=1l=r=1 and q=2q=2 and we obtain the recursion relation Bn,k=δn,0δk,0+Bn1,k+Bn2,k1+Bn4,k2B_{n,k}=\delta_{n,0}\delta_{k,0}+B_{n-1,k}+B_{n-2,k-1}+B_{n-4,k-2}. Using Theorem 2 gives Sn,k=δn,2δk,0+Sn1,k+Sn2,k1+Sn4,k2S_{n,k}=\delta_{n,-2}\delta_{k,0}+S_{n-1,k}+S_{n-2,k-1}+S_{n-4,k-2} which is in agreement with the recursion relation first obtained by Konvalina [14]. Note that the metatiles in this case are the square (SS), a comb with its gap filled by a square (CSCS), and two interlocking combs (C2C^{2}). No overlapping occurs in this case and so it also an ordinary tiling which has been examined extensively [9].

For instances where the largest element of q𝒬\mathbb{N}_{q}-\mathcal{Q} (the set of allowed differences less than qq) is qrq-r and 2rq2r\geq q but the other conditions in Theorem 3 do not hold, as the number of possible metatiles is finite (by Lemma 2), it is straightforward to find the length and number of combs in each of them and then use (2) to obtain recursion relations for BnB_{n} and Bn,kB_{n,k}.

To enable us to tackle some cases where there are an infinite number of possible metatiles, we begin by reviewing some terminology describing features of the digraphs used to construct metatiles [8]. A cycle is a closed walk in which no node or arc is repeated aside from the starting node. We refer to cycles by the arcs they contain. For example, the digraph in Figure 1(a) has 3 cycles: S[1]S_{[1]}, C[q+1]SC_{[q+1]}S, and C[q+1]C[qr]C_{[q+1]}C_{[q-r]}. An inner cycle is a cycle that does not include the 0 node. For example, the digraph in Figure 1(b) has a single inner cycle, namely, C[qr]C_{[q-r]}. If a digraph has an inner cycle, there are infinitely many possible metatiles as, once reached, the cycle can be traversed an arbitrary number of times before the walk returns to the 0 node. If all of the inner cycles of a digraph have one node (or more than one node) in common, that node (or any one of those nodes) is said to be the common node. In the case of a digraph with one inner cycle, any of the nodes of the inner cycle can be chosen as the common node. A common circuit is a simple path from the 0 node to the common node followed by a simple path from the common node back to the 0 node. For example, in the digraph in Figure 1(b), the common node is 01r01^{r} and the common circuit is C[q+1]SC_{[q+1]}S. If a digraph has a common node, members of an infinite family of metatiles can be obtained by traversing the first part of the common circuit from the 0 node to the common node and then traversing the inner cycle(s) an arbitrary number of times (and in any order if there are more than one) before returning to the 0 node via the second part of the common circuit. An outer cycle is a cycle that includes the 0 node but does not include the common node. Thus any metatile which is not a member of an infinite family of metatiles has a symbolic representation derived from an outer cycle. E.g., the only outer cycle in the digraph in Figure 1(b) is S[1]S_{[1]}.

The following theorem is a restatement of Theorem 5.4 and Identity 5.5 in [8] but with more compact expressions for BnB_{n} and Bn,kB_{n,k} and improved proofs. Note that the length of a cycle or circuit is simply the total contributions to the length of the arcs it contains.

Theorem 4

For a digraph possessing a common node, let loil_{\mathrm{o}i} be the length of the ii-th outer cycle (i=1,,Noi=1,\ldots,N_{\rm o}) and let koik_{\mathrm{o}i} be the number of combs it contains, let LrL_{r} be the length of the rr-th inner cycle (r=1,,Nr=1,\ldots,N) and let KrK_{r} be the number of combs it contains, and let lcil_{\mathrm{c}i} be the length of the ii-th common circuit (i=1,,Nci=1,\ldots,N_{\rm c}) and let kcik_{\mathrm{c}i} be the number of combs it contains. Then for all integers nn and kk,

Bn\displaystyle B_{n} =δn,0+r=1N(BnLrδn,Lr)+i=1No(Bnloir=1NBnloiLr)+i=1NcBnlci,\displaystyle=\delta_{n,0}+\sum_{r=1}^{N}(B_{n-L_{r}}-\delta_{n,L_{r}})+\sum_{i=1}^{N_{\rm o}}\biggl{(}B_{n-l_{\mathrm{o}i}}-\sum_{r=1}^{N}B_{n-l_{\mathrm{o}i}-L_{r}}\biggr{)}+\sum_{i=1}^{N_{\rm c}}B_{n-l_{\mathrm{c}i}}, (3a)
Bn,k\displaystyle B_{n,k} =δn,0δk,0+r=1N(BnLr,kKrδn,Lrδk,Kr)+i=1No(Bnloi,kkoir=1NBnloiLr,kkoiKr)\displaystyle=\delta_{n,0}\delta_{k,0}+\sum_{r=1}^{N}(B_{n-L_{r},k-K_{r}}-\delta_{n,L_{r}}\delta_{k,K_{r}})+\sum_{i=1}^{N_{\rm o}}\biggl{(}B_{n-l_{\mathrm{o}i},k-k_{\mathrm{o}i}}-\sum_{r=1}^{N}B_{n-l_{\mathrm{o}i}-L_{r},k-k_{\mathrm{o}i}-K_{r}}\biggr{)}
+i=1NcBnlci,kkci,\displaystyle\qquad\mbox{}+\sum_{i=1}^{N_{\rm c}}B_{n-l_{\mathrm{c}i},k-k_{\mathrm{c}i}}, (3b)

where Bn<0=Bn,k<0=Bn<k,k=0B_{n<0}=B_{n,k<0}=B_{n<k,k}=0.

Proof: From Lemma 3,

Bn\displaystyle B_{n} =δn,0+i=1NoBnloi+i=1Ncj1,,jN0(j1++jNj1,,jN)Bnλi,\displaystyle=\delta_{n,0}+\sum_{i=1}^{N_{\rm o}}B_{n-l_{\mathrm{o}i}}+\sum_{i=1}^{N_{\rm c}}\sum_{j_{1},\ldots,j_{N}\geq 0}\!\!\binom{j_{1}+\cdots+j_{N}}{j_{1},\ldots,j_{N}}B_{n-\lambda_{i}}, (4a)
Bn,k\displaystyle B_{n,k} =δn,0δk,0+i=1NoBnloi,kkoi+i=1Ncj1,,jN0(j1++jNj1,,jN)Bnλi,kκi\displaystyle=\delta_{n,0}\delta_{k,0}+\sum_{i=1}^{N_{\rm o}}B_{n-l_{\mathrm{o}i},k-k_{\mathrm{o}i}}+\sum_{i=1}^{N_{\rm c}}\sum_{j_{1},\ldots,j_{N}\geq 0}\!\!\binom{j_{1}+\cdots+j_{N}}{j_{1},\ldots,j_{N}}B_{n-\lambda_{i},k-\kappa_{i}} (4b)

with Bn<0=Bn,k<0=Bn<k,k=0B_{n<0}=B_{n,k<0}=B_{n<k,k}=0, where λi=lci+s=1NjsLs\lambda_{i}=l_{\mathrm{c}i}+\sum_{s=1}^{N}j_{s}L_{s} and κi=kci+s=1NjsKs\kappa_{i}=k_{\mathrm{c}i}+\sum_{s=1}^{N}j_{s}K_{s}. The multinomial coefficient (which counts the number of arrangements of the inner cycles) results from the fact that changing the order in which the inner cycles are traversed (after the common node is reached via the outgoing path of a common circuit) gives rise to distinct metatiles of the same length. The sum of terms over j1,,jNj_{1},\ldots,j_{N} in (4a) may be re-expressed as

j1,,jN0M()Bnλi=Bnlci+m=0N1mjsm1,jtm=0M(m)Bnλi\sum_{j_{1},\ldots,j_{N}\geq 0}\!\!M(\varnothing)B_{n-\lambda_{i}}=B_{n-l_{\mathrm{c}i}}+\sum_{m=0}^{N-1}\sum_{\mathcal{R}_{m}}\sum_{\begin{subarray}{c}j_{s\notin\mathcal{R}_{m}}\geq 1,\\ j_{t\in\mathcal{R}_{m}}=0\end{subarray}}\!\!\!\!M(\mathcal{R}_{m})B_{n-\lambda_{i}}

where M()M(\mathcal{R}) denotes the multinomial coefficient (j1++jNj1,,jN)\tbinom{j_{1}+\cdots+j_{N}}{j_{1},\ldots,j_{N}} with jt=0j_{t\in\mathcal{R}}=0, and m\mathcal{R}_{m} denotes a set of mm numbers drawn from N\mathbb{N}_{N}. For example, if N>2N>2 an instance of 2\mathcal{R}_{2} is {1,2}\{1,2\} in which case M(2)=(j3++jNj3,,jN)M(\mathcal{R}_{2})=\tbinom{j_{3}+\cdots+j_{N}}{j_{3},\ldots,j_{N}}. Replacing nn by nLrn-L_{r} in (4a) gives

BnLr=δn,Lr+i=1NoBnloiLr+i=1Ncj1,,jN0M()BnλiLr.B_{n-L_{r}}=\delta_{n,L_{r}}+\sum_{i=1}^{N_{\rm o}}B_{n-l_{\mathrm{o}i}-L_{r}}+\sum_{i=1}^{N_{\rm c}}\sum_{j_{1},\ldots,j_{N}\geq 0}\!\!M(\varnothing)B_{n-\lambda_{i}-L_{r}}.

After changing jrj_{r} to jr1j_{r}-1, the sum of terms over j1,,jNj_{1},\ldots,j_{N} may be re-expressed as

jr1,jtr0Mr()Bnλi=m=0N1m[r]jsm[r]1,jtm[r]=0Mr(m[r])Bnλi,\sum_{\begin{subarray}{c}j_{r}\geq 1,\\ j_{t\neq r}\geq 0\end{subarray}}\!\!\!\!M_{r}(\varnothing)B_{n-\lambda_{i}}=\sum_{m=0}^{N-1}\sum_{\mathcal{R}_{m}^{[r]}}\sum_{\begin{subarray}{c}j_{s\notin\mathcal{R}_{m}^{[r]}}\geq 1,\\ j_{t\in\mathcal{R}_{m}^{[r]}}=0\end{subarray}}\!\!\!\!M_{r}(\mathcal{R}_{m}^{[r]})B_{n-\lambda_{i}},

where Mr()M_{r}(\mathcal{R}) denotes the multinomial coefficient M()M(\mathcal{R}) with jrj_{r} replaced by jr1j_{r}-1 (so, for example, M3({1,2})=(j3++jN1j31,,jN)M_{3}(\{1,2\})=\tbinom{j_{3}+\cdots+j_{N}-1}{j_{3}-1,\ldots,j_{N}}) and m[r]\mathcal{R}_{m}^{[r]} is a set of mm numbers none of which equal rr drawn from N\mathbb{N}_{N}. After subtracting r=1NBnLr\sum_{r=1}^{N}B_{n-L_{r}} from (4a) and using the result for multinomial coefficients that M()=rRMr()M(\mathcal{R})=\sum_{r\notin R}M_{r}(\mathcal{R}), we obtain (3a). Similarly, subtracting r=1NBnLr,kKr\sum_{r=1}^{N}B_{n-L_{r},k-K_{r}} from (4b) gives (3).  \Box

The rest of the theorems in this section concern families of 𝒬\mathcal{Q} whose corresponding digraphs each have a common node. Once the lengths of and the number of combs in each cycle and common circuit have been determined, the recursion relations for BnB_{n} and Bn,kB_{n,k} follow immediately from Theorem 4.

It can be seen from (3) that the recursion relation for BnB_{n} can be obtained from that for Bn,kB_{n,k} by replacing Bnν,kκB_{n-\nu,k-\kappa} and δn,νδk,κ\delta_{n,\nu}\delta_{k,\kappa} by BnνB_{n-\nu} and δn,ν\delta_{n,\nu}, respectively, for any ν\nu and κ\kappa. For the remaining theorems we therefore give the recursion relation for Bn,kB_{n,k} and only also show the one for BnB_{n} if we use the expression for BnB_{n} elsewhere.

For the more generally applicable theorems that follow, BnB_{n} and Bn,kB_{n,k} are given most simply in terms of the elements pip_{i} of q𝒬\mathbb{N}_{q}-\mathcal{Q}, the set of allowed differences less than qq. We order the pip_{i} so that pi<pi+1p_{i}<p_{i+1} for all i=1,,a1i=1,\ldots,a-1, where a=|q𝒬|a=\left\lvert\mathbb{N}_{q}-\mathcal{Q}\right\rvert, the number of allowed differences less than qq. Note that if the comb corresponding to 𝒬\mathcal{Q} has leftmost and rightmost teeth of widths ll and rr, respectively, then p1=lp_{1}=l and pa=qrp_{a}=q-r. In digraphs, we let σi\sigma_{i} (for i=1,,ai=1,\ldots,a) denote the bit string corresponding to filling the first i1i-1 empty cells of a comb with squares and discarding the leading 1s. Thus σa\sigma_{a} is always 01r01^{r}. It is also easily seen that the comb arc leaving the σi\sigma_{i} node is C[pi]C_{[p_{i}]}.

Theorem 5

If the elements of 𝒬\mathcal{Q} are a well-based sequence then

Bn\displaystyle B_{n} =δn,0+Bn1+Bnq1+i=1a(BnpiBnpi1δn,pi),\displaystyle=\delta_{n,0}+B_{n-1}+B_{n-q-1}+\sum_{i=1}^{a}(B_{n-p_{i}}-B_{n-p_{i}-1}-\delta_{n,p_{i}}), (5a)
Bn,k\displaystyle B_{n,k} =δn,0δk,0+Bn1,k+Bnq1,k1+i=1a(Bnpi,k1Bnpi1,k1δn,piδk,1).\displaystyle=\delta_{n,0}\delta_{k,0}+B_{n-1,k}+B_{n-q-1,k-1}+\sum_{i=1}^{a}(B_{n-p_{i},k-1}-B_{n-p_{i}-1,k-1}-\delta_{n,p_{i}}\delta_{k,1}). (5b)

If 𝒬=q\mathcal{Q}=\mathbb{N}_{q} (and so a=0a=0) then the sums over ii are omitted.

Proof: If 𝒬=q\mathcal{Q}=\mathbb{N}_{q} the comb is a (q+1)(q+1)-omino and the results follow immediately. Otherwise, we first need to establish that the comb leaving the σi\sigma_{i} node for any i=1,,ai=1,\ldots,a in the digraph (Figure 2; Figure 1(b) shows the a=1a=1 instance of the digraph) takes us back to the σ1\sigma_{1} node. This is equivalent to there being a gap at position pi+pjp_{i}+p_{j} (for any i,j=1,,ai,j=1,\ldots,a) of the first comb (or that position being beyond the end of the comb) where pjp_{j} can be viewed as the position of the jj-th empty cell in the comb added at cell pip_{i} in the first comb. This must be the case by the definition of a well-based sequence; if there were no gap it would mean pi+pj𝒬p_{i}+p_{j}\in\mathcal{Q} which is impossible. The digraph has aa inner cycles, namely, Si1C[pi]S^{i-1}C_{[p_{i}]} for i=1,,ai=1,\ldots,a, which have lengths pip_{i}, respectively. The common node is σ1\sigma_{1}. There is one common circuit (C[q+1]SaC_{[q+1]}S^{a}), which is of length q+1q+1, and one outer cycle (S[1]S_{[1]}), which is of length 1.  \Box

Refer to caption
Figure 2: Digraph for tiling a board with squares and combs corresponding to a well-based sequence of disallowed differences.

The following corollary was established via graph theory and results concerning bit strings in [13].

Corollary 1

The generating function for SnS_{n} when the elements qiq_{i} of 𝒬\mathcal{Q} form a well-based sequence is given by

G(x)=c(1x)cx,G(x)=\frac{c}{(1-x)c-x}, (6)

where c=1+i=1|𝒬|xqic=1+\sum_{i=1}^{\left\lvert\mathcal{Q}\right\rvert}x^{q_{i}}.

Proof: Applying Lemma 1 to (5a) it can be seen that the numerator of (1) reduces to

1+m=1q(j=1qm(i=1a(δm+j,piδm+j,pi+1))+1)xm,1+\sum_{m=1}^{q}\biggl{(}\sum_{j=1}^{q-m}\Bigl{(}\sum_{i=1}^{a}(\delta_{m+j,p_{i}}-\delta_{m+j,p_{i}+1})\Bigr{)}+1\biggr{)}x^{m},

where the +1+1 inside the brackets results from the fact that βq+1\beta_{q+1} appears as a term in the sum over jj for every mm up to qq. Note also that we must have p1>1p_{1}>1 and pa<qp_{a}<q. When summed over jj, δm+j,piδm+j,pi+1\delta_{m+j,p_{i}}-\delta_{m+j,p_{i}+1} cancels (thus leaving just the +1+1 multiplying the xmx^{m}) except if pi=mp_{i}=m in which case δm+j,pi\delta_{m+j,p_{i}} is always zero and the δm+j,pi+1-\delta_{m+j,p_{i}+1} when j=1j=1 cancels the +1+1. Hence the numerator simplifies to cc. The denominator of (1) is, in the present case, 1xxq+1(1x)c¯1-x-x^{q+1}-(1-x)\bar{c}, where c¯=i=1axpi\bar{c}=\sum_{i=1}^{a}x^{p_{i}}. Using the result that c+c¯=i=0qxi=(1xq+1)/(1x)c+\bar{c}=\sum_{i=0}^{q}x^{i}=(1-x^{q+1})/(1-x) it is then easily shown that the denominator can be re-expressed as (1x)cx(1-x)c-x.  \Box

We consider the case 𝒬={1,3,5}\mathcal{Q}=\{1,3,5\} as an example for the application of Theorem 5. Then q=5q=5, a=2a=2, p1=2p_{1}=2, and p2=4p_{2}=4. Hence Bn,k=δn,0δk,0δn,2δk,1δn,4δk,1+Bn1,k+Bn2,k1Bn3,k1+Bn4,k1Bn5,k1+Bn6,k1B_{n,k}=\delta_{n,0}\delta_{k,0}-\delta_{n,2}\delta_{k,1}-\delta_{n,4}\delta_{k,1}+B_{n-1,k}+B_{n-2,k-1}-B_{n-3,k-1}+B_{n-4,k-1}-B_{n-5,k-1}+B_{n-6,k-1}. Since in this case c=1+x+x3+x5c=1+x+x^{3}+x^{5}, Corollary 1 gives the generating function for SnS_{n} of (1+x+x3+x5)/(1xx2+x3x4+x5x6)(1+x+x^{3}+x^{5})/(1-x-x^{2}+x^{3}-x^{4}+x^{5}-x^{6}) as found by Kitaev [13].

The proofs of some of the results that follow (starting with the next lemma which is used in the proof of Theorem 6) require combs where the number of gaps depends on the particular instance of 𝒬\mathcal{Q}. We therefore extend our notation: an (l,[g],r)(l,[g],r)-comb is a comb of length l+g+rl+g+r whose left and right teeth have widths of ll and rr, respectively.

Refer to caption
Figure 3: The origin of the 1-arc inner cycle at the 01r01^{r} node when restricted-overlap tiling with squares and (a) (r+2g,[g],r)(r+2-g,[g],r)-combs where 1gr+11\leq g\leq r+1 (b) (w1,g1,,wt)(w_{1},g_{1},\ldots,w_{t})-combs such that wt=rw_{t}=r, gt1=1g_{t-1}=1, wt1q2r1=xw_{t-1}\geq q-2r-1=x, and t2t\geq 2.
Lemma 4

When restricted-overlap tiling an nn-board with SS and CC, where CC contains at least one gap and the width of the final tooth is rr, there is a 1-arc inner cycle C[qr]C_{[q-r]} containing the 01r01^{r} node iff (a) q=2r+1q=2r+1 or (b) the final gap is of unit width and the penultimate tooth has a width of at least q2r1q-2r-1.

Proof: If q<2r+1q<2r+1, by Lemma 2, there can be no inner cycles. If q=2r+1q=2r+1 and so the length of CC is 2(r+1)2(r+1), we have the situation depicted in Figure 3(a). In the figure, the cells of each comb marked with the dashed line could be parts of teeth or gaps. For the first (paler) comb depicted in each case, any such cells which are parts of gaps are filled with other tiles leaving the final gap cell empty (which corresponds to the 01r01^{r} node). The start of the next comb is placed in that cell (and we return to the 01r01^{r} node). If q>2r+1q>2r+1 the final gap in the comb must be of unit width and the width wt1w_{t-1} of the penultimate tooth cannot be less than x=q+12(r+1)x=q+1-2(r+1) (Figure 3b).  \Box

Theorem 6

Let θ\theta be the bit string representation of 𝒬\mathcal{Q} whereby the jj-th bit from the right of θ\theta is 1 if and only if j𝒬j\in\mathcal{Q}. By θ/2b\lfloor\theta/2^{b}\rfloor we mean discarding the rightmost bb bits in θ\theta and shifting the remaining bits to the right bb places. Using \mid to denote the bitwise OR operation, if θθ/2pi1\theta\mid\lfloor\theta/2^{p_{i}-1}\rfloor for each i=1,,a1i=1,\ldots,a-1 is all ones after discarding the leading zeros, a2a\geq 2, and pa=qrp_{a}=q-r (which implies that r1r\geq 1), then if (a) q=2r+1q=2r+1 or (b) q>2r+1q>2r+1 and 1pa1r1\leq p_{a-1}\leq r, then

Bn,k\displaystyle B_{n,k} =δn,0δk,0δn,qrδk,1+Bn1,k+Bnq+r,k1Bnq+r1,k1+Bnq1,k1\displaystyle=\delta_{n,0}\delta_{k,0}-\delta_{n,q-r}\delta_{k,1}+B_{n-1,k}+B_{n-q+r,k-1}-B_{n-q+r-1,k-1}+B_{n-q-1,k-1}
+i=1a1(Bnq1pi,k2Bn2q+r1pi,k3).\displaystyle\qquad+\sum_{i=1}^{a-1}(B_{n-q-1-p_{i},k-2}-B_{n-2q+r-1-p_{i},k-3}). (7)
Refer to caption
Figure 4: Digraph for tiling a board with squares and combs corresponding to 𝒬\mathcal{Q} specified in Theorem 6.

Proof: The condition pa=qrp_{a}=q-r means that the final tooth is of width rr. The conditions (a) and (b) correspond to those in Lemma 4 and thus guarantee a single-comb inner cycle at the 01r01^{r} node. The condition on θ\theta means that placing a comb at an empty cell (other than the final empty cell) will result in all gaps in the combs to the right of this point being filled. On the digraph this means that there is an arc from the σi\sigma_{i} node, where i=1,,a1i=1,\ldots,a-1, to the 0 node. Tiling with squares and combs corresponding to 𝒬\mathcal{Q} leads to the digraph shown in Figure 4. There is one inner cycle (C[qr]C_{[q-r]}) and one common circuit (C[q+1]SaC_{[q+1]}S^{a}). The outer cycles are S[1]S_{[1]} and C[q+1]Si1C[pi]C_{[q+1]}S^{i-1}C_{[p_{i}]} for i=1,,a1i=1,\ldots,a-1 and their respective lengths are 1 and q+1+piq+1+p_{i}.  \Box

It is straightforward to verify that the following four classes of 𝒬\mathcal{Q} satisfy the conditions for Theorem 6 to apply: (i) 𝒬={2,,qr1,qr+1,,q}\mathcal{Q}=\{2,\ldots,q-r-1,q-r+1,\ldots,q\} where r1r\geq 1 and qmax(2r+1,4)q\geq\max(2r+1,4) (e.g., for q7q\leq 7: {2,4}\{2,4\}, {2,3,5}\{2,3,5\}, {2,4,5}\{2,4,5\}, {2,3,4,6}\{2,3,4,6\}, {2,3,5,6}\{2,3,5,6\}, {2,3,4,5,7}\{2,3,4,5,7\}, {2,3,4,6,7}\{2,3,4,6,7\}, {2,3,5,6,7}\{2,3,5,6,7\}); (ii) 𝒬={1,,l1,l+1,,qr1,qr+1,,q}\mathcal{Q}=\{1,\ldots,l-1,l+1,\ldots,q-r-1,q-r+1,\ldots,q\} where rl2r\geq l\geq 2 and q2r+1q\geq 2r+1 and 2lqr2l\neq q-r (e.g., for q8q\leq 8: {1,3,4,6,7}\{1,3,4,6,7\}, {1,2,4,6,7,8}\{1,2,4,6,7,8\}, {1,3,4,5,7,8}\{1,3,4,5,7,8\}, {1,3,4,6,7,8}\{1,3,4,6,7,8\}); (iii) q=2r+1q=2r+1, p1=lp_{1}=l, pa=r+1p_{a}=r+1, and lr2l2l\leq r\leq 2l-2 (e.g., for q9q\leq 9: {1,4,5}\{1,4,5\}, {1,2,5,6,7}\{1,2,5,6,7\}, {1,2,6,7,8,9}\{1,2,6,7,8,9\}, {1,2,3,6,7,8,9}\{1,2,3,6,7,8,9\}, {1,2,4,6,7,8,9}\{1,2,4,6,7,8,9\}); (iv) 𝒬={2,4,,2a,2a+1,,q}\mathcal{Q}=\{2,4,\ldots,2a,2a+1,\ldots,q\} where a3a\geq 3 and q=4a4,4a3q=4a-4,4a-3 (e.g., for q9q\leq 9: {2,4,6,7,8}\{2,4,6,7,8\}, {2,4,6,7,8,9}\{2,4,6,7,8,9\}). These classes cover all cases where the theorem applies for q9q\leq 9.

As an example, we consider the case 𝒬={2,4}\mathcal{Q}=\{2,4\}. Then q=4q=4, r=1r=1, a=2a=2, p1=1p_{1}=1, and p2=3p_{2}=3. From (6) we get Bn,k=δn,0δk,0δn,3δk,1+Bn1,k+Bn3,k1Bn4,k1+Bn5,k1+Bn6,k2Bn9,k3B_{n,k}=\delta_{n,0}\delta_{k,0}-\delta_{n,3}\delta_{k,1}+B_{n-1,k}+B_{n-3,k-1}-B_{n-4,k-1}+B_{n-5,k-1}+B_{n-6,k-2}-B_{n-9,k-3}. An explicit formula for Sn,kS_{n,k} in this case can be obtained in terms of sums of products of binomial coefficients [17]. Summing over kk gives us a recursion relation for BnB_{n} whose generating function (1x3)/(1xx3+x4x5x6+x9)(1-x^{3})/(1-x-x^{3}+x^{4}-x^{5}-x^{6}+x^{9}) is that of sequence A224809 in the OEIS [20] which does indeed correspond to numbers of subsets with differences not equalling 2 or 4.

Note that, omitting the sum, Theorem 6 holds for the case a=1a=1 if p1=qrp_{1}=q-r and q2r+1q\geq 2r+1. It then coincides with Theorem 5.

Theorem 7

Suppose p1=lp_{1}=l and pa=2lp_{a}=2l. Then if either (a) q=4l1q=4l-1 or (b) pa1q2lp_{a-1}\leq q-2l where q<4l1q<4l-1, then

Bn,k\displaystyle B_{n,k} =δn,0δk,0δn,2lδk,1+Bn1,k+Bn2l,k1Bn2l1,k1+Bnq1,k1+Bnql1,k2+Bnq2l1,k3\displaystyle\!=\!\delta_{n,0}\delta_{k,0}\!-\!\delta_{n,2l}\delta_{k,1}\!+\!B_{n-1,k}\!+\!B_{n-2l,k-1}\!-\!B_{n-2l-1,k-1}\!+\!B_{n-q-1,k-1}\!+\!B_{n-q-l-1,k-2}\!+\!B_{n-q-2l-1,k-3}
Bnq3l1,k3Bnq4l1,k4+i=2a1(Bnqpi1,k2Bnq2lpi1,k3),\displaystyle\qquad-B_{n-q-3l-1,k-3}-B_{n-q-4l-1,k-4}+\sum_{i=2}^{a-1}(B_{n-q-p_{i}-1,k-2}-B_{n-q-2l-p_{i}-1,k-3}), (8)

where the sum is omitted if a=2a=2.

Proof: Tiling with squares and (l,[l+1],q2l)(l,[l+1],q-2l)-combs leads to the digraph shown in Figure 5. Note that if a=2a=2, the σi\sigma_{i} nodes are omitted since i=1,,a2i=1,\ldots,a-2. There is just one inner cycle (C[2l]C_{[2l]}) and one common circuit (C[q+1]SaC_{[q+1]}S^{a}). Their respective lengths are 2l2l and q+1q+1. The outer cycles are S[1]S_{[1]}, C[q+1]C[l]{S,C[l]}C_{[q+1]}C_{[l]}\{S,C_{[l]}\}, and, if a3a\geq 3, C[q+1]Si1C[pi]C_{[q+1]}S^{i-1}C_{[p_{i}]} for i=2,,a1i=2,\ldots,a-1. Their respective lengths are 1, q+l+1q+l+1, q+2l+1q+2l+1, and q+pi+1q+p_{i}+1.  \Box

The instances of 𝒬\mathcal{Q} with q9q\leq 9 to which Theorem 7 applies are {3}\{3\}, {1,3,5,6}\{1,3,5,6\}, {1,5,6,7}\{1,5,6,7\}, {1,3,5,6,7}\{1,3,5,6,7\}, and {1,2,4,5,7,8,9}\{1,2,4,5,7,8,9\}. As an example, we consider the 𝒬={3}\mathcal{Q}=\{3\} case. Then l=1l=1 and a=2a=2 and Theorem 7 yields Bn,k=δn,0δk,0δn,2δk,1+Bn1,k+Bn2,k1Bn3,k1+Bn4,k1+Bn5,k2+Bn6,k3Bn7,k3Bn8,k4B_{n,k}=\delta_{n,0}\delta_{k,0}-\delta_{n,2}\delta_{k,1}+B_{n-1,k}+B_{n-2,k-1}-B_{n-3,k-1}+B_{n-4,k-1}+B_{n-5,k-2}+B_{n-6,k-3}-B_{n-7,k-3}-B_{n-8,k-4}. For the case 𝒬={q}\mathcal{Q}=\{q\}, Prodinger [19] derived an explicit formula for Sn,kS_{n,k} involving the sum of a product of four binomial coefficients. Konvalina and Liu also showed that Sqm+j=Fm+2qjFm+3jS_{qm+j}=F_{m+2}^{q-j}F_{m+3}^{j} for m=0,1,2,m=0,1,2,\ldots and j=0,1,,q1j=0,1,\ldots,q-1 [16]. Returning to our 𝒬={3}\mathcal{Q}=\{3\} result, summing Bn,kB_{n,k} over all kk to obtain a recursion relation for BnB_{n} and then applying Lemma 1 gives the generating function for SnS_{n} of (1+x+x2+3x3+x4x52x6x7)/(1xx2+x3x4x5x6+x7+x8)(1+x+x^{2}+3x^{3}+x^{4}-x^{5}-2x^{6}-x^{7})/(1-x-x^{2}+x^{3}-x^{4}-x^{5}-x^{6}+x^{7}+x^{8}) which matches that for the sequence S3m+j=Fm+23jFm+3jS_{3m+j}=F_{m+2}^{3-j}F_{m+3}^{j} for m=0,1,2,m=0,1,2,\ldots and j=0,1,2j=0,1,2 (see A006500 in the OEIS [20]).

Refer to caption
Figure 5: Digraph for tiling a board with squares and (l,[l+1],r=q2l)(l,[l+1],r=q-2l)-combs used in the proof of Theorem 7.
Theorem 8

If p1=lp_{1}=l, pa=qrp_{a}=q-r, l>rl>r and (i) q=2lq=2l or (ii) a=2a=2, q2lq\geq 2l, but q2l+rq\neq 2l+r, then

Bn,k\displaystyle B_{n,k} =δn,0δk,0+Bn1,k+Bn2l1,k1+Bn3l1,k2\displaystyle=\delta_{n,0}\delta_{k,0}+B_{n-1,k}+B_{n-2l-1,k-1}+B_{n-3l-1,k-2}
+i=2a(Bnpi,k1Bnpi1,k1+Bnlpi,k2Bnlpi1,k2δn,piδk,1δn,l+piδk,2).\displaystyle\qquad+\sum_{i=2}^{a}(B_{n-p_{i},k-1}-B_{n-p_{i}-1,k-1}+B_{n-l-p_{i},k-2}-B_{n-l-p_{i}-1,k-2}-\delta_{n,p_{i}}\delta_{k,1}-\delta_{n,l+p_{i}}\delta_{k,2}). (9)

Proof: Tiling with (i) squares and (l,[lr+1],r)(l,[l-r+1],r)-combs, where l>rl>r, or (ii) squares and (l,1,ml1,1,r)(l,1,m\neq l-1,1,r)-combs, where 0<lrm+10<l-r\leq m+1, leads to the digraph shown in Figure 6. There are 2(a1)2(a-1) inner cycles: {S,C[l]}Si2C[pi]\{S,C_{[l]}\}S^{i-2}C_{[p_{i}]} for i=2,,ai=2,\ldots,a. Their lengths are pip_{i} and l+pil+p_{i}. The common node is σ1\sigma_{1} and so the common circuits are C[2l+1]{S,C[l]}Sa1C_{[2l+1]}\{S,C_{[l]}\}S^{a-1} which have lengths of 2l+12l+1 and 3l+13l+1.  \Box

The instances of 𝒬\mathcal{Q} for which Theorem 8 applies when q8q\leq 8 are {1,4}\{1,4\}, {1,2,6}\{1,2,6\}, {1,2,4,6}\{1,2,4,6\}, {1,2,5,6}\{1,2,5,6\}, {1,3,4,6}\{1,3,4,6\}, {1,2,4,6,7}\{1,2,4,6,7\}, {1,3,4,5,7}\{1,3,4,5,7\}, {1,2,3,8}\{1,2,3,8\}, {1,2,3,5,8}\{1,2,3,5,8\}, {1,2,3,6,8}\{1,2,3,6,8\}, {1,2,3,5,6,8}\{1,2,3,5,6,8\}, {1,2,3,7,8}\{1,2,3,7,8\}, {1,2,3,5,7,8}\{1,2,3,5,7,8\}, {1,2,3,6,7,8}\{1,2,3,6,7,8\}, {1,2,4,5,6,8}\{1,2,4,5,6,8\}, and {1,3,4,5,6,8}\{1,3,4,5,6,8\}.

Refer to caption
Figure 6: Digraph for tiling a board with squares and (l,[lr+1],r)(l,[l-r+1],r)-combs, where l>rl>r, or with squares and (l,1,ml1,1,r)(l,1,m\neq l-1,1,r)-combs, where 0<lrm+10<l-r\leq m+1, used in the proof of Theorem 8.

We conclude by showing that all possible 𝒬\mathcal{Q} such that a2a\leq 2 have been covered by the theorems given here. When a=0a=0, the comb CC is a (q+1)(q+1)-omino and Bn,kB_{n,k} is given by (5b). When a=1a=1, CC is an (l,1,r)(l,1,r)-comb (and the two possible cases are shown in Figure 1). Then if rlr\geq l, Theorem 3 applies. Otherwise, if l>rl>r, Theorem 5 applies since 2p1>q2p_{1}>q (as p1=lp_{1}=l and q=l+rq=l+r) and hence the elements of 𝒬\mathcal{Q} are a well-based sequence. When a=2a=2, CC is either an (l,2,r)(l,2,r)-comb or an (l,1,m,1,r)(l,1,m,1,r)-comb for some l,m,r1l,m,r\geq 1. In the former case, q=l+r+1q=l+r+1 and so the condition 2rq2r\geq q leads to Theorem 3 applying when l<rl<r. When l=rl=r, it is covered by the class (iii) instances of 𝒬\mathcal{Q} that apply to Theorem 6 except when l=1l=1 in which case Theorem 7(a) applies. When l=r+1l=r+1, we have q=2lq=2l and p2=l+1=2lrp_{2}=l+1=2l-r and so Theorem 8 applies. The final possibility is if the elements of 𝒬\mathcal{Q} are a well-based sequence (and the case is then covered by Theorem 5) and this occurs if 2p1>q2p_{1}>q which implies that l>r+1l>r+1. For (l,1,m,1,r)(l,1,m,1,r)-combs, q=l+m+r+1q=l+m+r+1 and so the 2rq2r\geq q case (Theorem 3) is when l<rml<r-m. Of the lrml\geq r-m cases we first consider those where l=m+1l=m+1. This can arise in two ways. If 2p1=p22p_{1}=p_{2} (which implies l=m+1l=m+1) and p1+p2>qp_{1}+p_{2}>q (which implies l>rl>r) then the elements of 𝒬\mathcal{Q} are a well-based sequence and Theorem 5 applies. When l=m+1l=m+1 and lrl\leq r then Theorem 7(b) applies since these conditions can be re-expressed as p2=2lp_{2}=2l and p1rp_{1}\leq r, respectively (and lrml\geq r-m in this case implies q4l1q\leq 4l-1). When l=1l=1 (and lrml\geq r-m), the case falls into class (i) to which Theorem 6 applies. There are three other ways in which lm+1l\neq m+1 arises when lrml\geq r-m. If lrl\leq r then we have class (ii) to which Theorem 6 applies. If r<lm+r+1r<l\leq m+r+1 then Theorem 8 applies. Finally, if 2p1>q2p_{1}>q (which implies l>m+r+1l>m+r+1) then the elements of 𝒬\mathcal{Q} are a well-based sequence and Theorem 5 again applies.

5 Discussion

As a=|q𝒬|a=\left\lvert\mathbb{N}_{q}-\mathcal{Q}\right\rvert increases, so, in general, does the number of inner cycles in the digraph and we find more and more instances (e.g., when 𝒬={1,5}\mathcal{Q}=\{1,5\} [2]) where the digraph has inner cycles but no common node. In the simpler of such cases, it is still possible to derive general recursion relations analogous to (3) [1]. This enables one to find recursion relations for all the a=3a=3 cases, as we will demonstrate in forthcoming work. For cases where the digraph is more complex, we have not yet managed to formulate a general procedure for obtaining the recursion relations.

On looking up sequences (Sn)n0(S_{n})_{n\geq 0} for various choices of 𝒬\mathcal{Q} in the OEIS, a number of connections between certain classes of 𝒬\mathcal{Q} and some instances of strongly restricted permutations, combinations, and bit strings were identified. These are described and proved in [2].

Various authors have also considered the number of ways of choosing kk objects from nn arranged in a circle in such a way that no two chosen objects are certain disallowed separations apart [12, 14, 18, 17, 10, 11]. A modified version of our bijection covers such cases if we instead consider restricted-overlap tiling using curved squares and combs of a circular nn-board with the nn-th cell joined to the first cell. There are, however, subtleties about the rules for overlap which we will address in detail elsewhere.

Acknowledgements

The author thanks Brian Hopkins for discussions about the manuscript and the two anonymous referees for their suggestions.

References

  • [1] Allen MA (2022) On a two-parameter family of generalizations of Pascal’s triangle. J Integer Seq 25, 22.9.8.
  • [2] Allen MA (2024) Connections between combinations without specified separations and strongly restricted permutations, compositions, and bit strings. arXiv:2409.00624 [math.CO].
  • [3] Allen MA, Edwards K (2022) On two families of generalizations of Pascal’s triangle. J Integer Seq 25, 22.7.1.
  • [4] Allen MA, Edwards K (2023) Identities involving the tribonacci numbers squared via tiling with combs. Fibonacci Quart 61, 21–27.
  • [5] Allen MA, Edwards K (2024) Connections between two classes of generalized Fibonacci numbers squared and permanents of (0,1) Toeplitz matrices. Lin Multilin Algebra 72, 2091–2103.
  • [6] Benjamin AT, Quinn JJ (2003) Proofs That Really Count: The Art of Combinatorial Proof, Mathematical Association of America, Washington.
  • [7] Edwards K (2008/2009) A Pascal-like triangle related to the tribonacci numbers. Fibonacci Quart 46/47, 18–25.
  • [8] Edwards K, Allen MA (2015) Strongly restricted permutations and tiling with fences. Discrete Appl Math 187, 82–90.
  • [9] Edwards K, Allen MA (2021) New combinatorial interpretations of the Fibonacci numbers squared, golden rectangle numbers, and Jacobsthal numbers using two types of tile. J Integer Seq 24, 21.3.8.
  • [10] Guo VJW (2008) A new proof of a theorem of Mansour and Sun. European J Combin 29, 1582–1584.
  • [11] Guo VJW, Zeng J (2009) On arithmetic partitions of n\mathbb{Z}_{n}. European J Combin 30, 1281–1288.
  • [12] Kaplansky I (1943) Solution of the “problème des ménages”. Bull Am Math Soc 49, 784–785.
  • [13] Kitaev S (2006) Independent sets on path-schemes. J Integer Seq 9, 06.2.2.
  • [14] Konvalina J (1981) On the number of combinations without unit separation. J Combin Theor A 31, 101–107.
  • [15] Konvalina J, Liu YH (1991) Bit strings without qq-separation. BIT Numer Math 31, 32–35.
  • [16] Konvalina J, Liu YH (1991) Subsets without qq-separation and binomial products of Fibonacci numbers. J Combin Theor A 57, 306–310.
  • [17] Mansour T, Sun Y (2008) On the number of combinations without certain separations. European J Combin 29, 1200–1206.
  • [18] Moser WOJ (1986) The number of subsets without a fixed circular distance. J Combin Theor A 43, 130–132.
  • [19] Prodinger H (1983) On the number of combinations without a fixed distance. J Combin Theor A 35, 362–365.
  • [20] Sloane NJA (2010) The On-Line Encyclopedia of Integer Sequences, Published electronically at https://oeis.org.
  • [21] Valyuzhenich AA (2011) Some properties of well-based sequences. J Appl Ind Math 5, 612–614.