Abstract
Several articles deal with tilings with various colors and shapes. In this paper, we present a new type of tiling problem of a \((1\times n)\)—board where the colors have a prescribed order of preference and the size of colored dominoes is bounded by \((1\times s)\). We show that the total number of tilings can be given as a linearly recurrent sequence of order ks, and at the same time by a higher order self-convolution of s-generalized Fibonacci sequences.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
The investigation of tiling problems has been an intensively researched area of combinatorics. The researchers consider different shapes and colors of tiles, different boards, and different tiling rules.
Let \(r_n\) be the number of different tilings with \(1\times 1\) squares and \(1\times 2\) dominoes (two squares with a common edge) of a \((1\times n)\)—board. It is known that these tilings can be counted by the Fibonacci numbers (see, for example, Benjamin and Quinn [1]). In fact, \(r_n=F_{n+1}\) is the shifted Fibonacci sequence (as usual, \(F_n\) is defined by \(F_n=F_{n-1}+F_{n-2}\), \(F_0=0\), \(F_1=1\), and associated with A000045 in The On-Line Encyclopedia of Integer Sequences (OEIS) [2]). Considering the squares and dominoes, respectively, in a and b different colors, one finds \(r_{n}=a\, r_{n-1}+b\, r_{n-2}\) for \(n\ge 2\) with the initial values \(r_0=1\), \(r_1=a\) (see Refs. [1, 3]). Obviously, if \(a=b=1\), then we obtain the classical solution \(r_n=F_{n+1}\). Koshy [4, Chapter 33] defined the weight of a square to be x and that of a domino to be 1. This weighting provides combinatorial models for Fibonacci and Lucas polynomials using linear and circular tilings, and in that way, a general discussion of the tiling with squares and dominoes. The author has not only given the number of tilings made up of colored tiles but has also given a number of combinatorial identities of the Fibonacci and Lucas numbers using the well-known Fubini principle (counting objects in a set in two different ways gives the same result). In Ref. [4, Chapter 42], the reader can find similar models for the Chebyshev polynomial with different weightings of squares and dominoes.
It is also well-known that for \(s\ge 2\) the sequence of s-generalized Fibonacci (or s-bonacci, or s-Fibonacci) numbers \(F^{(s)}_{n+s-1}\) gives the number of tilings on a \((1\times n)\)–board with unicolored dominoes having maximal size \(1\times s\) [5]. As usual, the sequence \((F^{(s)}_{n})\) is defined by the recurrence \(F^{(s)}_{n}=F^{(s)}_{n-1}+F^{(s)}_{n-2}+\cdots + F^{(s)}_{n-s}\) with \(F^{(s)}_{0}= F^{(s)}_{1}= \cdots =F^{(s)}_{s-2}=0\), \(F^{(s)}_{s-1}=1\). Clearly, \(F_n=F^{(2)}_{n}\) holds for \(s=2\). The first few k-generalized Fibonacci sequences appear in (OEIS) [2], see A000045, A000073, A000078, A001591, A001592, A066178, A122189, A079262.
For a recent identity concerning the connection of s-generalized Fibonacci sequences and tilings, see Ref. [6]. Certain new results on s-generalized Fibonacci sequence were published by Belbachir and Belkhir [7], further Komatsu et al. [8]. Komatsu and Laohakosol [9] investigated some reciprocal sums of generalized Fibonacci sequence.
In the previous works, all colors had the same meaning, they had no order of importance. In contrast, in this article, unusually, we give preference rank to colors. We think that this new approach of tiling could trigger further investigations.
Let \(n\in \mathbb {N^+}\) and consider the domino tilings of a \((1\times n)\)—board with the following properties.
- Condition 1.:
-
Every domino has a color from the color set \(\{C_1,C_2,\ldots , C_k\}\), \(1\le k\in \mathbb {N}\).
- Condition 2.:
-
The size of a domino (in each color) is one of \(1\times \ell \), where \(\ell \) is a positive integer with \(1\le \ell \le s\).
- Condition 3.:
-
In the tilings, there exists a preference rank of colors such that color \(C_j\) cannot be used before color \(C_i\) (from left to right) if \(i<j\).
As an example, Fig. 1 illustrates all the tilings for \(n\le 3\), \(s=3\), when \(k=3\) and the colors \(C_1\), \(C_2\), and \(C_3\) are black, grey, and white, respectively. We note that if \(n\le 3\) and \(s\ge 3\), then we cannot use dominoes longer than 3. Thus, for example, for \(s=4\) Fig. 1 even shows all the tilings for \(n\le 3\), \(k=3\).
In the present work, we examine the number \(T_{k,s}(n)\) of possible tilings with the conditions above. The main result gives \(T_{k,s}(n)\) as a recursive sequence of n with parameters k and s. Note that
hold trivially. It turns out that the order of the recurrence is ks. The main tool is the method developed in Ref. [10, Theorem 2], which gives the characteristic polynomial of the component sequences of a suitable vector recurrence, and of \(T_{k,s}(n)\) at the same time. We remark that Németh and Szalay [11] described the sequence \(T_{k,2}(n)\) recursively as a corollary of a result on a specific system of two recurrence sequences with order s. The second important observation in this work is that the number \(T_{k,s}(n)\) of tilings can be provided by a self-convolution of s-generalized Fibonacci sequences.
In the next subsection, we prepare the machinery we need in the proof of Theorem 1 later. Section 2 studies the tiling problem in detail; the main result (Theorem 1) is illustrated in the cases \(k=2\) and \(k=3\). For larger k values, the precise computation becomes more and more difficult from technical point of view. Moreover, we present one-to-one correspondence between the binary strings and our tilings. Finally, the convolution approach will be presented.
1.1 Vector Recurrences
Now we turn our attention to the basic tool we will apply to solve our tiling problem.
As before, let \(k\ge 1\) and \(s\ge 1\) denote two positive integers. Assume that there are given the matrices \(\textbf{A}_t=\left[ a_{i,j}^{(t)}\right] \in \mathbb {C}^{k\times k}\) for \(t=1,2,\dots ,s\). Define the vector recurrence
with initial column vectors \(\textbf{v}_{0},\textbf{v}_{1},\dots ,\textbf{v}_{s-1}\in \mathbb {C}^k\). One important endeavor is to separate the component sequences of the vectors \((\textbf{v}_n)\) and find a common linear recurrence relation to describe them. The main advantage of our solution is the uniform treatment and the possibility of automatism. This is given in Ref. [10, Theorem 2.1], and can be formulated as follows. Let \(\textbf{I}_k\) denote the \(k\times k\) unit matrix.
Lemma 1
The common characteristic polynomial of the component sequences of \((\textbf{v}_n)\) is
This lemma is the key tool in determining the number of the tilings presented above. We note that \(ks^2+ks-s^2\) was the exponent of \(-1\) we computed originally, but \((-1)^s\) gives an equivalent coefficient to the determinant since \(ks^2+ks\) is always even.
2 Tiling with Colored Dominoes
In this section, we find the characteristic polynomial of the recursive sequence \((T_{k,s}(n))\) and the exact recurrence relations for \(k=2\) and \(1\le s\le 7\).
Theorem 1
The characteristic polynomial of the recursive sequence \((T_{k,s}(n))\) is
It implies immediately that the order of recursion which determines \((T_{k,s}(n))\) is ks.
Proof
Under Conditions 1–3, let \(c_{i}(n)\) (\(1\le i\le k\)) denote the number of different tilings of a \((1\times n)\)-board when the last domino has color \(C_i\). (Note that here we do not denote the parameter s.) Clearly, \(T_{k,s}(n)=\sum _{i=1}^kc_i(n)\).
It follows from the constraints that
holds for any \(1\le i\le k\). (See also [11] for the case \(k=2\).) If we consider \(c_i(n)\) as the ith component of the vector \(\textbf{v}_n\), then we obtain a particular case of the vector recurrence (2). Indeed, writing out (3) in details we find
This system can be also given in the form (2) with matrices
Put
Since all \(\textbf{A}_i\) are equal, we can denote them by \(\textbf{A}\). Moreover, let \(x_s=1+x+\cdots +x^{s-1}\). Then
and according to Lemma 1 we have
Obviously, \(x_s=(x^s-1)/(x-1)\), further
Consequently, the zeros of the characteristic polynomial p(x) in this particular case coincide to the zeros of \(d(x)=x^s-x_s=x^s-x^{s-1}-\cdots -x-1\). Note that this polynomial is the characteristic polynomial of the s-generalized Fibonacci sequence. It is known that d(x) is a Pisot polynomial possessing single zeros. Thus, each zero of \(p(x)=(d(x))^k\) has multiplicity k. We record the result we have proved, this is the principal statement of this paper. \(\square \)
Hence, we have the characteristic polynomial p(x), and it implies the recursive rule for \(T_{k,s}(n)\) in direct manner (in n). We illustrate it for small values of k in the next two subsections.
2.1 Example: Two-Color-Tilings (\(k=2\))
Consider now the case \(k=2\), i.e., we have only two colors.
Then
and \(p(x)=\det (\textbf{B}_s(x))=(x_s-x^s)^2\). We can easily have
To compute the coefficients of the polynomial, p(x) we apply Horner’s methodFootnote 1. For simplicity, let \(p_a(x)=(x-1)^2p(x)\) and \(p_b(x)=(x-1)p(x)\) be introduced.
First, we copy the coefficients of \(p_a(x)=x^{2s+2}-4x^{2s+1}+4x^{2s}+2x^{s+1}-4x^s+1\) into the first row of Table 1. Then, following Horners’s scheme, we calculate the quotient polynomial \(p_a(x)/(x-1)=p_b(x)\). The coefficients of \(p_b(x)\) appear in the second row of the table. Then we divide this result again by \(x-1\), and the coefficient of p(x) can be seen in the last row of the table. For technical reason, we assume that \(s\ge 3\). For \(s=1\) and \(s=2\) one can derive \(\det (\textbf{B}_k(x))\) separately, the result is \(p(x)=(x-1)^2=x^2-2x+1\), and \(p(x)=(1+x-x^2)^2=x^4-2x^3-x^2+2x+1\), respectively.
After the program described in the previous paragraph, we turn our attention to the details. In the first row, looking at \(x^{2s+2}-4x^{2s+1}+4x^{2s}+2x^{s+1}-4x^s+1\), there are two blocks of zeros according to the zero coefficients of the polynomial. The first block contains \(s-2\) zeros, the second one does \(s-1\) zeros (see the first row of Table 1). At the beginning of the second row, value 1 indicates that we look for the polynomial evaluation of \(p_a(x)\) at 1. Since it is zero, we obtain the coefficients of the polynomial \(p_b(x)=p_a(x)/(x-1)\) in the second row. The second element (which is 1 again) is only a copy of the leading coefficient 1 of \(x^{2s+2}-4x^{2s+1}+4x^{2s}+2x^{s+1}-4x^s+1\). For other cells of the second row, we use elementary steps explained in the footnote. They give \(-3=1\cdot 1+(-4)\), then \(1=1\cdot (-3)+4\), then \(1=1\cdot 1+0\), etc. This way we obtain gradually the coefficients of \((x-1)p(x)\) in the second row. The third row can be found similarly, it gives the coefficients of p(x). Thus, it follows for \(s\ge 3\) that we have
see Table 1.
The determinant implies immediately the recursive rule for the sequences \((c_i(n))\) (\(i=1,2\)), as well as the number \(T_{2,s}(n)\) of different tilings, as follows. For our convenience, put \({\tau }_{s}(n)=T_{2,s}(n)\). For \(n\ge 2s\), from (4) we find the recurrence
Clearly, we need the initial values \({\tau }_{s}(0), {\tau }_{s}(1),\dots ,\) \({\tau }_{s}(2s-1)\) in order to fix the sequence \(({\tau }_{s}(n))\) completely.
As an illustration we give the cases \(1\le s\le 4\) here:
The initial values are \({\tau }_{s}(0)=1\) and \({\tau }_{s}(1)=2\) from (1), and for \(n\ge 2\) we use again (1) and consider Fig. 1 restricted only to two colors (or see [11]). For the further n and s, Eq. (5) of Theorem 2 provides the initial values later, as we will see in Sect. 2.3. For our convenience, we computed the first few terms of sequences \((\tau _{s}(n))\) in the cases \(1\le s\le 4\):
They appear in OEIS [2] as A000027, A001629, A073778, A118898, respectively. (The corresponding sequences are not in OEIS for larger integer s.) Moreover, the rows of Table 2 show the coefficients of the recurrence relations for \(s=1,2,\dots ,7\). We note that this result is compatible with the arguments of Ref. [11].
2.2 Example: Three-Color Tiling (\(k=3\))
The equivalent computation to the previous subsection works with
The three-step consecutive application of Horner’s scheme provides \(p(x)=\sum _{i=1}^3p_i(x)\), where
The characteristic polynomial immediately implies the corresponding recurrence rule. For example, in case of \(s=2\) it follows that
Note that the method based on the application of Horner’s scheme would work theoretically if k is larger, but the technical execution would become more and more complicated as k is increasing. On the other hand, the formulae we obtain would not be attractive.
2.3 A General Convolution Result
Let \(\widetilde{F}^{(s)}_{n}={F}^{(s)}_{n+s-1}\) denote the nth term (\(n\ge 0\)) of the shifted non-zero s-generated Fibonacci sequence.
Theorem 2
The sequence \((T_{k,s}(n))_{n=0}^\infty \) is the k-order self-convolution of the non zero s-generated Fibonacci sequence. More precisely, for all \(n,k,s\ge 0\) we have
Proof
In the virtue of the tiling conditions the colored dominoes in a tiling are separated from left to right according to the preference order of the colors. Let \({\ell }_i\) be the length of the \(C_i\)-colored sub-tiling, where \(0\le {\ell }_i \le n\) and \(\sum _{i=1}^{k} {\ell }_i =n\). Figure 2 illustrates the scheme of such a possible tiling. Clearly, the ith sub-board can be tiled \(\widetilde{F}^{(s)}_{\ell _i}\) different ways, and their product enumerates the number of tilings with fixed color separation. Considering all the possible values of \({\ell }_i\)’s we obtain \(T_{k,s}(n)\) as a sum of the corresponding products. Hence, (5) is valid.
2.4 Binary Strings and Tilings
If we consider the unicolored tilings, for example, with grey color, then we can give a one-to-one correspondence between \((1\times n)\)–tilings and the binary bit strings of length \(n-1\) with no block of s or more 0’s. The base of the bijection is what follows. Imagine a \((1\times n)\) square grid behind the tiling, where neighbor squares are separated from each other by vertical edges. If such an edge is covered by the tiling, then we write 0 above the edge; otherwise, we write 1. Figure 3 shows a \((1\times 10)\)—tiling and its corresponding binary string.
Similarly, we can give a bijective connection between the tilings with our conditions and \(n-k_a\) long binary strings, where any string has no block of s or more 0’s and all the strings are grouped into \(k_a\) blocks with \(k-1\) separating signs \(\omega \). Here, \(k_a\) denotes the number of actual colors used in the tiling. If color \(C_i\) is not used in a tiling, then the colors \(C_{i-1}\) and \(C_{i+1}\) are separated doubly by \(\omega \omega \). Figure 4 illustrates a tiling and its corresponding separated binary string when \(k=k_a=3\) and \(s=3\). The separated binary sting has no sub-sequence 000.
3 Future Works and Possibilities for Further Application—New Type of Colored Tilings
As a further area of research, one can investigate tilings, where not only colours have a preference, but also the maximum length of dominoes depends on the colours. In this manner, the system of conditions for tilings is the following.
- Condition 1.:
-
Every domino has a color of \(k\ge 1\) different colors from the color set \(\{C_1,C_2,\dots , C_k\}\).
- Condition 2\(^\star \).:
-
The size of a domino in color \(C_m\) with \(1\le m\le k\) is one of \(1\times \ell \), where \(\ell \) and \(s_m\) are positive integers with \(1\le \ell \le s_m\).
- Condition 3.:
-
In a tiling, there exists a preference of colors, more precisely, color \(C_j\) cannot be used before color \(C_i\) (from left to right) if \(i<j\).
A more general tiling problem is defined by Condition 1–3 and the following additional condition:
- Condition 4.:
-
In a tiling, there exists a preference of dominoes; more precisely, dominoes \(1\times j\) cannot be used before dominoes \(1\times i\) (from left to right) if \(i<j\).
Data Availability
Data sharing not applicable to this article as no datasets were generated or analysed during the current study.
Code Availability
Not applicable.
Notes
Horner’s method is a procedure for polynomial evaluation (see, for instance, the excellent book of Knuth [12, pp. 467–472]). If the polynomial value is zero at \(\alpha \in \mathbb {C}\), then the table gives directly the result of the polynomial division by \(x-\alpha \). The elementary step to obtain the value of one cell is to multiply the value of the previous left-hand side cell by \(\alpha \) and add the corresponding coefficient of the polynomial, which is located above the cell in question.
References
Benjamin, A.T., Quinn, J.J.: Proofs that really count: the art of combinatorial proof. Dolciani Math. Expo. 27, 209 (2003)
OEIS Foundation Inc.: The On-Line Encyclopedia of Integer Sequences (2024). http://oeis.org
Benjamin, A.T., Quinn, J.J.: The Fibonacci numbers—exposed more discretely. Math. Mag. 33, 182–192 (2002)
Koshy, T.: Fibonacci and Lucas numbers with applications. Pure Appl. Math. 2, 752 (2019)
Benjamin, A.T., Hanusa, C.R.H., Su, F.E.: Linear recurrences through Tilings and Markov chains. Utilitas Math. 64, 3–17 (2003)
Djemmada, Y., Mehdaoui, A., Németh, L., Szalay, L.: An identity for two sequences and its combinatorial interpretation. Ann. Math. Inform. (to appear, 2024) https://doi.org/10.33039/ami.2024.03.006
Belbachir, H., Belkhir, A.: Tiling approach to obtain identities for generalized Fibonacci and Lucas numbers. Ann. Math. Inform. 41, 13–17 (2013)
Komatsu, T., Németh, L., Szalay, L.: Tilings of hyperbolic \((2\times n)\)-board with colored squares and dominoes. ARS Math. Contemp. 15(2), 337–346 (2018). https://doi.org/10.26493/1855-3974.1470.e79
Komatsu, T., Laohakosol, V.: On the sum of reciprocals of numbers satisfying a recurrence relation of order \(s\). J. Integer Seq. 13(5), 10–58 (2010)
Faye, B., Németh, L., Szalay, L.: Linear vector recursions of arbitrary order. Discrete Math. Lett. 13, 50–57 (2024). https://doi.org/10.47443/dml.2024.029
Németh, L., Szalay, L.: Explicit solution of system of two higher-order recurrences (submitted, arXiv:2408.12196)
Knuth, D.E.: The art of computer programming, Volume 2 (3rd Ed.): Seminumerical Algorithms. Addison-Wesley Longman Publishing Co., Inc., USA (1997). https://doi.org/10.5555/270146
Acknowledgements
We would like to say thanks to the anonymous referee for the valuable comments, which really increased the quality and the presentation of the paper.
Funding
Open access funding provided by University of Sopron. L. Szalay was supported by the Hungarian National Foundation for Scientific Research Grant No. 130909. Author O. Khadir and L. Németh declare that no funds, grants, or other support were received during the preparation of this manuscript. Open access funding provided by University of Sopron.
Author information
Authors and Affiliations
Contributions
All authors contributed to the study conception and design. The first draft of the manuscript was written by L. Németh and L. Szalay and all authors commented on previous versions of the manuscript. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Conflict of interest
The authors declare that they have no Conflict of interest.
Consent for publication
Not applicable.
Consent to participate
Not applicable.
Ethics approval
Not applicable.
Materials availability
Not applicable.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Khadir, O., Németh, L. & Szalay, L. Tiling of dominoes with ranked colors. Results Math 79, 253 (2024). https://doi.org/10.1007/s00025-024-02284-3
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s00025-024-02284-3