betaFeedback

WorksMathematics

Rotating-Memory Fibonacci Numbers and Periodic Tilings

Abstract

We introduce and study the rotating-memory Fibonacci numbers, a periodic variable-order analogue of the Fibonacci sequence in which the number of preceding terms used in the recurrence changes cyclically with the index. Despite this varying memory, the resulting sequences exhibit a remarkably rigid structure. We derive closed forms, rational generating functions, arithmetic properties, and exact growth behavior, and show that the sequence decomposes naturally into geometric subsequences. We also develop combinatorial interpretations in terms of periodically constrained tilings, and restricted compositions, including bijective explanations for the multiplicative structure of the sequence. In addition, the first two nonclassical periods admit natural geometry-driven realizations: the period-2 sequence arises from monomer–dimer tilings of a triangular chain, while the period-3 sequence is related to tilings of a double hexagon strip by single and double hexagons. These connections provide geometric interpretations of the rotating recurrence in which the periodic behavior is induced by the underlying structures themselves, and suggest a broader problem of constructing analogous models for higher periods.

Introduction

The Fibonacci sequence is one of the most extensively studied integer sequences, and its simple second-order recurrence has inspired numerous generalizations in number theory and combinatorics. One classical direction is to increase the fixed order of the recurrence, replacing the sum of the two preceding terms by the sum of a prescribed number of preceding terms. Higher-order Fibonacci sequences have been studied for many decades; an early systematic treatment, including a matrix formulation, was given by [9]. These sequences and their variants continue to provide a natural setting in which recurrence relations, generating functions, matrix methods, and combinatorial enumeration interact.

Tilings provide one of the most useful combinatorial interpretations of Fibonacci-type recurrences. The familiar interpretation of Fibonacci numbers by tilings with monominoes and dominoes extends naturally to many generalized recurrence sequences; see, for example, Benjamin and Quinn [4]. Benjamin and Heberle [3] developed tiling arguments for higher-order rr-Fibonacci numbers, while Benjamin, Derks, and Quinn [2] showed more generally how linear recurrences can be represented and studied through weighted tiling models.

Most familiar Fibonacci generalizations retain a recurrence of fixed order. A different possibility is to allow the amount of memory itself to vary with the index. This direction was considered by Emerson [7], who studied variable order Fibonacci-type recurrences in which the nnth term is obtained by summing a variable number of preceding terms. His framework allows considerable freedom in the choice of the order function and leads to a broad range of possible growth behaviors. The present work focuses instead on a structured subclass in which the memory length varies periodically and consecutively.

More precisely, we consider a family in which, for a fixed period kk, the memory length rotates through 2,3,…,k+12, 3, \ldots, k+1 and then returns to 22. We call the resulting sequences Rotating-Memory Fibonacci numbers, or RM-Fibonacci numbers. The periodicity of the memory rule makes this family sufficiently flexible to differ substantially from fixed-order Fibonacci sequences, while at the same time imposing enough structure to permit an explicit analysis. One of the main themes of the paper is that a periodically varying memory length can conceal a remarkably simple multiplicative structure.

The combinatorial viewpoint plays an equally important role. We introduce a one-dimensional tiling model in which the admissible length of a tile depends periodically on the position at which the tile ends. This endpoint-dependent rule translates the rotating recurrence directly into a last tile decomposition. The same model can also be expressed in terms of restricted compositions, where the admissibility of a part depends on the partial sum at which it terminates. These interpretations make it possible to understand some of the algebraic behavior of RM-Fibonacci numbers bijectively rather than only through recurrence manipulations.

Beyond these general position-dependent models, the first two nonclassical periods admit natural geometric realizations in which the periodicity is induced by the underlying structure itself. For period 22, the RM-Fibonacci sequence is, up to the initial shift recorded in Table 1, sequence A038754 in The On-Line Encyclopedia of Integer Sequences [10]. We show that its terms enumerate monomer–dimer tilings of a triangular chain when one boundary vertex is prescribed to be a monomer.

Table 1.

kkR0,R1,…,R16R_0, R_1, \ldots, R_{16}OEIS
10, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987A000045(nn)
20, 1, 1, 2, 3, 6, 9, 18, 27, 54, 81, 162, 243, 486, 729, 1458, 2187A038754(n−2n - 2)
30, 1, 1, 2, 4, 8, 12, 24, 48, 72, 144, 288, 432, 864, 1728, 2592, 5184A354541(n−1n - 1)
40, 1, 1, 2, 3, 6, 12, 24, 36, 72, 144, 288, 432, 864, 1728, 3456, 5184-
50, 1, 1, 2, 4, 6, 12, 24, 48, 96, 144, 288, 576, 1152, 2304, 3456, 6912-

Table 1. Initial values of the RM-Fibonacci sequences for periods k=1,…,5k = 1, \ldots, 5.

jjhexagonal configuration
1[s][s],
2[s−1,s][s-1,s],
3[s−1]∪[s−2,s][s-1] \cup[s-2,s],
4[s−3,s−1]∪[s−2,s][s-3,s-1] \cup[s-2,s].

Table 1.

A related phenomenon occurs for period 33. Hexagonal tilings have previously been used to realize several Fibonacci-type sequences. Jin and Dresden [8] used hexagonal double-strip tilings to obtain Tetranacci identities, while Došlić and Podrug [5] developed tiling models on honeycomb strips leading to Tribonacci, Padovan, Narayana’s cow, and related sequences. In our setting, the shifted period-33 RM-Fibonacci sequence coincides with A354541, which enumerates tilings of a double hexagon strip by single and double hexagons. Together, the triangular-chain and double-hexagon models suggest that rotating memory may admit natural geometric realizations beyond the explicitly position-dependent tiling construction.

The remainder of the paper is organized as follows. Section 22 introduces the RM-Fibonacci

numbers and illustrates the construction for several small periods. Section 3 develops the structural properties of the recurrence and establishes the period-collapse phenomenon. Section 4 derives closed forms, arithmetic properties, generating functions, and growth results. Section 5 develops the combinatorial interpretations in terms of endpoint-periodic tilings, and restricted compositions, together with bijective explanations of the underlying multiplicative structure. Section 6 gives a geometric realization of the period-2 sequence in terms of monomer–dimer tilings of a triangular chain. Section 7 focuses on the period-3 case and its connection with tilings of a double hexagon strip. Finally, Section 8 summarizes the main findings and discusses open problems and directions for further research.

Rotating-Memory Fibonacci Numbers

We begin with the basic definition. Throughout the paper, if an index is negative, the corresponding sequence term is understood to be zero.

Definition 1. Let k≥1k \ge1. The Rotating-memory Fibonacci sequence of period kk is the sequence (Rn(k))n≥0\left(R_n^{(k)}\right)_{n \ge0} defined by

R0(k)=0,R1(k)=1,∀n≥2:Rn(k)=∑j=12+(n mod k)Rn−j(k).(1)R_0^{(k)} = 0,\qquad R_1^{(k)} = 1,\qquad\forall n \ge2 : R_n^{(k)} = \sum_{j=1}^{2+(n \bmod k)} R_{n-j}^{(k)}. \tag*{(1)}

where Rm(k)=0R_m^{(k)} = 0 for all m<0m < 0.

Thus the memory length is the periodic function ℓk(n)=2+(n mod k)\ell_k(n) = 2 + (n \bmod k), whose values, according to the residue class of nn, are 2,3,…,k+12, 3, \ldots, k + 1.

For k=1k = 1, we recover the classical Fibonacci sequence, since n mod 1=0n \bmod1 = 0 for every nn. Hence

Rn(1)=Rn−1(1)+Rn−2(1),n≥2,R_n^{(1)} = R_{n-1}^{(1)} + R_{n-2}^{(1)},\qquad n \ge2,

with R0(1)=0R_0^{(1)} = 0 and R1(1)=1R_1^{(1)} = 1.

For k=2k = 2, the memory length alternates between 2 and 3. Therefore

