cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A083099 a(n) = 2*a(n-1) + 6*a(n-2), a(0) = 0, a(1) = 1.

This page as a plain text file.
%I A083099 #72 Dec 16 2023 15:53:10
%S A083099 0,1,2,10,32,124,440,1624,5888,21520,78368,285856,1041920,3798976,
%T A083099 13849472,50492800,184082432,671121664,2446737920,8920205824,
%U A083099 32520839168,118562913280,432250861568,1575879202816,5745263575040
%N A083099 a(n) = 2*a(n-1) + 6*a(n-2), a(0) = 0, a(1) = 1.
%C A083099 a(n+1) = a(n) + A083098(n+1). A083098(n+1)/a(n) converges to sqrt(7).
%C A083099 The same sequence may be obtained by the following process. Starting a priori with the fraction 1/1, the denominators of fractions built according to the rule: add top and bottom to get the new bottom, add top and 7 times the bottom to get the new top. The limit of the sequence of fractions is sqrt(7). - _Cino Hilliard_, Sep 25 2005
%C A083099 Pisano period lengths: 1, 1, 2, 1, 12, 2, 7, 1, 6, 12, 60, 2,168, 7, 12, 1,288, 6, 18, 12, ... - _R. J. Mathar_, Aug 10 2012
%C A083099 a(n) is divisible by 2^ceiling(n/2), see formula below. - _Ralf Stephan_, Dec 24 2013
%C A083099 Connect the center of a regular hexagon with side length 1 with its six vertices. a(n) is the number of paths of length n from the center to any of its vertices. Number of paths of length n from the center to itself is 6*a(n-1). - _Jianing Song_, Apr 20 2019
%D A083099 John Derbyshire, Prime Obsession, Joseph Henry Press, April 2004, see p. 16.
%H A083099 Vincenzo Librandi, <a href="/A083099/b083099.txt">Table of n, a(n) for n = 0..1000</a>
%H A083099 Project Euler, <a href="https://projecteuler.net/problem=752">Problem 752</a>, sequence beta(n).
%H A083099 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (2,6).
%F A083099 G.f.: x/(1 - 2*x - 6*x^2).
%F A083099 From _Paul Barry_, Sep 29 2004: (Start)
%F A083099 E.g.f.: (d/dx)(exp(x)*sinh(sqrt(7)*x)/sqrt(7));
%F A083099 a(n-1) = Sum_{k=0..n} binomial(n, 2k+1)*7^k. (End)
%F A083099 Simplified formula: a(n) = ((1 + sqrt(7))^n - (1 - sqrt(7))^n)/sqrt(28). - Al Hakanson (hawkuu(AT)gmail.com), Jan 05 2009
%F A083099 G.f.: G(0)*x/(2*(1-x)), where G(k) = 1 + 1/(1 - x*(7*k-1)/(x*(7*k+6) - 1/G(k+1))); (continued fraction). - _Sergei N. Gladkovskii_, May 26 2013
%F A083099 a(2n) = 2^n * A154245(n), a(2n+1) = 2^n * (5*A154245(n) - 9*A154245(n-1)). - _Ralf Stephan_, Dec 24 2013
%F A083099 a(n) = Sum_{k=1,3,5,...<=n} binomial(n,k)*7^((k-1)/2). - _Vladimir Shevelev_, Feb 06 2014
%F A083099 a(n) = i^(n-1)*6^((n-1)/2)*ChebyshevU(n-1, -i/sqrt(6)). - _G. C. Greubel_, Jun 01 2023
%p A083099 A083099 := proc(n)
%p A083099     option remember;
%p A083099     if n <= 1 then
%p A083099         n;
%p A083099     else
%p A083099         2*procname(n-1)+6*procname(n-2) ;
%p A083099     end if;
%p A083099 end proc: # _R. J. Mathar_, Sep 23 2016
%t A083099 CoefficientList[Series[x/(1-2x-6x^2), {x, 0, 25}], x] (* Adapted for offset 0 by _Vincenzo Librandi_, Feb 07 2014 *)
%t A083099 Expand[Table[((1 + Sqrt[7])^n - (1 - Sqrt[7])^n)7/(14Sqrt[7]), {n, 0, 25}]] (* _Zerinvary Lajos_, Mar 22 2007 *)
%t A083099 LinearRecurrence[{2,6}, {0,1}, 25] (* _Sture Sjöstedt_, Dec 06 2011 *)
%o A083099 (Sage) [lucas_number1(n,2,-6) for n in range(0, 25)] # _Zerinvary Lajos_, Apr 22 2009
%o A083099 (PARI) a(n)=([0,1; 6,2]^n*[0;1])[1,1] \\ _Charles R Greathouse IV_, May 10 2016
%o A083099 (PARI) my(x='x+O('x^30)); concat([0], Vec(x/(1-2*x-6*x^2))) \\ _G. C. Greubel_, Jan 24 2018
%o A083099 (Magma) [n le 2 select n-1 else 2*Self(n-1) + 6*Self(n-2): n in [1..30]]; // _G. C. Greubel_, Jan 24 2018
%o A083099 (SageMath)
%o A083099 A083099=BinaryRecurrenceSequence(2,6,0,1)
%o A083099 [A083099(n) for n in range(41)] # _G. C. Greubel_, Jun 01 2023
%Y A083099 The following sequences (and others) belong to the same family: A000129, A001333, A002532, A002533, A002605, A015518, A015519, A026150, A046717, A063727, A083098, A083099, A083100, A084057.
%Y A083099 Cf. A154245, A291008.
%K A083099 nonn,easy
%O A083099 0,3
%A A083099 Mario Catalani (mario.catalani(AT)unito.it), Apr 22 2003