The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A052533 Expansion of (1-x)/(1-x-3*x^2). 5
 1, 0, 3, 3, 12, 21, 57, 120, 291, 651, 1524, 3477, 8049, 18480, 42627, 98067, 225948, 520149, 1197993, 2758440, 6352419, 14627739, 33684996, 77568213, 178623201, 411327840, 947197443, 2181180963, 5022773292, 11566316181, 26634636057 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,3 COMMENTS Form the graph with matrix A=[0,1,1,1;1,1,0,0;1,0,1,0;1,0,0,1]. A052533 counts closed walks of length n at the vertex without loop. - Paul Barry, Oct 02 2004 Let M = [0, sqrt(3); sqrt(3), 1] be a 2 X 2 matrix. Then A052533 = {[M^n]_(1,1)}. Note also that {[M^n]_(2,2)} = A006130. - L. Edson Jeffery, Nov 25 2011 Pisano period lengths:  1, 3, 1, 6, 24, 3, 24, 6, 1, 24,120, 6,156, 24, 24, 12, 16, 3, 90, 24, ... - R. J. Mathar, Aug 10 2012 LINKS Vincenzo Librandi, Table of n, a(n) for n = 0..1000 INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 463 Index entries for linear recurrences with constant coefficients, signature (1,3). FORMULA G.f.: (1 - x)/(1 - x - 3*x^2). a(n) = A006130(n) - A006130(n-1). a(n) = a(n-1) + 3*a(n-2), with a(0)=1, a(1)=0. a(n) = Sum_{alpha = RootOf(-1+x+3*x^2)} (1/13)*(-1 + 7*alpha)* alpha^(-n-1). a(n) = Sum_{k=0..floor(n/2)} C(n-k-1,n-2*k)*3^k. - Paul Barry, Mar 16 2010 If p[1]=0, and p[i]=3, (i>1), and if A is Hessenberg matrix of order n defined by: A[i,j]=p[j-i+1], (i<=j), A[i,j]=-1, (i=j+1), and A[i,j]=0 otherwise. Then, for n>=1, a(n)=det A. - Milan Janjic, Apr 29 2010 a(n) = (1/2)*( ((1-sqrt(13))/2)^n + ((1+sqrt(13))/2)^n ) + (sqrt(13)/26)*( ((1-sqrt(13))/2)^n - ((1+sqrt(13))/2)^n ), with n>=0. - Paolo P. Lava, May 10 2010 G.f.: (Q(0) -1)*(1-x)/x, where Q(k) = 1 + 3*x^2 + (k+2)*x - x*(k+1 + 3*x)/Q(k+1); (continued fraction). - Sergei N. Gladkovskii, Oct 07 2013 a(n) = 3^(n/2) * Fibonacci(n-1, 1/sqrt(3)). - G. C. Greubel, Jan 15 2020 MAPLE spec := [S, {S=Sequence(Prod(Z, Union(Z, Z, Z), Sequence(Z)))}, unlabeled]: seq(combstruct[count](spec, size=n), n=0..20); seq(coeff(series((1-x)/(1-x-3*x^2), x, n+1), x, n), n = 0..40); # G. C. Greubel, Jan 15 2020 MATHEMATICA CoefficientList[Series[(1-x)/(1-x-3x^2), {x, 0, 40}], x] (* Vincenzo Librandi, Oct 07 2013 *) LinearRecurrence[{1, 3}, {1, 0}, 40] (* G. C. Greubel, May 09 2019 *) PROG (PARI) my(x='x+O('x^30)); Vec((1-x)/(1-x-3*x^2)) \\ G. C. Greubel, May 09 2019 (MAGMA) I:=[1, 0]; [n le 2 select I[n] else Self(n-1)+3*Self(n-2): n in [1..40]]; // G. C. Greubel, May 09 2019 (MAGMA) R:=PowerSeriesRing(Integers(), 33); Coefficients(R!( (1-x)/(1-x-3*x^2))); // Marius A. Burtea, Jan 15 2020 (Sage) [lucas_number1(n+1, 1, -3) -lucas_number1(n, 1, -3) for n in (0..40)] # G. C. Greubel, May 09 2019 (GAP) a:=[1, 0];; for n in [3..40] do a[n]:=a[n-1]+3*a[n-2]; od; a; # G. C. Greubel, May 09 2019 CROSSREFS Cf. A006130, A274977. Sequence in context: A078666 A290438 A006804 * A268798 A136533 A268639 Adjacent sequences:  A052530 A052531 A052532 * A052534 A052535 A052536 KEYWORD nonn,easy AUTHOR encyclopedia(AT)pommard.inria.fr, Jan 25 2000 EXTENSIONS More terms from James A. Sellers, Jun 06 2000 STATUS approved

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

Last modified May 31 22:45 EDT 2020. Contains 334756 sequences. (Running on oeis4.)