login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A004187 a(n) = 7*a(n-1) - a(n-2) with a(0) = 0, a(1) = 1. 63

%I #173 Nov 16 2023 13:29:04

%S 0,1,7,48,329,2255,15456,105937,726103,4976784,34111385,233802911,

%T 1602508992,10983760033,75283811239,516002918640,3536736619241,

%U 24241153416047,166151337293088,1138818207635569,7805576116155895,53500214605455696,366695926122033977

%N a(n) = 7*a(n-1) - a(n-2) with a(0) = 0, a(1) = 1.

%C Define the sequence T(a_0,a_1) by a_{n+2} is the greatest integer such that a_{n+2}/a_{n+1}<a_{n+1}/a_n for n >= 0 . A004187 (with initial 0 omitted) is T(1,7).

%C This is a divisibility sequence.

%C For n>=2, a(n) equals the permanent of the (n-1) X (n-1) tridiagonal matrix with 7's along the main diagonal, and i's along the superdiagonal and the subdiagonal (i is the imaginary unit). - _John M. Campbell_, Jul 08 2011

%C a(n) and b(n) := A056854(n) are the proper and improper nonnegative solutions of the Pell equation b(n)^2 - 5*(3*a(n))^2 = +4. see the cross-reference to A056854 below. - _Wolfdieter Lang_, Jun 26 2013

%C For n>=1, a(n) equals the number of 01-avoiding words of length n-1 on alphabet {0,1,2,3,4,5,6}. - _Milan Janjic_, Jan 25 2015

%C The digital root is A253298, which shares its digital root with A253368. - _Peter M. Chema_, Jul 04 2016

%C Lim_{n->oo} a(n+1)/a(n) = 2 + 3*phi = 1+ A090550 = 6.854101... - _Wolfdieter Lang_, Nov 16 2023

%H Vincenzo Librandi, <a href="/A004187/b004187.txt">Table of n, a(n) for n = 0..1000</a>

%H Marco Abrate, Stefano Barbero, Umberto Cerruti, and Nadir Murru, <a href="https://www.emis.de/journals/INTEGERS/papers/p38/p38.Abstract.html">Polynomial sequences on quadratic curves</a>, Integers, Vol. 15, 2015, #A38.

%H K. Andersen, L. Carbone, and D. Penta, <a href="https://pdfs.semanticscholar.org/8f0c/c3e68d388185129a56ed73b5d21224659300.pdf">Kac-Moody Fibonacci sequences, hyperbolic golden ratios, and real quadratic fields</a>, Journal of Number Theory and Combinatorics, Vol 2, No. 3 pp 245-278, 2011. See Section 9.

%H D. Birmajer, J. B. Gil, and M. D. Weiner, <a href="https://cs.uwaterloo.ca/journals/JIS/VOL19/Gil/gil6.html">On the Enumeration of Restricted Words over a Finite Alphabet</a>, J. Int. Seq. 19 (2016) # 16.1.3 , example 12

%H D. W. Boyd, <a href="https://www.researchgate.net/profile/David_Boyd7/publication/262181133_Linear_recurrence_relations_for_some_generalized_Pisot_sequences_-_annotated_with_corrections_and_additions/links/00b7d536d49781037f000000.pdf">Linear recurrence relations for some generalized Pisot sequences</a>, Advances in Number Theory ( Kingston ON, 1991) 333-340, Oxford Sci. Publ., Oxford Univ. Press, New York, 1993

%H Zvonko Cerin, <a href="http://dx.doi.org/10.2478/BF02475651">Some alternating sums of Lucas numbers</a>, Centr. Eur. J. Math. vol 3 no 1 (2005) 1-13.

%H R. Flórez, R. A. Higuita, and A. Mukherjee, <a href="https://cs.uwaterloo.ca/journals/JIS/VOL17/Mukherjee/mukh2.html">Alternating Sums in the Hosoya Polynomial Triangle</a>, Article 14.9.5 Journal of Integer Sequences, Vol. 17 (2014).

%H A. F. Horadam, <a href="http://www.fq.math.ca/Scanned/5-5/horadam.pdf">Special properties of the sequence W_n(a,b; p,q)</a>, Fib. Quart., 5.5 (1967), 424-434. Case a=0,b=1; p=7, q=-1.

%H Milan Janjic, <a href="https://cs.uwaterloo.ca/journals/JIS/VOL18/Janjic/janjic63.html">On Linear Recurrence Equations Arising from Compositions of Positive Integers</a>, Journal of Integer Sequences, Vol. 18 (2015), Article 15.4.7.

%H Tanya Khovanova, <a href="http://www.tanyakhovanova.com/RecursiveSequences/RecursiveSequences.html">Recursive Sequences</a>

%H Wolfdieter Lang, <a href="http://www.fq.math.ca/Scanned/38-5/lang.pdf">On polynomials related to powers of the generating function of Catalan's numbers</a>, Fib. Quart. 38 (2000) 408-419. Eq.(44), lhs, m=9.

%H <a href="/index/Ch#Cheby">Index entries for sequences related to Chebyshev polynomials.</a>

%H <a href="/index/Di#divseq">Index to divisibility sequences</a>