Rn(2)={Rn−1(2)+Rn−2(2),n≡0(mod2),Rn−1(2)+Rn−2(2)+Rn−3(2),n≡1(mod2),R_n^{(2)} = \begin{cases} R_{n-1}^{(2)} + R_{n-2}^{(2)}, & n \equiv0 \pmod{2},\\ R_{n-1}^{(2)} + R_{n-2}^{(2)} + R_{n-3}^{(2)}, & n \equiv1 \pmod{2}, \end{cases}

with R0(2)=0R_0^{(2)} = 0, R1(2)=1R_1^{(2)} = 1, and Rm(2)=0R_m^{(2)} = 0 for m<0m < 0.

For k=3k = 3, the memory length rotates through 2, 3, and 4. Hence

Rn(3)={Rn−1(3)+Rn−2(3),n≡0(mod3),Rn−1(3)+Rn−2(3)+Rn−3(3),n≡1(mod3),Rn−1(3)+Rn−2(3)+Rn−3(3)+Rn−4(3),n≡2(mod3),R_n^{(3)} = \begin{cases} R_{n-1}^{(3)} + R_{n-2}^{(3)}, & n \equiv0 \pmod{3},\\ R_{n-1}^{(3)} + R_{n-2}^{(3)} + R_{n-3}^{(3)}, & n \equiv1 \pmod{3},\\ R_{n-1}^{(3)} + R_{n-2}^{(3)} + R_{n-3}^{(3)} + R_{n-4}^{(3)}, & n \equiv2 \pmod{3}, \end{cases}

with R0(3)=0R_0^{(3)} = 0, R1(3)=1R_1^{(3)} = 1, and Rm(3)=0R_m^{(3)} = 0 for m<0m < 0.

Initial values of the RM-Fibonacci sequences for the first few periods and their OEIS correspondences are given in Table 1.

Although the rows look rather different near the origin, the structure after one complete period is remarkably rigid.

We first determine the initial transient.

Lemma 1. For k≥2k \ge2, the initial terms of the RM-Fibonacci sequence satisfy

Rn(k)={1,k=2, n=2,2n−2,k≥3, 2≤n≤k−1,2,k=3, n=k,3⋅2k−4,k≥4, n=k.R_n^{(k)} = \begin{cases} 1, & k = 2,\ n = 2,\\ 2^{n-2}, & k \ge3,\ 2 \le n \le k - 1,\\ 2, & k = 3,\ n = k,\\ 3 \cdot2^{k-4}, & k \ge4,\ n = k. \end{cases}

Proof. Let 2≤n≤k−12 \le n \le k - 1. Since n mod k=nn \bmod k = n, the memory length at nn is n+2n + 2. All terms with negative indices vanish, so

Rn(k)=∑j=1nRn−j(k)=∑i=0n−1Ri(k).R_n^{(k)} = \sum_{j=1}^{n} R_{n-j}^{(k)} = \sum_{i=0}^{n-1} R_i^{(k)}.

Since R0(k)=0R_0^{(k)} = 0 and R1(k)=1R_1^{(k)} = 1, it follows successively that R2(k)=1R_2^{(k)} = 1, R3(k)=2R_3^{(k)} = 2, R4(k)=4R_4^{(k)} = 4, and an immediate induction gives Rn(k)=2n−2R_n^{(k)} = 2^{n-2} for 2≤n≤k−12 \le n \le k - 1.

At n=kn = k the cycle resets, so the recurrence has order 2:

Rk(k)=Rk−1(k)+Rk−2(k).R_k^{(k)} = R_{k-1}^{(k)} + R_{k-2}^{(k)}.

For k≥4k \ge4, the formula just proved gives

Rk(k)=2k−3+2k−4=3⋅2k−4.R_k^{(k)} = 2^{k-3} + 2^{k-4} = 3 \cdot2^{k-4}.

The cases k=2k = 2 and k=3k = 3 follow directly from the initial values.

The next section shows that after this short initial phase no complicated high-order analysis is needed.

Collapse of the Rotating Recurrence

The main structural fact is that consecutive terms are related by simple multiplicative factors. We distinguish between a reset position, meaning an index divisible by kk, and all other positions.

Lemma 2. Let k≥2k \ge2, and let n≥3n \ge3 satisfy n≢0(modk)n \not\equiv0 \pmod{k}. Then Rn(k)=2Rn−1(k)R_n^{(k)} = 2R_{n-1}^{(k)}. Proof. Write r=n mod kr=n\bmod k with 1≤r≤k−11\le r\le k-1. By Definition [1],

Rn(k)=∑j=1r+2Rn−j(k).R_n^{(k)}=\sum_{j=1}^{r+2}R_{n-j}^{(k)}.

Since (n−1) mod k=r−1(n-1)\bmod k=r-1, the recurrence at n−1n-1 has memory length r+1r+1, and therefore

Rn−1(k)=∑j=1r+1Rn−1−j(k)=∑j=2r+2Rn−j(k).R_{n-1}^{(k)}=\sum_{j=1}^{r+1}R_{n-1-j}^{(k)}=\sum_{j=2}^{r+2}R_{n-j}^{(k)}.

Consequently,

Rn(k)=Rn−1(k)+∑j=2r+2Rn−j(k)=2Rn−1(k).R_n^{(k)}=R_{n-1}^{(k)}+\sum_{j=2}^{r+2}R_{n-j}^{(k)}=2R_{n-1}^{(k)}.

Thus every time the memory increases by one, the sequence simply doubles. Only the reset from memory k+1k+1 back to memory 2 behaves differently.

Lemma 3. Let k≥2k\ge2, and let n≥4n\ge4 satisfy n≡0(modk)n\equiv0\pmod k. Then Rn(k)=32Rn−1(k)R_n^{(k)}=\frac{3}{2}R_{n-1}^{(k)}.

Proof. At a reset position the memory length is 2, and hence

Rn(k)=Rn−1(k)+Rn−2(k).R_n^{(k)}=R_{n-1}^{(k)}+R_{n-2}^{(k)}.

Since n−1≡k−1(modk)n-1\equiv k-1\pmod k, Lemma [2] gives Rn−1(k)=2Rn−2(k)R_{n-1}^{(k)}=2R_{n-2}^{(k)}. Therefore Rn−2(k)=12Rn−1(k)R_{n-2}^{(k)}=\frac{1}{2}R_{n-1}^{(k)}, and hence

Rn(k)=Rn−1(k)+12Rn−1(k)=32Rn−1(k).R_n^{(k)}=R_{n-1}^{(k)}+\frac{1}{2}R_{n-1}^{(k)}=\frac{3}{2}R_{n-1}^{(k)}.

We can now state the main structural theorem, called the period-collapse theorem.

Theorem 1. Let k≥2k\ge2. Then, for every n≥kn\ge k,

Rn+k(k)=3⋅2k−2Rn(k).(2)R_{n+k}^{(k)}=3\cdot2^{k-2}R_n^{(k)}. \tag*{(2)}

Proof. Consider the kk successive transitions Rn(k)⟶Rn+1(k)⟶⋯⟶Rn+k(k)R_n^{(k)}\longrightarrow R_{n+1}^{(k)}\longrightarrow\cdots\longrightarrow R_{n+k}^{(k)}. Among the indices n+1,n+2,…,n+kn+1,n+2,\ldots,n+k there is exactly one multiple of kk. At that index, Lemma 3 contributes the factor 3/23/2. Each of the other k−1k-1 transitions occurs between resets, and Lemma 2 contributes a factor 2.

Since n≥kn\ge k, all the indices involved are beyond the exceptional initial positions. Therefore

Rn+k(k)Rn(k)=322k−1=3⋅2k−2⟹Rn+k(k)=3⋅2k−2Rn(k).\frac{R_{n+k}^{(k)}}{R_n^{(k)}}=\frac{3}{2}2^{k-1}=3\cdot2^{k-2}\Longrightarrow R_{n+k}^{(k)}=3\cdot2^{k-2}R_n^{(k)}.

It is useful to introduce the period multiplier ck:=3⋅2k−2c_k:=3\cdot2^{k-2}. Theorem 1 then reads simply

Rn+k(k)=ckRn(k).(3)R_{n+k}^{(k)}=c_kR_n^{(k)}. \tag*{(3)}

This result shows that the variable order recurrence [1], whose largest memory length is k+1k+1, eventually reduces to the sparse constant coefficient recurrence

Rn+k(k)−ckRn(k)=0.R_{n+k}^{(k)}-c_kR_n^{(k)}=0.

In particular, each residue class modulo kk evolves geometrically.

Corollary 1. Let k≥2k \ge2, 0≤r≤k−10 \le r \le k - 1, and q≥1q \ge1. Then

Rqk+r(k)=2rRk(k)ckq−1.(4)R^{(k)}_{qk+r} = 2^r R^{(k)}_k c_k^{q-1}. \tag*{(4)}

Proof. By Lemma 2, we have Rk+r(k)=2rRk(k)R^{(k)}_{k+r} = 2^r R^{(k)}_k with 0≤r≤k−10 \le r \le k - 1. Repeated application of Theorem 1 now gives

Rqk+r(k)=ckq−1Rk+r(k)=2rRk(k)ckq−1.R^{(k)}_{qk+r} = c_k^{q-1} R^{(k)}_{k+r} = 2^r R^{(k)}_k c_k^{q-1}.

Thus the entire sequence beyond its initial transient is obtained by repeating the same block shape 1,2,4,…,2k−11, 2, 4, \ldots, 2^{k-1}, while multiplying successive blocks by ckc_k.

For k≥4k \ge4, Lemma 1 gives an especially simple formula.

Corollary 2. Let k≥4k \ge4, q≥1q \ge1, and 0≤r≤k−10 \le r \le k - 1. Then

Rqk+r(k)=3q2(k−2)q+r−2.(5)R^{(k)}_{qk+r} = 3^q 2^{(k-2)q+r-2}. \tag*{(5)}

Proof. Using Rk(k)=3⋅2k−4R^{(k)}_k = 3 \cdot2^{k-4} and ck=3⋅2k−2c_k = 3 \cdot2^{k-2} in (4), we obtain

Rqk+r(k)=2r(3⋅2k−4)(3⋅2k−2)q−1.R^{(k)}_{qk+r} = 2^r \left(3 \cdot2^{k-4}\right)\left(3 \cdot2^{k-2}\right)^{q-1}.

Collecting powers of 22 and 33 gives (5).

Consequently, for every k≥4k \ge4, all terms after the initial transient are 3-smooth; that is, their only prime divisors are 2 and 3.

The period-collapse theorem also determines the consecutive term ratios exactly.

Corollary 3. Let k≥2k \ge2. For every n≥4n \ge4,

Rn(k)Rn−1(k)={32,n≡0(modk),2,n≢0(modk).\frac{R^{(k)}_n}{R^{(k)}_{n-1}} = \begin{cases} \frac{3}{2}, & n \equiv0 \pmod{k},\\ 2, & n \not\equiv0 \pmod{k}. \end{cases}

Consequently, the sequence of consecutive term ratios is periodic with period kk from n=4n = 4 onward.

In particular, the oscillatory growth is not merely asymptotically periodic: the periodic modulation becomes exact after finitely many terms. This observation will allow us to derive closed forms, generating functions, and asymptotic results without recourse to periodic matrix products.

Note that periodic dependence on the index has also been studied from a different perspective. Panario, Sahin, Wang, and Webb [11] introduced general conditional recurrences, in which the coefficients of a fixed-order linear recurrence depend on the residue class of the index. Such sequences satisfy a constant coefficient recurrence and admit rational generating functions. The RM-Fibonacci recurrence may be embedded in this framework by taking the maximal order k+1k + 1 and allowing the coefficients to be periodic zeros and ones. What is special in the present setting is the highly structured staircase pattern of these coefficients: it forces the general constant coefficient reduction to collapse to the sparse relation (2) which in turn yields exact consecutive term ratios, geometric residue class subsequences, and the combinatorial cycle decomposition developed below.

Another related direction concerns Fibonacci recurrences with periodic coefficients. Edson, Lewis, and Yayenie [6] introduced kk-periodic Fibonacci sequences in which the recurrence remains of order two while its coefficients vary periodically. The present construction is complementary: the coefficients of the active terms remain equal to one, while the number of active preceding terms itself changes periodically.

Closed Forms, Generating Functions, and Growth

The period-collapse theorem makes it possible to describe the RM-Fibonacci sequence almost completely. In particular, the apparently non-autonomous recurrence has a rational generating function and an exact periodically modulated exponential form.

Closed forms

After the first period, (4) already gives a complete closed form. For the two smallest nonclassical periods, we obtain simple expressions.

Proposition 1. For q≥1q \ge1, we have

R2q(2)=3q−1,R_{2q}^{(2)} = 3^{q-1},
R2q+1(2)=2⋅3q−1,R_{2q+1}^{(2)} = 2 \cdot3^{q-1},

and

R3q(3)=2⋅6q−1,R_{3q}^{(3)} = 2 \cdot6^{q-1},
R3q+1(3)=4⋅6q−1,R_{3q+1}^{(3)} = 4 \cdot6^{q-1},
R3q+2(3)=8⋅6q−1.R_{3q+2}^{(3)} = 8 \cdot6^{q-1}.

Proof. For k=2k = 2 we have R2(2)=1R_2^{(2)} = 1 and c2=3c_2 = 3, whereas for k=3k = 3, R3(3)=2R_3^{(3)} = 2 and c3=6c_3 = 6. The result follows immediately from (4).

For k≥4k \ge4, Formula (5) also determines the exact powers of 2 and 3 appearing in each term.

Corollary 4. Let k≥4k \ge4, q≥1q \ge1, and 0≤r≤k−10 \le r \le k - 1. Then

ν3(Rqk+r(k))=q\nu_3\left(R_{qk+r}^{(k)}\right) = q
ν2(Rqk+r(k))=(k−2)q+r−2,\nu_2\left(R_{qk+r}^{(k)}\right) = (k - 2)q + r - 2,

where νp(m)\nu_p(m) denotes the pp-adic valuation of $m.

This gives a transparent arithmetic description of the sequence: the exponent of 3 records the number of completed memory cycles, while the exponent of 2 records both the cycle number and the position within the current cycle.

The sums of complete blocks are equally simple.

Proposition 2. For q≥1q \ge1, we have

∑r=0k−1Rqk+r(k)={(2k−1)Rk(k)ckq−1,k=2,3,(2k−1)3q2(k−2)q−2,k≥4.\sum_{r=0}^{k-1} R_{qk+r}^{(k)} = \begin{cases} (2^k - 1)R_k^{(k)}c_k^{q-1}, & k = 2,3,\\ (2^k - 1)3^{q2^{(k-2)q-2}}, & k \ge4. \end{cases}

Proof. Using Corollary 1,

∑r=0k−1Rqk+r(k)=Rk(k)ckq−1∑r=0k−12r.\sum_{r=0}^{k-1} R_{qk+r}^{(k)} = R_k^{(k)}c_k^{q-1}\sum_{r=0}^{k-1}2^r.

Since

∑r=0k−12r=2k−1,\sum_{r=0}^{k-1}2^r = 2^k - 1,

the first formula follows. The second follows from Corollary 2.

Rational generating functions

A periodic recurrence with variable order might initially suggest a more complicated generating-function structure. In the present case, however, Theorem 1 shows that the ordinary generating function is rational. Let Gk(x)=∑n≥0Rn(k)xnG_k(x) = \sum_{n \ge0} R_n^{(k)}x^n.

Theorem 2. For every k≥2k \ge2, we have

Gk(x)=Pk(x)1−ckxk.G_k(x) = \frac{P_k(x)}{1-c_kx^k}.

where

Pk(x)=∑n=0k−1Rn(k)xn+∑r=0k−1(Rk+r(k)−ckRr(k))xk+r.P_k(x) = \sum_{n=0}^{k-1} R_n^{(k)}x^n + \sum_{r=0}^{k-1}\left(R_{k+r}^{(k)}-c_kR_r^{(k)}\right)x^{k+r}.

Proof. Multiplying Gk(x)G_k(x) by 1−ckxk1-c_kx^k gives

(1−ckxk)Gk(x)=∑n≥0Rn(k)xn−ck∑n≥0Rn(k)xn+k.(1-c_kx^k)G_k(x) = \sum_{n\ge0}R_n^{(k)}x^n-c_k\sum_{n\ge0}R_n^{(k)}x^{n+k}.

Hence the coefficient of xmx^m is Rm(k)R_m^{(k)} when m<km<k, and Rm(k)−ckRm−k(k)R_m^{(k)}-c_kR_{m-k}^{(k)} when m≥km\ge k.

By Theorem 1, we have

Rm(k)=ckRm−k(k),R_m^{(k)}=c_kR_{m-k}^{(k)},

for all m≥2km \ge2k, so all coefficients of degree at least 2k2k vanish. Therefore (1−ckxk)Gk(x)(1-c_kx^k)G_k(x) is the polynomial Pk(x)P_k(x) displayed above. □

For k=2k=2 and k=3k=3, this yields the following expressions.

Corollary 5. We have

G2(x)=x+x2−x31−3x2,G_2(x)=\frac{x+x^2-x^3}{1-3x^2},
G3(x)=x+x2+2x3−2x4+2x51−6x3.G_3(x)=\frac{x+x^2+2x^3-2x^4+2x^5}{1-6x^3}.

For k≥4k \ge4, almost all terms in the second sum defining Pk(x)P_k(x) cancel, leading to a compact formula.

Theorem 3. Let k≥4k \ge4. Then

Gk(x)=x+∑j=2k−12j−2xj+3⋅2k−4xk−3⋅2k−3xk+11−3⋅2k−2xk.G_k(x)=\frac{x+\sum_{j=2}^{k-1}2^{j-2}x^j+3\cdot2^{k-4}x^k-3\cdot2^{k-3}x^{k+1}}{1-3\cdot2^{k-2}x^k}.

Equivalently,

Gk(x)=x+x21−(2x)k−21−2x+3⋅2k−4xk(1−2x)1−3⋅2k−2xk.G_k(x)=\frac{x+x^2\frac{1-(2x)^{k-2}}{1-2x}+3\cdot2^{k-4}x^k(1-2x)}{1-3\cdot2^{k-2}x^k}.

Proof. For 0≤r≤k−10 \le r \le k-1, Corollary 1 gives Rk+r(k)=2rRk(k)R_{k+r}^{(k)}=2^rR_k^{(k)}. For k≥4k \ge4, Rk(k)=3⋅2k−4R_k^{(k)}=3\cdot2^{k-4} and ck=3⋅2k−2=4Rk(k)c_k=3\cdot2^{k-2}=4R_k^{(k)}.

For r≥2r \ge2, Rr(k)=2r−2R_r^{(k)}=2^{r-2}, so

Rk+r(k)−ckRr(k)=2rRk(k)−4Rk(k)2r−2=0.R_{k+r}^{(k)}-c_kR_r^{(k)}=2^rR_k^{(k)}-4R_k^{(k)}2^{r-2}=0.

For r=0r=0,

Rk(k)−ckR0(k)=Rk(k).R_k^{(k)}-c_kR_0^{(k)}=R_k^{(k)}.

while for r=1r=1,

Rk+1(k)−ckR1(k)=2Rk(k)−4Rk(k)=−2Rk(k).R_{k+1}^{(k)}-c_kR_1^{(k)}=2R_k^{(k)}-4R_k^{(k)}=-2R_k^{(k)}.

Substitution into Theorem 2 yields the result.

Thus, despite being defined by a periodically changing recurrence order, the RM-Fibonacci sequence belongs to the class of C-finite sequences after a finite initial transient.

The constant coefficient recurrence (3) has characteristic polynomial

χk(z)=zk−ck=zk−3⋅2k−2.(6)\chi_k(z)=z^k-c_k=z^k-3\cdot2^{k-2}. \tag*{(6)}

Let ρk=ck1/k=(3⋅2k−2)1/k\rho_k=c_k^{1/k}=\left(3\cdot2^{k-2}\right)^{1/k}. If ζk=e2πi/k\zeta_k=e^{2\pi i/k}, then the roots of (6) are

ρk, ρkζk, ρkζk2, …, ρkζkk−1.\rho_k,\ \rho_k\zeta_k,\ \rho_k\zeta_k^2,\ \ldots,\ \rho_k\zeta_k^{k-1}.

Unlike the usual Fibonacci recurrence, there is no single characteristic root having strictly greater modulus than all the others: every root has modulus ρk\rho_k. This is precisely what produces the periodic modulation according to the residue class of nn.

Indeed, writing n=qk+rn=qk+r with 0≤r≤k−10\le r\le k-1, we obtain Rn(k)=Ck,rρknR_n^{(k)}=C_{k,r}\rho_k^n for all q≥1q\ge1, where

Ck,r=2rRk(k)ckρkr.C_{k,r}=\frac{2^rR_k^{(k)}}{c_k\rho_k^r}.

Thus the normalized sequence Rn(k)ρkn\frac{R_n^{(k)}}{\rho_k^n} is eventually periodic with period kk.

Exponential growth

The preceding formulas determine the exponential growth exactly.

Theorem 4. For every k≥2k\ge2, we have

lim⁡n→∞(Rn(k))1/n=ρk=2(34)1/k.(7)\lim_{n\to\infty}\left(R_n^{(k)}\right)^{1/n}=\rho_k=2\left(\frac{3}{4}\right)^{1/k}. \tag*{(7)}

Proof. Let n=qk+rn=qk+r with 0≤r≤k−10\le r\le k-1. Using Corollary 1,

Rn(k)=2rRk(k)ckq−1.R_n^{(k)}=2^rR_k^{(k)}c_k^{q-1}.

Therefore

1nlog⁡Rn(k)=rlog⁡2+log⁡Rk(k)+(q−1)log⁡ckqk+r.\frac{1}{n}\log R_n^{(k)}=\frac{r\log2+\log R_k^{(k)}+(q-1)\log c_k}{qk+r}.

As n→∞n\to\infty, necessarily q→∞q\to\infty, and hence

lim⁡n→∞1nlog⁡Rn(k)=1klog⁡ck.\lim_{n\to\infty}\frac{1}{n}\log R_n^{(k)}=\frac{1}{k}\log c_k.

Exponentiating gives

lim⁡n→∞(Rn(k))1/n=ck1/k.\lim_{n\to\infty}\left(R_n^{(k)}\right)^{1/n}=c_k^{1/k}.

Finally,

ck1/k=(3⋅2k−2)1/k=2(34)1/k.c_k^{1/k}=\left(3\cdot2^{k-2}\right)^{1/k}=2\left(\frac{3}{4}\right)^{1/k}.

The growth rate has a simple dependence on the rotation period.

Proposition 3. The sequence (ρk)k≥2(\rho_k)_{k \ge2} is strictly increasing and 3=ρ2<ρ3<ρ4<⋯<2\sqrt{3} = \rho_2 < \rho_3 < \rho_4 < \cdots< 2. Moreover, lim⁡k→∞ρk=2\lim_{k \to\infty} \rho_k = 2.

Proof. From (7),

log⁡ρk=log⁡2+1klog⁡34.\log\rho_k = \log2 + \frac{1}{k}\log\frac{3}{4}.

Since log⁡34<0\log\frac{3}{4} < 0, the quantity 1klog⁡34\frac{1}{k}\log\frac{3}{4} is strictly increasing with kk. Hence ρk\rho_k is strictly increasing.

Furthermore, (34)1/k<1\left(\frac{3}{4}\right)^{1/k} < 1, so ρk<2\rho_k < 2 for every finite kk, while lim⁡k→∞(34)1/k=1\lim_{k \to\infty}\left(\frac{3}{4}\right)^{1/k} = 1. Therefore lim⁡k→∞ρk=2\lim_{k \to\infty} \rho_k = 2.

Consequently, allowing a longer rotation of the memory lengths increases the average exponential growth rate. The limiting value 2 is natural: within each period, all but one transition are exact doublings, while the single reset transition has the smaller factor 3/23/2.

The global growth rate ρk\rho_k describes the geometric mean over a period, but consecutive terms alternate between two exact local growth factors. Indeed,

∏j=1kRn+j(k)Rn+j−1(k)=322k−1=ck,\prod_{j=1}^{k} \frac{R_{n+j}^{(k)}}{R_{n+j-1}^{(k)}} = \frac{3}{2}2^{k-1} = c_k,

and hence

ρk=(322k−1)1/k.\rho_k = \left(\frac{3}{2}2^{k-1}\right)^{1/k}.

Thus the exponential growth rate is the geometric mean of the kk local multipliers occurring during one memory cycle, i.e.,

ρk=(2⋅2⋅⋯⋅2⏟k−1 times⋅32)1/k.\rho_k = \left(\underbrace{2 \cdot2 \cdot\cdots\cdot2}_{k-1\ \text{times}} \cdot\frac{3}{2}\right)^{1/k}.

This reconciles the periodic behavior of the consecutive quotients with the existence of a single global exponential growth rate.

Periodic Tilings and Restricted Compositions

Before introducing the formal tiling model, it is useful to keep a simple picture in mind. Imagine a worker constructing a long wall from left to right while the available tile lengths change periodically. At successive stages, the supplier offers tiles of lengths

1,2;1,2,3;1,2,3,4;…;1,2,…,k+1,1,2;\qquad1,2,3;\qquad1,2,3,4;\qquad\ldots;\qquad1,2,\ldots,k+1,

after which the same cycle begins again. Thus the set of admissible tile lengths depends on the phase of the construction.

For example, when k=3k=3, the available lengths cycle as

{1,2},{1,2,3},{1,2,3,4},{1,2},…\{1,2\},\qquad\{1,2,3\},\qquad\{1,2,3,4\},\qquad\{1,2\},\qquad\ldots

Consequently, when the right endpoint of the wall reaches a given position, the possible choices for the final tile depend periodically on that position. A last-tile decomposition therefore produces a recurrence whose order varies periodically. This is precisely the combinatorial mechanism underlying the RM-Fibonacci numbers.

The structural simplicity of RM-Fibonacci numbers thus has a natural tiling interpretation. As with the classical Fibonacci and higher-order Fibonacci sequences, the recurrence can be represented by tilings of a one-dimensional board. The essential difference is that the admissible tile lengths now depend periodically on the position at which a tile ends.

Since the empty tiling is naturally counted by 1, it is convenient to shift the RM-Fibonacci sequence by one position.

Definition 2. For k≥1k \ge1, define An(k):=Rn+1(k)A_n^{(k)} := R_{n+1}^{(k)} for all n≥0n \ge0. We also set Am(k)=0A_m^{(k)} = 0 for all m<0m < 0. In particular, A0(k)=1A_0^{(k)} = 1.

From Definition 1 of Rn(k)R_n^{(k)}, we obtain

An(k)=∑j=12+((n+1) mod k)An−j(k),n≥1.(8)A_n^{(k)} = \sum_{j=1}^{2+((n+1)\bmod k)} A_{n-j}^{(k)}, \qquad n \ge1. \tag*{(8)}

Thus the shifted sequence has precisely the normalization required for a tiling enumeration.

Endpoint-periodic tilings

Let

Lk(n):=2+((n+1) mod k),n≥1.L_k(n) := 2 + ((n+1)\bmod k), \qquad n \ge1.

The quantity Lk(n)L_k(n) will be interpreted as the largest tile length permitted for a tile whose right endpoint is position nn.

Definition 3. Let k≥1k \ge1. An RM-tiling of length nn and period kk is a tiling of a 1×n1 \times n board by integer length tiles such that every tile of length jj ending at position ss satisfies

1≤j≤Lk(s).(9)1 \le j \le L_k(s). \tag*{(9)}

The empty board has one tiling.

The condition depends on the right endpoint of each tile, rather than on its starting point. This convention is exactly what is required by the recurrence: when the last tile of a tiling of length nn is removed, the remaining object is an admissible tiling of length n−jn-j with no change to any earlier endpoint condition.

Let Tn(k)\mathcal{T}_n^{(k)} denote the set of RM-tilings of length nn, and write Tn(k)=∣Tn(k)∣T_n^{(k)} = \lvert\mathcal{T}_n^{(k)}\rvert.

Theorem 5. For every k≥1k \ge1 and n≥0n \ge0, we have Tn(k)=An(k)=Rn+1(k)T_n^{(k)} = A_n^{(k)} = R_{n+1}^{(k)}.

Proof. First, we have T0(k)=1=A0(k)T_0^{(k)} = 1 = A_0^{(k)}. Now, consider a nonempty RM-tiling of length nn. If its final tile has length jj, then by Definition 3, we have 1≤j≤Lk(n)1 \le j \le L_k(n). Removing this final tile leaves an arbitrary RM-tiling of length n−jn-j.

Conversely, every RM-tiling of length n−jn-j can be extended uniquely by appending a tile of length jj, provided 1≤j≤Lk(n)1 \le j \le L_k(n). Hence the usual last tile decomposition gives

Tn(k)=∑j=1Lk(n)Tn−j(k)=∑j=12+((n+1) mod k)Tn−j(k),T_n^{(k)} = \sum_{j=1}^{L_k(n)} T_{n-j}^{(k)} = \sum_{j=1}^{2+((n+1)\bmod k)} T_{n-j}^{(k)},

which is exactly recurrence (8). The initial conditions also agree, so Tn(k)=An(k)=Rn+1(k)T_n^{(k)} = A_n^{(k)} = R_{n+1}^{(k)}.

For k=1k = 1, one has L1(n)=2L_1(n) = 2 for every endpoint nn. Thus Definition 3 reduces to the familiar tiling of a board by monominoes and dominoes, recovering the classical Fibonacci tiling interpretation [3, 4].

Restricted compositions

The same objects may be described compactly as integer compositions.

Recall that a composition of nn is an ordered tuple λ=(λ1,…,λm)\lambda= (\lambda_1,\ldots,\lambda_m) of positive integers satisfying λ1+⋯+λm=n\lambda_1+\cdots+\lambda_m=n.

For such a composition, define its partial sums si=λ1+⋯+λis_i=\lambda_1+\cdots+\lambda_i with 1≤i≤m1\le i\le m. The number sis_i is the right endpoint of the tile corresponding to the part λi\lambda_i.

Definition 4. A composition λ=(λ1,…,λm)\lambda=(\lambda_1,\ldots,\lambda_m) of nn is called a kk-rotating composition if for every ii, we have

λi≤Lk(si).(10)\lambda_i \le L_k(s_i). \tag*{(10)}

Corollary 6. The number R^{(k)}_{n+1}\) *is equal to the number of*k−∗rotatingcompositionsof∗-*rotating compositions of*n$.

Proof. Read an RM-tiling from left to right and replace each tile by its length. This produces a composition (λ1,…,λm)(\lambda_1,\ldots,\lambda_m) of nn. The endpoint of the iith tile is exactly sis_i, so the endpoint condition (9) becomes (10). The construction is clearly reversible. The result therefore follows from Theorem 5.

This formulation highlights an unusual feature of the model. The restriction on a part is determined not by the part number ii but by the partial sum at which that part terminates. Thus the local rule is periodic in the accumulated size of the composition.

Restricted compositions with periodic local conditions have been studied in considerably broader settings; see, for example, Bender and Canfield [1]. The restriction considered here is of a different type. It is not determined by the position of the part in the composition, but by the partial sum at which that part terminates. Thus the periodicity is attached to the accumulated size of the composition rather than to its number of parts.

A bijective explanation of doubling

The algebraic identity Rn(k)=2Rn−1(k)R^{(k)}_n=2R^{(k)}_{n-1} between reset positions of Lemma 2 has a simple bijective explanation.

In terms of the shifted sequence, the relevant condition is n+1≠0(modk)n+1\ne0\pmod{k}. At such a position, Lk(n)=Lk(n−1)+1L_k(n)=L_k(n-1)+1.

Theorem 6. Suppose k≥2k\ge2, n≥2n\ge2, and n+1≠0(modk)n+1\ne0\pmod{k}. Then there is a bijection Tn(k)⟷Tn−1(k)×{0,1}T^{(k)}_n\longleftrightarrow T^{(k)}_{n-1}\times\{0,1\}. Consequently, Tn(k)=2Tn−1(k)T^{(k)}_n=2T^{(k)}_{n-1}.

Proof. Since n+1≠0(modk)n+1\ne0\pmod{k}, the allowed maximum tile length increases by one, i.e., Lk(n)=Lk(n−1)+1L_k(n)=L_k(n-1)+1.

Partition Tn(k)T^{(k)}_n according to the length of the final tile.

Case 0: the final tile has length 1. Delete this final tile. The remaining object is an arbitrary tiling in Tn−1(k)T^{(k)}_{n-1}. Conversely, every tiling of length n−1n-1 can be extended by appending a tile of length 1. Hence this class is in bijection with Tn−1(k)T^{(k)}_{n-1}.

Case 1: the final tile has length at least 2. Suppose the final tile has length j≥2j\ge2. Shorten that tile by one unit. The resulting final tile has length j−1j-1 and ends at position n−1n-1. Since j≤Lk(n)=Lk(n−1)+1j\le L_k(n)=L_k(n-1)+1, we have j−1≤Lk(n−1)j-1\le L_k(n-1), so the resulting tiling is valid. Conversely, take any tiling of length n−1n-1 and increase the length of its final tile by one. If its original length is hh, then h≤Lk(n−1)h \le L_k(n-1), and hence h+1≤Lk(n)h+1 \le L_k(n), so the resulting tiling of length nn is valid. Thus this second class is also in bijection with Tn−1(k)\mathcal{T}_{n-1}^{(k)}.

The two classes are disjoint and exhaustive, giving Tn(k)⟷Tn−1(k)×{0,1}\mathcal{T}_n^{(k)} \longleftrightarrow\mathcal{T}_{n-1}^{(k)} \times\{0,1\}. Therefore

Tn(k)=2Tn−1(k).T_n^{(k)} = 2T_{n-1}^{(k)}.

The two binary choices have a direct combinatorial meaning:

00 : append a new tile of length 1,

11 : extend the final tile by one unit.

Thus each non-reset step contributes an independent binary decision.

The ternary transition across a reset

A complete memory cycle contains one exceptional transition. It is more natural combinatorially to combine the reset with the immediately preceding step.

Suppose m+1≡0(modk)m+1 \equiv0 \pmod{k}. Then the endpoint mm is the last position before the memory resets, while endpoint m+1m+1 allows only tile lengths 1 and 2.

The recurrence gives Tm+1(k)=Tm(k)+Tm−1(k)T_{m+1}^{(k)} = T_m^{(k)} + T_{m-1}^{(k)}. By Theorem 6, Tm(k)=2Tm−1(k)T_m^{(k)} = 2T_{m-1}^{(k)}. Consequently,

Tm+1(k)=3Tm−1(k).T_{m+1}^{(k)} = 3T_{m-1}^{(k)}.

This identity also has a direct decomposition.

Proposition 4. At every reset, there is a bijection

Tm+1(k)⟷Tm−1(k)×{0,1,2}.\mathcal{T}_{m+1}^{(k)} \longleftrightarrow\mathcal{T}_{m-1}^{(k)} \times\{0,1,2\}.

Proof. Every tiling in Tm+1(k)\mathcal{T}_{m+1}^{(k)} ends with a tile of length either 1 or 2.

If the last tile has length 2, delete it. This gives one copy of Tm−1(k)\mathcal{T}_{m-1}^{(k)}.

If the last tile has length 1, delete it. The result lies in Tm(k)\mathcal{T}_m^{(k)}. By Theorem 6,

Tm(k)⟷Tm−1(k)×{0,1}.\mathcal{T}_m^{(k)} \longleftrightarrow\mathcal{T}_{m-1}^{(k)} \times\{0,1\}.

Hence the class of tilings ending in a tile of length 1 gives two additional copies of Tm−1(k)\mathcal{T}_{m-1}^{(k)}.

Altogether,

Tm+1(k)⟷Tm−1(k)×{0,1,2}.\mathcal{T}_{m+1}^{(k)} \longleftrightarrow\mathcal{T}_{m-1}^{(k)} \times\{0,1,2\}.

This provides a combinatorial explanation for the factor 3 appearing in the period multiplier.

A combinatorial proof of the period-collapse theorem

Combining the binary and ternary bijections yields a purely combinatorial proof of the factor 3⋅2k−23 \cdot2^{k-2}.

Theorem 7. After the initial transient, extending an RM-tiling through one complete period is equivalent to choosing one ternary symbol and k−2k-2 binary symbols. More precisely, for every k≥2k \ge2 and n≥k−1n \ge k-1, there is a bijection

Tn+k(k)⟷Tn(k)×{0,1,2}×{0,1}k−2.\mathcal{T}_{n+k}^{(k)} \longleftrightarrow\mathcal{T}_n^{(k)} \times\{0,1,2\} \times\{0,1\}^{k-2}.

Consequently,

Tn+k(k)=3⋅2k−2Tn(k).T_{n+k}^{(k)} = 3 \cdot2^{k-2} T_n^{(k)}.

Proof. During a complete period there are k−2k-2 ordinary single step extensions that are covered independently by [6]. Each contributes a binary choice.

The remaining two consecutive positions consist of the final pre-reset position and the reset itself. By [4], these two positions together contribute one ternary choice.

Thus the set of possible extensions through a complete cycle is naturally encoded by {0,1,2}×{0,1}k−2\{0,1,2\} \times\{0,1\}^{k-2}, whose cardinality is 3⋅2k−23 \cdot2^{k-2}. Therefore Tn+k(k)=3⋅2k−2Tn(k)T_{n+k}^{(k)} = 3 \cdot2^{k-2}T_n^{(k)}.

Using Tn(k)=Rn+1(k)T_n^{(k)} = R_{n+1}^{(k)}, this recovers the period-collapse theorem combinatorially.

[7] explains why the multiplier 3⋅2k−23 \cdot2^{k-2} is so simple. It is not merely an algebraic consequence of cancellation in the recurrence: one complete rotating memory cycle is combinatorially composed of one ternary decision and k−2k-2 independent binary decisions.

The Period 2 Case and Monomer-dimer Tilings

We now describe a natural geometric realization of the period-2 RM-Fibonacci sequence. Unlike the endpoint-periodic tiling model of Section 5, the alternating recurrence is now forced by the geometry of the underlying graph itself.

Let GnG_n denote the triangular chain on nn vertices illustrated in Figure 1. More precisely, GnG_n has vertex set V(Gn)={v1,v2,…,vn}V(G_n)=\{v_1,v_2,\ldots,v_n\}, and edge set

A triangular-chain model for the period-2 RM-Fibonacci sequence

Figure 1. A triangular-chain model for the period-2 RM-Fibonacci sequence.

E(Gn)={{vi,vi+1}:1≤i≤n−1}∪{{v2j−1,v2j+1}:1≤j≤⌊(n−1)/2⌋}.E(G_n)=\bigl\{\{v_i,v_{i+1}\}:1\le i\le n-1\bigr\}\cup\bigl\{\{v_{2j-1},v_{2j+1}\}:1\le j\le\lfloor(n-1)/2\rfloor\bigr\}.

Thus GnG_n is obtained by chaining triangles along a horizontal base.

A monomer-dimer tiling of GnG_n is a covering of its vertices by pairwise disjoint monomers and dimers, where a dimer occupies an edge of GnG_n. Equivalently, it is a matching of GnG_n, with unmatched vertices viewed as monomers.

Let ana_n denote the number of monomer-dimer tilings of GnG_n in which the leftmost vertex v1v_1 is forced to be a monomer. The next proposition shows that (an)(a_n) satisfies exactly the period-2 RM-Fibonacci recurrence.

Theorem 8. The sequence (an)n≥1(a_n)_{n\ge1} satisfies the recurrence

a1=1,a2=1,a3=2,∀n≥4: an={an−1+an−2,n≡0(mod2),an−1+an−2+an−3,n≡1(mod2).a_1=1,\quad a_2=1,\quad a_3=2,\quad\forall n\ge4:\ a_n= \begin{cases} a_{n-1}+a_{n-2}, & n\equiv0\pmod{2},\\ a_{n-1}+a_{n-2}+a_{n-3}, & n\equiv1\pmod{2}. \end{cases}

Proof. The initial values are immediate. Now let n≥4n \ge4.

Suppose first that nn is even. Then the last vertex vnv_n is the top vertex of the final triangle and has only one neighbor, namely vn−1v_{n-1}; see Figure 1. Hence there are exactly two possibilities:

  1. vnv_n is a monomer. Removing vnv_n leaves a tiling of Gn−1G_{n-1}.

  1. vnv_n forms a dimer with vn−1v_{n-1}. Removing vn−1v_{n-1} and vnv_n leaves a tiling of Gn−2G_{n-2}.

Therefore an=an−1+an−2a_n = a_{n-1} + a_{n-2} with n≡0(mod2)n \equiv0 \pmod{2}.

Now suppose that nn is odd. Then the last vertex vnv_n is the rightmost base vertex and has two possible dimer partners, namely vn−1v_{n-1} and vn−2v_{n-2}; see again Figure 1. Hence there are three possibilities:

  1. vnv_n is a monomer. Removing vnv_n leaves a tiling of Gn−1G_{n-1}.

  1. vnv_n forms a dimer with vn−1v_{n-1}. Removing vn−1v_{n-1} and vnv_n leaves a tiling of Gn−2G_{n-2}.

  1. vnv_n forms a dimer with vn−2v_{n-2}. Then the vertex vn−1v_{n-1} is forced to be a monomer, and removing the last three vertices vn−2,vn−1,vnv_{n-2}, v_{n-1}, v_n leaves a tiling of Gn−3G_{n-3}.

Consequently, an=an−1+an−2+an−3a_n = a_{n-1} + a_{n-2} + a_{n-3} with (n≡1(mod2))(n \equiv1 \pmod{2}).

We can now identify (an)(a_n) with the period-2 RM-Fibonacci sequence.

Corollary 7. For every n≥1n \ge1, we have an=Rn(2)a_n = R_n^{(2)}.

Proof. By direct identification.

Remark 1. If the leftmost vertex is not constrained, then the number of all monomer-dimer tilings of GnG_n is equal to 2Rn(2)2R_n^{(2)} for every n≥2n \ge2. Indeed, the vertex v1v_1 may be either a monomer or part of the dimer {v1,v2}\{v_1,v_2\}, and these two possibilities reduce respectively to a tiling of GnG_n with v1v_1 forced to be a monomer and to such a tiling of Gn−1G_{n-1}.

The sequence obtained here is already recorded in the OEIS. More precisely, Rn(2)=R_n^{(2)} = A038754(n−2)(n-2) for n≥2n \ge2. The OEIS entry for A038754 records several algebraic, number-theoretic, and walk interpretations of the sequence, but does not include the monomer-dimer interpretation on the triangular chain developed above. Thus the present construction provides an additional combinatorial realization of A038754.

The period-3 Case and Double-Hexagon Tilings

The period-3 case admits a second natural geometric realization. Recall that An(3)=Rn+1(3)A_n^{(3)} = R_{n+1}^{(3)}, whose first terms are

1,1,2,4,8,12,24,48,72,144,288,432,…1,1,2,4,8,12,24,48,72,144,288,432,\ldots

This is OEIS sequence A354541, which is recorded as the number of tilings of a double-hexagon strip of nn hexagonal cells by single and double hexagons. We now derive this interpretation directly from the geometry of the strip.

Let Hn\mathcal{H}_n denote the set of such tilings and write Hn:=∣Hn∣H_n := |\mathcal{H}_n|. A single tile covers one hexagonal cell, whereas a double tile covers two cells sharing an edge. We set H0=1H_0 = 1 and Hm=0H_m = 0 for all m<0m < 0.

Figure 2 illustrates the three possible terminal geometries of the strip according to the residue of nn modulo 3. These three configurations are responsible for the periodic recurrence satisfied by (Hn)(H_n).

Figure 2. Illustration of the period-3 hexagonal strip model.

Theorem 9. For every n≥1n \ge1, we have

Hn={Hn−1+Hn−2+Hn−3,n≡0(mod3),Hn−1+2Hn−2,n≡1(mod3),Hn−1+Hn−2,n≡2(mod3).H_n = \begin{cases} H_{n-1} + H_{n-2} + H_{n-3}, & n \equiv0 \pmod{3},\\ H_{n-1} + 2H_{n-2}, & n \equiv1 \pmod{3},\\ H_{n-1} + H_{n-2}, & n \equiv2 \pmod{3}. \end{cases}

Proof. We distinguish the three terminal configurations shown in Figure 2.

Suppose first that n≡0(mod3)n \equiv0 \pmod{3}. The last cell nn may be covered by a single hexagon, in which case the remaining strip is counted by Hn−1H_{n-1}. If nn belongs to a double hexagon, there are two possible terminal configurations. Pairing nn with n−1n-1 leaves a strip counted by Hn−2H_{n-2}. Alternatively, nn may be paired with n−2n-2; in this case n−1n-1 is forced to be a single hexagon, and deleting the resulting terminal configuration leaves a strip counted by Hn−3H_{n-3}. Hence

Hn=Hn−1+Hn−2+Hn−3.H_n = H_{n-1} + H_{n-2} + H_{n-3}.

Now suppose that n≡1(mod3)n \equiv1 \pmod{3}. If cell nn is covered by a single hexagon, the remaining strip contributes Hn−1H_{n-1}. Otherwise, cell nn can be paired with either of the two adjacent terminal cells shown in Figure 2. In either case, deleting the double hexagon leaves a strip isomorphic to the strip on n−2n-2 cells. The two choices are distinct, and therefore

Hn=Hn−1+2Hn−2.H_n = H_{n-1} + 2H_{n-2}.

Finally, suppose that n≡2(mod3)n \equiv2 \pmod{3}. The last cell is either covered by a single hexagon, contributing Hn−1H_{n-1}, or belongs to the unique possible terminal double hexagon, contributing Hn−2H_{n-2}. Thus

Hn=Hn−1+Hn−2.H_n = H_{n-1} + H_{n-2}.

We now compare this geometric recurrence with the period-3 RM-Fibonacci recurrence. From (8),

An(3)={An−1(3)+An−2(3)+An−3(3),n≡0(mod3),An−1(3)+An−2(3)+An−3(3)+An−4(3),n≡1(mod3),An−1(3)+An−2(3),n≡2(mod3).(11)A_n^{(3)} = \begin{cases} A_{n-1}^{(3)} + A_{n-2}^{(3)} + A_{n-3}^{(3)}, & n \equiv0 \pmod{3},\\ A_{n-1}^{(3)} + A_{n-2}^{(3)} + A_{n-3}^{(3)} + A_{n-4}^{(3)}, & n \equiv1 \pmod{3},\\ A_{n-1}^{(3)} + A_{n-2}^{(3)}, & n \equiv2 \pmod{3}. \end{cases} \tag*{(11)}

Although the middle recurrence in Theorem 9 initially has a different form, the two systems are equivalent. Indeed, if n≡1(mod3)n \equiv1 \pmod{3}, then n−2≡2(mod3)n - 2 \equiv2 \pmod{3}, and hence

Hn−2=Hn−3+Hn−4.H_{n-2} = H_{n-3} + H_{n-4}.

Consequently,

Hn=Hn−1+2Hn−2=Hn−1+Hn−2+Hn−3+Hn−4.H_n = H_{n-1} + 2H_{n-2} = H_{n-1} + H_{n-2} + H_{n-3} + H_{n-4}.

Thus (Hn)(H_n) satisfies exactly the same rotating recurrence as (An(3))(A_n^{(3)}).

Corollary 8. For every n≥0n \ge0,

Hn=An(3)=Rn+1(3).H_n = A_n^{(3)} = R_{n+1}^{(3)}.

Consequently, the shifted period-3 RM-Fibonacci numbers enumerate tilings of the double-hexagon strip by single and double hexagons and coincide with OEIS sequence A354541.

Proof. By direct identification.

The preceding argument proves the equinumeracy by a terminal decomposition. In fact, the correspondence can be made explicit.

For convenience, write [i][i] for a single hexagon occupying cell ii, and [i,j][i,j] for a double hexagon covering the adjacent cells ii and jj.

Theorem 10. For every n≥0n \ge0, there is a bijection

Φn:Tn(3)⟶Hn.\Phi_n : \mathcal{T}_n^{(3)} \longrightarrow\mathcal{H}_n.

If an RM tile has length jj and right endpoint ss, its image is given by

Proof. For period 3, the largest admissible RM tile length at endpoint ss is

L3(s)={3,s≡0(mod3),4,s≡1(mod3),2,s≡2(mod3).L_3(s) = \begin{cases} 3, & s \equiv0 \pmod{3},\\ 4, & s \equiv1 \pmod{3},\\ 2, & s \equiv2 \pmod{3}. \end{cases}

With the labeling of Figure 2, consecutive cells s−1s-1 and ss are adjacent. Moreover, s−2s-2 and ss are adjacent when s≡0s \equiv0 or 1(mod3)1 \pmod{3}, and, when s≡1(mod3)s \equiv1 \pmod{3}, the cells s−3s-3 and s−1s-1 are also adjacent. Consequently, every configuration in the table is well defined whenever the corresponding RM tile length is admissible. Since the RM tiles partition {1,…,n}\{1,\ldots,n\} into consecutive blocks, applying the replacement to each block produces a tiling in Hn\mathcal{H}_n.

Conversely, consider the rightmost cell ss of a tiling in Hn\mathcal{H}_n. If ss is a single hexagon, it corresponds to an RM tile of length 1. If ss is paired with s−1s-1, it corresponds to a tile of length 2. If ss is paired with s−2s-2, then either s−1s-1 is single, giving a tile of length 3, or, necessarily when s≡1(mod3)s \equiv1 \pmod{3}, s−1s-1 is paired with s−3s-3, giving a tile of length 4.

These possibilities are mutually exclusive and exhaust the terminal configurations shown in Figure 2. Removing the corresponding terminal block and repeating the procedure from right to left recovers a unique RM tiling. Hence Φn\Phi_n is a bijection.

Thus the period-3 RM-Fibonacci sequence has two genuinely different tiling interpretations:

Tn(3)⟷Hn,\mathcal{T}^{(3)}_n \longleftrightarrow\mathcal{H}_n,

and Theorem 10 explains their equality directly at the level of the underlying combinatorial objects.

Concluding Remarks and Open Problems

In this paper, we introduced the RM-Fibonacci numbers as a periodic variable-order extension of the Fibonacci sequence and developed their algebraic and combinatorial theory. Although the defining recurrence has a periodically changing memory length, the resulting sequences exhibit a remarkably rigid structure, including period collapse, explicit formulas, rational generating functions, and exact exponential growth. On the combinatorial side, RM-Fibonacci numbers arise from endpoint-periodic tilings, restricted compositions, and directed lattice paths, while the tiling model provides a bijective explanation for the multiplicative factor accumulated over one complete memory cycle.

The first two nonclassical periods also admit natural geometric realizations in which the periodicity is induced by the underlying geometry rather than imposed explicitly. For period 2, the sequence is realized by monomer–dimer tilings of a triangular chain with a prescribed boundary condition. For period 3, the shifted sequence is realized by tilings of a double-hexagon strip by single and double hexagons, and an explicit bijection connects this model with the period-3 RM-tilings. These examples suggest that geometry-driven realizations may exist more generally.

Problem 1. For each k≥4k \ge4, construct, if possible, a natural periodic planar graph or strip together with a fixed local tiling or matching rule whose counting sequence is the period-kk RM-Fibonacci sequence. Ideally, the cycle of recurrence orders 2,3,…,k+12,3,\ldots,k+1 should arise from the geometry itself rather than from an explicitly position-dependent rule.

Another direction concerns the choice of the periodic memory pattern. The present paper considers the consecutive cycle of memory lengths 2,3,…,k+12,3,\ldots,k+1. More general periodic patterns may behave quite differently, and it is natural to ask which of them retain the structural simplifications found here.

Problem 2. Classify periodic memory patterns for which the associated variable-order recurrence eventually reduces to a simple constant-coefficient recurrence.

The explicit arithmetic structure of the RM-Fibonacci numbers also raises natural number-theoretic questions. Their divisibility properties, greatest common divisors, periodicity modulo an integer, and related congruence phenomena could be investigated systematically and compared with their classical Fibonacci counterparts.

A further direction is to apply the rotating-memory principle to other classical recurrence sequences. Periodic-memory analogues of Lucas, Pell, Jacobsthal, Tribonacci, and related sequences may exhibit versions of the same structural phenomena observed here.

Problem 3. Develop rotating-memory analogues of classical linear recurrence sequences and determine which families retain properties such as period collapse, geometric residue-class subsequences, rational generating functions, and natural combinatorial interpretations.

Finally, one may move beyond periodicity. Variable-order recurrences with aperiodic, automatic, morphic, or random memory rules provide a broader setting in which the rigid behavior found here is unlikely to persist unchanged. Understanding the boundary between periodic systems with strong algebraic structure and genuinely nonperiodic variable-memory recurrences appears to be a natural direction for further study.

References

  1. [1]Edward A. Bender and E. Rodney Canfield. Locally restricted compositions II: general restrictions and infinite matrices. The Electronic Journal of Combinatorics, 16(1):R108, 2009. doi:10.37236/197.DOI
  2. [2]Arthur T. Benjamin, Halcyon D erks, and Jennifer J. Quinn. The combinatorialization of linear recurrences. The Electronic Journal of Combinatorics, 18(2):P12, 2011. doi:10.37236/2008.DOI
  3. [3]Arthur T. Benjamin and Curtis R. Heberle. Counting on r-Fibonacci numbers. The Fibonacci Quarterly, 52(2):121–128, 2014. doi:10.1080/00150517.2014.12427902.DOI
  4. [4]Arthur T. Benjamin and Jennifer J. Quinn. Proofs that really count: the art of combinatorial proof, volume 27 of Dolciani Mathematical Expositions. Mathematical Association of America, 2003.
  5. [5]Tomislav Došljić and Luka Podrug. Tilings of a honeycomb strip and higher order Fibonacci numbers. Contributions to Discrete Mathematics, 19(2):56–81, 2024. doi:10.55016/ojs/cdm.v19i2.75062.DOI
  6. [6]Marcia Edson, Scott Lewis, and Omer Y a y e n i e. The k-periodic Fibonacci sequence and an extended Binet’s formula. Integers, 11(6):739–751, 2011. doi:10.1515/INTEG.2011.056.DOI
  7. [7]Nathaniel D. Emerson. A family of meta-Fibonacci sequences defined by variable-order recursions. Journal of Integer Sequences, 9(1):Article 06.1.8, 2006.
  8. [8]Ziqian Jin and Greg Dresden. Tetranacci identities via hexagonal tilings. The Fibonacci Quarterly, 60(2):99–103, 2022. doi:10.1080/00150517.2022.12427482.DOI
  9. [9]E. P. Miles, Jr. Generalized Fibonacci numbers and associated matrices. The American Mathematical Monthly, 67(8):745–752, 1960. doi:10.1080/00029890.1960.11989593.DOI
  10. [10]OEIS Foundation Inc. The On-Line Encyclopedia of Integer Sequences, 2026. Published electronically at https://oeis.org.
  11. [11]Daniel Panario, Murat Sahin, Qiang Wang, and William Webb. General conditional recurrences. Applied Mathematics and Computation, 243:220–231, 2014. doi:10.1016/j.amc.2014.05.108.DOI

Paper details

vlnc:W_7n8nrq4h
Version
v1 · latest
Published
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents