Rend. Sem. Mat. Univ. Pol. Torino - Vol. 65, 3 (2007) G. Sburlati GENERALIZED FIBONACCI SEQUENCES AND LINEAR RECURRENCES Abstract. We analyze the existing relations among particular classes of generalized Fibonacci sequences, with characteristic polynomial having two integer roots. Several examples are given. Some properties concerning in general linear recurrences are also shown. 1. Introduction There exists a very wide literature about the generalized Fibonacci sequences: one can see about it refs. [2], where also interesting applications to number theory are shown, and [1], where such sequences are treated as a particular case of a more general class of sequences of numbers. In this paper, after a brief introduction to the generalized Fibonacci sequences, we study the properties of some sequences whose characteristic polynomial has two different integers as roots, giving several examples for clarifying the theoretical results. Denoting by {U n (h, k)} n N (where h, k Z, k(h 2 4k) = 0) the linear recursive sequence with characteristic polynomial x 2 hx + k, in particular we find interesting relations among the sequences {U n (c a, ca)} n N, {U n (c + a, ca)} n N and {U n (c 2 + a 2, c 2 a 2 )} n N (where a, c N and a < c) and we also see a difference between the role played in this context by the terms U 2n (c ± a, ±ca), n N {0} and the role played by the terms U 2n+1 (c ± a, ±ca), n N {0}. Then we show a connection between the sequences {U n (c + a, ca)} n N and the sequences {U n (c t + a t, c t a t )} n N for generic t N. Finally, we review some classical properties of the class of linear recurrences, which includes the class of the generalized Fibonacci sequences. 2. Generalized Fibonacci sequences For each pair (h, k), h, k C of complex numbers such that k(h 2 4k) = 0, we denote by {U n (h, k)} n N the generalized Fibonacci sequence defined as follows: n N, n 2, U n (h, k) = hu n 1 (h, k) ku n 2 (h, k), U 0 (h, k) = 0, U 1 (h, k) = 1. An explicit expression of the nth term of {U n (h, k)} n N for generic n N {0} is given by the Binet formula U n (h, k) = αn β n α β, where α = h + h 2 4k and 2 β = h h 2 4k are the distinct roots of the polynomial x 2 hx + k C[x], 2 371
372 G. Sburlati called characteristic polynomial of the sequence. Some examples of these sequences, corresponding to fixed values of h and k, are: {U n (5, 2)} n N : 0, 1, 5, 23, 105, 479, 2185, 9967,... {U n (4, 12)} n N : 0, 1, 4, 28, 160, 976, 5824, 35008,... { ( 2 U n 3, 1 )} 2 n N : 0, 1, 2 3, 1 18, 10 27, 71 324, 19 486, 791 5832,... {U n (i, 2)} n N : 0, 1, i, 3, 5i, 11, 21i, 43,... {U n ( 2 + 3, 6)} n N : 0, 1, 2 + 3, 5 + 6, 5( 2 + 3), 19 + 5 6, 19( 2 + 3), 65 + 19 6,... PROPOSITION 1. For generic h, k, δ C with δk(h 2 4k) = 0, we have n N {0}, U n (δh, δ 2 k) = δ n 1 U n (h, k). Proof. We first observe that, h, k, δ being fixed, we have (δh) 2 4(δ 2 k) = δ 2 (h 2 4k) = 0. Then we can consider the generalized Fibonacci sequence {U n (δh, δ 2 k)} n N. Clearly the assertion of the proposition holds when n = 0, 1. Now for generic m N, m 2 let us suppose that it holds when n = m 1, m 2; we assert that it is satisfied even when n = m. Indeed from the definition of generalized Fibonacci sequence we have: U m (δh, δ 2 k) = δh U m 1 (δh, δ 2 k) δ 2 k U m 2 (δh, δ 2 k) = δh (δ m 2 U m 1 (h, k)) δ 2 k(δ m 3 U m 2 (h, k)) = δ m 1 (hu m 1 (h, k) ku m 2 (h, k)) = δ m 1 U m (h, k). The proposition is then proven by induction. COROLLARY 1. For generic h, k R such that k(h 2 4k) = 0, we have n N {0}, U n (ih, k) = i n 1 U n (h, k). Now let us suppose we are given z, w C with zw(z 2 4w) = 0 and w/z 2 R. Let us set h = z, k = w z 2 /z 2 and δ = z/ z. Then h, k R, δk(h 2 4k) = 0 and from Proposition 1 we deduce that n N {0}, U n (δh, δ 2 k) = δ n 1 U n (h, k), i.e. that n N {0}, U n (z, w) = (z/ z ) n 1 U n (h, k). This implies that n N {0}, U n (z, w) = U n (h, k). Moreover, we can write n N {0}, U n (z,w) = U n (h, k)[cos((n 1)arg(z)) + i sin((n 1)arg(z))].
Fibonacci sequences and recurrences 373 3. The sequences {U n (c a, ca)} n N and {U n (c + a, ca)} n N (c, a N, a < c) Let two positive integers a, c be fixed with a < c, and let us consider the generalized Fibonacci sequences {U n (c a, ca)} n N, {U n (c + a, ca)} n N and {U n (c 2 + a 2, c 2 a 2 )} n N. By using the Binet formulas for the terms of the first and the third sequence, we can easily obtain: n N {0}, U n (c 2 + a 2, c 2 a 2 ) = c2n a 2n c 2 a 2 = 1 c a c2n ( a) 2n c + a (1) = 1 c a U 2n(c a, ca). By using the Binet formulas for the terms of the second and the third of the same Fibonacci sequences, we obtain: n N {0}, U n (c 2 + a 2, c 2 a 2 ) = c2n a 2n c 2 a 2 = 1 c + a c2n a 2n c a (2) = 1 c + a U 2n(c + a, ca). From equalities (1) and (2) we can also deduce that U 2n (c a, ca) c a = U 2n(c + a, ca) ; c + a then (c + a)u 2n (c a, ca) (c a)u 2n (c + a, ca) = 0. EXAMPLE 1. Let us take c = 5, a = 2 and consider the three following sequences: {U n (3, 10)} n N : 0, 1, 3, 19, 87, 451, 2223, 11179, 55767,... {U n (7, 10)} n N : 0, 1, 7, 39, 203, 1031, 5187, 25999, 130123,... {U n (29, 100)} n N : 0, 1, 29, 741, 18589, 464981, 11625549, 290642821,... We verify equalities (1) and (2) for n = 1, 2, 3, 4: 3U 1 (29, 100) = 3 1 = 3 = U 2 (3, 10); 3U 2 (29, 100) = 3 29 = 87 = U 4 (3, 10); 3U 3 (29, 100) = 3 741 = 2223 = U 6 (3, 10); 3U 4 (29, 100) = 3 18589 = 55767 = U 8 (3, 10); 7U 1 (29, 100) = 7 1 = 7 = U 2 (7, 10); 7U 2 (29, 100) = 7 29 = 203 = U 4 (7, 10); 7U 3 (29, 100) = 7 741 = 5187 = U 6 (7, 10); 7U 4 (29, 100) = 7 18589 = 130123 = U 8 (7, 10). From such equalities we immediately deduce, for n = 1, 2, 3, 4, that 7U 2n (3, 10) 3U 2n (7, 10) = 0.
374 G. Sburlati For generic a fixed in N, by posing c = a + 1 in equalities (1) we deduce that: n N {0}, U n (a 2 + (a + 1) 2, [a(a + 1)] 2 ) = U 2n (1, a(a + 1)). EXAMPLE 2. Let us take a = 2, c = 3 and consider the two following sequences: {U n (1, 6)} n N : 0, 1, 1, 7, 13, 55, 133, 463, 1261,... {U n (13, 36)} n N : 0, 1, 13, 133, 1261, 11605, 105469, 953317,... We can clearly see that U 1 (13, 36) = U 2 (1, 6), U 2 (13, 36) = U 4 (1, 6), U 3 (13, 36) = U 6 (1, 6) and U 4 (13, 36) = U 8 (1, 6). Supposing once more a, c fixed in N with a < c, the following equalities are verified: n N {0}, (c + a)u 2n+1 (c a, ca) (c a)u 2n+1 (c + a, ca) = (c + a) c2n+1 ( a) 2n+1 c + a (c a) c2n+1 a 2n+1 c a = (c 2n+1 + a 2n+1 ) (c 2n+1 a 2n+1 ) = 2a 2n+1. We summarize in the following theorem two important results obtained in this section. THEOREM 1. Let a, c N be assigned with a < c. Then for all n N {0} we have: (c + a)u 2n (c a, ca) (c a)u 2n (c + a, ca) = 0 and (c + a)u 2n+1 (c a, ca) (c a)u 2n+1 (c + a, ca) = 2a 2n+1. The second part of Theorem 1 gives rise to the following corollary. COROLLARY 2. Let c N, c 2 be fixed. We have (c+1)u 2n+1 (c 1, c) (c 1)U 2n+1 (c + 1, c) = 2 for all n N {0} (in fact these equalities hold even when c = 1). Moreover, if c 3 and we fix a N with 2 a < c, we have lim n + [(c + a)u 2n+1(c a, ca) (c a)u 2n+1 (c + a, ca)] = +. The following fact is verified: when 2 a < c, for all even n we have (c + a)u n (c a, ca) (c a)u n (c + a, ca) = 0, while the terms of the succession of the numbers in the form (c + a)u n (c a, ca) (c a)u n (c + a, ca) with n odd tend to infinity as n + : they actually grow exponentially with respect to n. EXAMPLE 3. By taking once more c = 5 and a = 2, we verify the second part of Theorem 1 for n = 0, 1, 2, 3. We have: 7U 1 (3, 10) 3U 1 (7, 10) = 7 1 3 1 = 4 = 2 2 1 ; 7U 3 (3, 10) 3U 3 (7, 10) = 7 19 3 39 = 16 = 2 2 3 ; 7U 5 (3, 10) 3U 5 (7, 10) = 7 451 3 1031 = 64 = 2 2 5 ; 7U 7 (3, 10) 3U 7 (7, 10) = 7 11179 3 25999 = 256 = 2 2 7.
Fibonacci sequences and recurrences 375 EXAMPLE 4. Let us fix c = 6, a = 1 and consider the two following sequences: {U n (5, 6)} n N : 0, 1, 5, 31, 185, 1111, 6665, 39991, 239945,... {U n (7, 6)} n N : 0, 1, 7, 43, 259, 1555, 9331, 55987, 335923,... We have: 7U 1 (5, 6) 5U 1 (7, 6) = 7 1 5 1 = 2; 7U 2 (5, 6) 5U 2 (7, 6) = 7 5 5 7 = 0; 7U 3 (5, 6) 5U 3 (7, 6) = 7 31 5 43 = 2; 7U 4 (5, 6) 5U 4 (7, 6) = 7 185 5 259 = 0; 7U 5 (5, 6) 5U 5 (7, 6) = 7 1111 5 1555 = 2; 7U 6 (5, 6) 5U 6 (7, 6) = 7 6665 5 9331 = 0; 7U 7 (5, 6) 5U 7 (7, 6) = 7 39991 5 55987 = 2; 7U 8 (5, 6) 5U 8 (7, 6) = 7 239945 5 335923 = 0. EXAMPLE 5. Let us fix c = 5, a = 3 and consider the two following sequences: {U n (2, 15)} n N : 0, 1, 2, 19, 68, 421, 1862, 10039, 48008,... {U n (8, 15)} n N : 0, 1, 8, 49, 272, 1441, 7448, 37969, 192032,... Now for n = 1, 2,..., 8 we calculate the value c + a 2 U n(c a, ca) c a 2 U n(c+ a, ca). We obtain: 4U 1 (2, 15) U 1 (8, 15) = 4 1 1 = 3 = 3 1 ; 4U 2 (2, 15) U 2 (8, 15) = 4 2 8 = 0; 4U 3 (2, 15) U 3 (8, 15) = 4 19 49 = 27 = 3 3 ; 4U 4 (2, 15) U 4 (8, 15) = 4 68 272 = 0; 4U 5 (2, 15) U 5 (8, 15) = 4 421 1441 = 243 = 3 5 ; 4U 6 (2, 15) U 6 (8, 15) = 4 1862 7448 = 0; 4U 7 (2, 15) U 7 (8, 15) = 4 10039 37969 = 2187 = 3 7 ; 4U 8 (2, 15) U 8 (8, 15) = 4 48008 192032 = 0. 4. Relation between {U n (c + a, ca)} n N and {U n (c t + a t, c t a t )} n N (c, a, t N, a < c) Let us fix a, c, t N with a < c. Then by applying Binet formulas to the terms of the sequences {U n (c + a, ca)} n N and {U n (c t + a t, c t a t } n N, we can write: n N {0}, U n (c t + a t, c t a t ) = ctn a tn c t a t = (ctn a tn )/(c a) (c t a t )/(c a) = U tn(c + a, ca) U t (c + a, ca). EXAMPLE 6. Let us take a = 1, c = 2, t = 3 and consider the two following sequences: {U n (3, 2)} n N : 0, 1, 3, 7, 15, 31, 63, 127, 255, 511,... {U n (9, 8)} n N : 0, 1, 9, 73, 585, 4681, 37449, 299593, 2396745,... We have U 3 (3, 2) = 7 = 7U 1 (9, 8), U 6 (3, 2) = 63 = 7U 2 (9, 8), U 9 (3, 2) = 511 = 7U 3 (9, 8), and so on.
376 G. Sburlati 5. Linear recurrences Let k N be fixed; for generic c 1, c 2,..., c k C with c k = 0, let us set p(x) = x k c 1 x k 1 c 2 x k 2... c k C[x]. Let β C, t N be given such that (x β) t p(x). Then the following proposition holds. PROPOSITION 2. If we pose, for every n N, A n = [ t 2 (n i) β n (where the empty product is posed equal to 1), then for all n N, n k the equality A n = c 1 A n 1 + c 2 A n 2 +... + c k A n k is satisfied. Proof. For each fixed n k, let us consider the polynomial f (x) = x n k p(x) = x n c 1 x n 1 c 2 x n 2... c k x n k C[x]. Since (x β) t f (x), β is a root of f (t 1) (x), and then [ t 2 (n i) β n (t 1) = [ t 2 c j (n j i) β n j (t 1). By multiplying the two members of the latter equality by β t 1, we obtain [ t 2 (n i) β n = [ t 2 c j (n j i) β n j, i.e. A n = c j A n j. THEOREM 2. If k, c 1, c 2,..., c k, p(x), β, t are given as above and we pose, for every n N, B n = n t 1 β n, then for all n k we have B n = c 1 B n 1 + c 2 B n 2 +... + c k B n k. Proof. When t = 1 or 2 the theorem is clearly equivalent to Proposition 2. Now after fixing t N, t 3 let us suppose the theorem to hold for any positive integer lower t 2 than t, and let us deduce its validity for the integer t. We can set q t (x) = (x i) = x t 1 + g t (x) C[x], with deg(g t (x)) = t 2. For each fixed n N, n k, from Proposition 2 we obtain the equality q t (n)β n = c j q t (n j)β n j, i.e. (3) [n t 1 + g t (n)]β n = c j [(n j) t 1 + g t (n j)]β n j.
Fibonacci sequences and recurrences 377 Since deg(g t (x)) = t 2 and we have supposed that the theorem holds for all integers lower than t, the equality (4) g t (n)β n = c j g t (n j)β n j is easily verified to be satisfied. Finally, from equalities (3) and (4) we obtain n t 1 β n = c j (n j) t 1 β n j, which means B n = c j B n j. The theorem is then proven by induction over t. From Theorem 2 one immediately derives the following classical result [3] on linear recurrences. COROLLARY 3. Let k, c 1, c 2,..., c k, p(x) be assigned as above. Let us pose p(x) = (x β 1 ) t 1(x β 2 ) t 2...(x β s ) t s with β 1, β 2,..., β s distinct complex numbers, t 1, t 2,..., t s N and t 1 + t 2 +... + t s = k. Then the set of the sequences {B n } n N which satisfy for every n k the equality B n = c 1 B n 1 + c 2 B n 2 +... + c k B n k is exactly the set of the sequences t 1 1 t 2 1 t s 1 n a 1, j n j β1 n + a 2, j n j β2 n +... + a s, j n j βs n, j=0 j=0 where all numbers a i, j with 1 i s and 0 j t i 1 are complex constants independent of n. The following example shows another well known result [3], which is a particular case of Corollary 3. EXAMPLE 7. Let us take a generic β C\{0} and consider the sequence {B n (β)} n N defined as follows: j=0 n N, n 2, B n (β) = 2β B n 1 (β) β 2 B n 2 (β), B 0 (β) = 0, B 1 (β) = 1. This is not a generalized Fibonacci sequence, because for h = 2β and k = β 2 we have h 2 4k = 0. By posing k = 2, c 1 = 2β, c 2 = β 2, p(x) = x 2 c 1 x c 2 = (x β) 2 and using the notations of Corollary 3 we obtain s = 1, t 1 = 2, β 1 = β. It can easily be verified by induction that n N {0}, B n (β) = nβ n 1. This result is consistent with Corollary 3 and can also be obtained in the following way: for all α,β C
378 G. Sburlati with α = β, let us consider the generalized Fibonacci sequence {U n (α + β, αβ)} n N : we have U 0 (α + β, αβ) = 0, U 1 (α + β, αβ) = 1 and n 2, U n (α + β, αβ) = (α + β)u n 1 (α + β, αβ) αβu n 2 (α + β, αβ). From the Binet formulas we clearly have n N {0}, U n (α + β, αβ) = αn β n α β. From the definition of {B n(β)} n N, for each fixed n N {0} we can say that the term B n (β) is the limit for α β of the number (considered as a function of α) U n (α + β, αβ), and then the following equalities hold: B n (β) = lim U α n β n n(α + β, αβ) = lim α β α β α β = nβn 1. References [1] HORADAM A. F., Basic properties of a certain generalized sequence of numbers, The Fibonacci Quarterly 3.3 (1965), 161 176. [2] LUCAS E., Théorie des fonctions numeriques simplement periodiques, Amer. J. Math 1 (1878), 184 240, 289 321. [3] ROSEN K. H., Discrete mathematics and its applications, McGraw-Hill 1999. AMS Subject Classification: 11B39, 11B37. Giovanni SBURLATI, Istituto di Informatica e Telematica - Area della Ricerca CNR, via Giuseppe Moruzzi 1, 56124 Pisa ITALY e-mail: giovanni.sburlati@iit.cnr.it Lavoro pervenuto in redazione il 17.02.2006 e, in forma definitiva, il 11.10.2006.