%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (7,-1).

%H <a href="/index/Ph#Pisot">Index entries for Pisot sequences</a>

%F G.f.: x/(1-7*x+x^2).

%F a(n) = F(4*n)/3 = A033888(n)/3, where F=A000045 (the Fibonacci sequence).

%F a(n) = S(2*n-1, sqrt(9))/sqrt(9) = S(n-1, 7); S(n, x) := U(n, x/2), Chebyshev polynomials of the 2nd kind, A049310.

%F a(n) = Sum_{i = 0..n-1} C(2*n-1-i, i)*5^(n-i-1). - Mario Catalani (mario.catalani(AT)unito.it), Jul 23 2004

%F [A049685(n-1), a(n)] = [1,5; 1,6]^n * [1,0]. - _Gary W. Adamson_, Mar 21 2008

%F a(n) = A167816(4*n). - _Reinhard Zumkeller_, Nov 13 2009

%F a(n) = (((7+sqrt(45))/2)^n-((7-sqrt(45))/2)^n)/sqrt(45). - _Noureddine Chair_, Aug 31 2011

%F a(n+1) = Sum_{k = 0..n} A101950(n,k)*6^k. - _Philippe Deléham_, Feb 10 2012

%F a(n) = (A081072(n)/3)-1. - _Martin Ettl_, Nov 11 2012

%F from _Peter Bala_, Dec 23 2012: (Start)

%F Product {n >= 1} (1 + 1/a(n)) = (1/5)*(5 + 3*sqrt(5)).

%F Product {n >= 2} (1 - 1/a(n)) = (1/14)*(5 + 3*sqrt(5)). (End)

%F From _Peter Bala_, Apr 02 2015: (Start)

%F Sum_{n >= 1} a(n)*x^(2*n) = -A(x)*A(-x), where A(x) = Sum_{n >= 1} Fibonacci(2*n)* x^n.

%F 1 + 5*Sum_{n >= 1} a(n)*x^(2*n) = F(x)*F(-x) = G(x)*G(-x), where F(x) = 1 + A(x) and G(x) = 1 + 5*A(x).

%F 1 + Sum_{n >= 1} a(n)*x^(2*n) = H(x)*H(-x) = I(x)*I(-x), where H(x) = 1 + Sum_{n >= 1} Fibonacci(2*n + 3)*x^n and I(x) = 1 + x + x*Sum_{n >= 1} Fibonacci(2*n - 1)*x^n. (End)

%F E.g.f.: 2*exp(7*x/2)*sinh(3*sqrt(5)*x/2)/(3*sqrt(5)). - _Ilya Gutkovskiy_, Jul 03 2016

%F a(n) = Sum_{k = 0..n-1} (-1)^(n+k+1)*9^k*binomial(n+k, 2*k+1). - _Peter Bala_, Jul 17 2023

%e a(2) = 7*a(1) - a(0) = 7*7 - 1 = 48. - _Michael B. Porter_, Jul 04 2016

%p seq(combinat:-fibonacci(4*n)/3, n = 0 .. 30); # _Robert Israel_, Jan 26 2015

%t LinearRecurrence[{7,-1},{0,1},30] (* _Harvey P. Dale_, Jul 13 2011 *)

%t CoefficientList[Series[x/(1 - 7*x + x^2), {x, 0, 50}], x] (* _Vincenzo Librandi_, Dec 23 2012 *)

%o (MuPAD) numlib::fibonacci(4*n)/3 $ n = 0..25; // _Zerinvary Lajos_, May 09 2008

%o (Sage) [lucas_number1(n,7,1) for n in range(27)] # _Zerinvary Lajos_, Jun 25 2008

%o (Sage) [fibonacci(4*n)/3 for n in range(0, 21)] # _Zerinvary Lajos_, May 15 2009

%o (Magma) [Fibonacci(4*n)/3 : n in [0..30]]; // _Vincenzo Librandi_, Jun 07 2011

%o (PARI) a(n)=fibonacci(4*n)/3 \\ _Charles R Greathouse IV_, Mar 09, 2012

%o (PARI) concat(0, Vec(x/(1-7*x+x^2) + O(x^99))) \\ _Altug Alkan_, Jul 03 2016

%o (Maxima)

%o a[0]:0$ a[1]:1$ a[n]:=7*a[n-1] - a[n-2]$ A004187(n):=a[n]$ makelist(A004187(n),n,0,30); /* _Martin Ettl_, Nov 11 2012 */

%o (Magma) /* By definition: */ [n le 2 select n-1 else 7*Self(n-1)-Self(n-2): n in [1..23]]; // _Bruno Berselli_, Dec 24 2012

%Y Cf. A000027, A001906, A001353, A004254, A001109, A049685, A033888. a(n)=sqrt((A056854(n)^2 - 4)/45).

%Y Second column of array A028412.

%K nonn,easy

%O 0,3

%A _N. J. A. Sloane_, _R. K. Guy_

%E Entry improved by comments from _Michael Somos_ and _Wolfdieter Lang_, Aug 02 2000

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 18:22 EDT 2024. Contains 371750 sequences. (Running on oeis4.)