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.

Previous Showing 21-30 of 35 results. Next

A054493 A Pellian-related recursive sequence.

Original entry on oeis.org

1, 7, 36, 175, 841, 4032, 19321, 92575, 443556, 2125207, 10182481, 48787200, 233753521, 1119980407, 5366148516, 25710762175, 123187662361, 590227549632, 2827950085801, 13549522879375, 64919664311076, 311048798676007, 1490324329068961, 7140572846668800
Offset: 0

Views

Author

Barry E. Williams, May 06 2000

Keywords

Comments

This is the r=7 member in the r-family of sequences S_r(n+1) defined in A092184 where more information can be found.
Working with an offset of 1, this sequence is a divisibility sequence, i.e., a(n) divides a(m) whenever n divides m. Case P1 = 7, P2 = 10, Q = 1 of the 3 parameter family of 4th-order linear divisibility sequences found by Williams and Guy. - Peter Bala, Mar 25 2014

Examples

			G.f. = 1 + 7*x + 36*x^2 + 175*x^3 + 841*x^4 + 4032*x^5 + 19321*x^6 + ...
		

References

  • A. H. Beiler, Recreations in the Theory of Numbers, Dover, N.Y., 1964, pp. 122-125, 194-196.

Crossrefs

Cf. A004254, A100047, A030221 (first differences).

Programs

  • Maple
    A054493 := proc(n)
        option remember;
        if n <= 1 then
            6*n+1 ;
        else
            5*procname(n-1)-procname(n-2)+2 ;
        end if ;
    end proc:
    seq(A054493(n),n=0..10) ; # R. J. Mathar, Apr 16 2018
  • Mathematica
    LinearRecurrence[{6,-6,1},{1,7,36},30] (* Harvey P. Dale, Apr 15 2015 *)
    a[ n_] := ChebyshevU[n, Sqrt[7]/2]^2; (* Michael Somos, Jan 22 2017 *)
  • PARI
    {a(n) = simplify(polchebyshev(n, 2, quadgen(28)/2)^2)}; /* Michael Somos, Jan 22 2017 */

Formula

a(n) = 5*a(n-1) - a(n-2) + 2, a(0)=1, a(1)=7.
A004254 = sqrt{21*(A054493)^2+28*(A054493)}/7. - James Sellers, May 10 2000
a(n) = (1/3)*(-2 + ((5+sqrt(21))/2)^n + ((5-sqrt(21))/2)^n). - Ralf Stephan, Apr 14 2004
G.f.: (1+x)/((1-x)*(1 - 5*x + x^2)) = (1+x)/(1 - 6*x + 6*x^2 - x^3). From the R. Stephan link.
a(n) = 6*a(n-1) - 6*a(n-2) + a(n-3), n>=2, a(-1):=0, a(0)=1, a(1)=7.
a(n) = (2*T(n, 5/2)-2)/3, with twice the Chebyshev polynomials of the first kind, 2*T(n, x=5/2)=A003501(n).
a(n) = b(n) + b(n-1), n>=1, with b(n)=A089817(n) the partial sums of S(n, 5)= U(n, 5/2)=A004254(n+1), with S(n, x)=U(n, x/2) Chebyshev's polynomials of the second kind.
From Peter Bala, Mar 25 2014: (Start)
The following formulas assume an offset of 1.
Let {u(n)} be the Lucas sequence in the quadratic integer ring Z[sqrt(7)] defined by the recurrence u(0) = 0, u(1) = 1 and u(n) = sqrt(7)*u(n-1) - u(n-2) for n >= 2. Then a(n) = u(n)^2.
Equivalently, a(n) = U(n-1,sqrt(7)/2)^2, where U(n,x) denotes the Chebyshev polynomial of the second kind.
a(n) = 1/3*( ((sqrt(7) + sqrt(3))/2)^n - ((sqrt(7) - sqrt(3))/2)^n )^2.
a(n) = bottom left entry of the 2 X 2 matrix T(n, M), where M is the 2 X 2 matrix [0, -5/2; 1, 7/2] and T(n,x) denotes the Chebyshev polynomial of the first kind.
See the remarks in A100047 for the general connection between Chebyshev polynomials of the first kind and 4th-order linear divisibility sequences. (End)
a(2*n - 1) = 7 * A004254(n)^2, a(2*n) = A030221(n)^2 for all n in Z. - Michael Somos, Jan 22 2017
a(n) = a(-2-n) for all n in Z. - Michael Somos, Jan 22 2017
0 = 1 + a(n)*(-2 + a(n) - 5*a(n+1)) + a(n+1)*(-2 + a(n+1)) for all n in Z. - Michael Somos, Jan 22 2017

Extensions

Chebyshev comments from Wolfdieter Lang, Sep 10 2004

A180032 Eight white queens and one red queen on a 3 X 3 chessboard. G.f.: (1+x)/(1-5*x-7*x^2).

Original entry on oeis.org

1, 6, 37, 227, 1394, 8559, 52553, 322678, 1981261, 12165051, 74694082, 458625767, 2815987409, 17290317414, 106163498933, 651849716563, 4002393075346, 24574913392671, 150891318490777, 926480986202582, 5688644160448349
Offset: 0

Views

Author

Johannes W. Meijer, Aug 09 2010

Keywords

Comments

The a(n) represent the number of n-move routes of a fairy chess piece starting in a given corner or side square (m = 1, 3, 7, 9; 2, 4, 6, 8) on a 3 X 3 chessboard. This fairy chess piece behaves like a white chess queen on the eight side and corner squares but on the central square the queen explodes with fury and turns into a red queen.
On a 3 X 3 chessboard there are 2^9 = 512 ways to explode with fury on the central square (we assume here that a red queen might behave like a white queen). The red queen is represented by the A[5] vector in the fifth row of the adjacency matrix A, see the Maple program. For the corner and side squares the 512 red queens lead to 17 red queen sequences, see the cross-references for the complete set.
The sequence above corresponds to 8 red queen vectors, i.e., A[5] vectors, with decimal values 239, 367, 431, 463, 487, 491, 493 and 494. The central square leads for these vectors to A152240.
This sequence belongs to a family of sequences with g.f. (1+x)/(1 - 5*x - k*x^2). The members of this family that are red queen sequences are A180030 (k=8), A180032 (k=7; this sequence), A000400 (k=6), A180033 (k=5), A126501 (k=4), A180035 (k=3), A180037 (k=2) A015449 (k=1) and A003948 (k=0). Other members of this family are A030221 (k=-1), A109114 (k=-3), A020989 (k=-4), A166060 (k=-6).
Inverse binomial transform of A054413.

Crossrefs

Cf. A180028 (Central square).
Cf. Red queen sequences corner and side squares [decimal value A[5]]: A090018 [511], A135030 [255], A180030 [495], A005668 [127], A180032 [239], A000400 [63], A180033 [47], A001109 [31], A126501 [15], A154244 [23], A180035 [7], A138395 [19], A180037 [3], A084326 [17], A015449 [1], A003463 [16], A003948 [0].

Programs

  • Magma
    I:=[1,6]; [n le 2 select I[n] else 5*Self(n-1)+7*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Nov 15 2011
  • Maple
    with(LinearAlgebra): nmax:=20; m:=1; A[5]:= [1,1,1,1,0,1,1,1,0]: A:=Matrix([[0,1,1,1,1,0,1,0,1], [1,0,1,1,1,1,0,1,0], [1,1,0,0,1,1,1,0,1], [1,1,0,0,1,1,1,1,0], A[5], [0,1,1,1,1,0,0,1,1], [1,0,1,1,1,0,0,1,1], [0,1,0,1,1,1,1,0,1], [1,0,1,0,1,1,1,1,0]]): for n from 0 to nmax do B(n):=A^n: a(n):= add(B(n)[m,k],k=1..9): od: seq(a(n), n=0..nmax);
  • Mathematica
    LinearRecurrence[{5,7},{1,6},40] (* Vincenzo Librandi, Nov 15 2011 *)
    CoefficientList[Series[(1+x)/(1-5x-7x^2),{x,0,30}],x] (* Harvey P. Dale, Apr 04 2024 *)

Formula

G.f.: (1+x)/(1 - 5*x - 7*x^2).
a(n) = 5*a(n-1) + 7*a(n-2) with a(0) = 1 and a(1) = 6.
a(n) = ((7+9*A)*A^(-n-1) + (7+9*B)*B^(-n-1))/53 with A = (-5+sqrt(53))/14 and B = (-5-sqrt(53))/14.

A098495 Array T(r,c) read by antidiagonals: values of triangle A098493 interpreted as polynomials, r >= 0.

Original entry on oeis.org

1, 1, 0, 1, -1, -1, 1, -2, -1, -1, 1, -3, 1, 1, 0, 1, -4, 5, 1, 1, 1, 1, -5, 11, -7, -2, -1, 1, 1, -6, 19, -29, 9, 1, -1, 0, 1, -7, 29, -71, 76, -11, 1, 1, -1, 1, -8, 41, -139, 265, -199, 13, -2, 1, -1, 1, -9, 55, -239, 666, -989, 521, -15, 1, -1, 0, 1, -10, 71, -377, 1393, -3191, 3691, -1364, 17, 1, -1, 1, 1, -11, 89, -559
Offset: 0

Views

Author

Ralf Stephan, Sep 12 2004

Keywords

Examples

			Array begins
  1,  0, -1,  -1,   0,    1,    1,   0, -1, ...
  1, -1, -1,   1,   1,   -1,   -1,   1,  1, ...
  1, -2,  1,   1,  -2,    1,    1,  -2,  1, ...
  1, -3,  5,  -7,   9,  -11,   13, -15, ...
  1, -4, 11, -29,  76, -199,  521, ...
  1, -5, 19, -71, 265, -989, 3691, ...
  ...
		

Crossrefs

See A094954 (with negative k) for negative r and more formulas and programs.
Rows include (-1)^c times A005408, A002878, A001834, A030221, A002315. Columns include A028387. Antidiagonal sums are in A098496.

Programs

  • Mathematica
    T[r_, 1] := 1; T[r_, 2] := -r - 1; T[r_, c_] := -r*T[r, c - 1] - T[r, c - 2]; Flatten[ Table[ T[n - i, i], {n, 0, 11}, {i, n + 1}]] (* Robert G. Wilson v, May 10 2005 *)
  • PARI
    { t(r,c)=if(c>r||c<0||r<0,0,if(c>=r-1,(-1)^r*if(c==r,1,-c),if(r==1,0,if(c==0,t(r-1,0)-t(r-2,0),t(r-1,c)-t(r-2,c)-t(r-1,c-1))))) }
    T(r,c)=sum(i=0,c,t(c,i)*r^i);
    matrix(5,5,n,k,T(n-1,k-1))

Formula

Recurrence: T(r, 1) = 1, T(r, 2) = -r-1, T(r, c) = -rT(r, c-1) - T(r, c-2). (Corrected Oct 19 2004)

Extensions

More terms from Robert G. Wilson v, May 10 2005

A180142 Eight rooks and one berserker on a 3 X 3 chessboard. G.f.: (1 + x - x^2)/(1 - 3*x - 3*x^2).

Original entry on oeis.org

1, 4, 14, 54, 204, 774, 2934, 11124, 42174, 159894, 606204, 2298294, 8713494, 33035364, 125246574, 474845814, 1800277164, 6825368934, 25876938294, 98106921684, 371951579934, 1410175504854, 5346381254364, 20269670277654, 76848154596054, 291353474621124
Offset: 0

Views

Author

Johannes W. Meijer, Aug 13 2010

Keywords

Comments

The a(n) represent the number of n-move routes of a fairy chess piece starting in a given side square (m = 2, 4, 6 or 8) on a 3 X 3 chessboard. This fairy chess piece behaves like a rook on the eight side and corner squares but on the central square the rook goes berserk and turns into a berserker, see A180140.
The sequence above corresponds to 16 A[5] vectors with decimal values between 3 and 384. These vectors lead for the corner squares to A123620 and for the central square to A155116.
This sequence appears among the members of a family of sequences with g.f. (1 + x - k*x^2)/(1 - 3*x + (k-4)*x^2). Berserker sequences that are members of this family are 4*A007482 (k=2; with leading 1 added), A180142 (k=1; this sequence), A000302 (k=0), A180140 (k=-1) and 4*A154964 (k=-2; n>=1 and a(0)=1). Some other members of this family are 2*A180148 (k=3; with leading 1 added), 4*A025192 (k=4; with leading 1 added), 2*A005248 (k=5; with leading 1 added) and A123932 (k=6).

Crossrefs

Cf. A180141 (corner squares), A180140 (side squares), A180147 (central square).

Programs

  • Maple
    with(LinearAlgebra): nmax:=23; m:=2; A[5]:=[0,0,0,0,0,0,0,1,1]: A:= Matrix([[0,1,1,1,0,0,1,0,0], [1,0,1,0,1,0,0,1,0], [1,1,0,0,0,1,0,0,1], [1,0,0,0,1,1,1,0,0], A[5], [0,0,1,1,1,0,0,0,1], [1,0,0,1,0,0,0,1,1], [0,1,0,0,1,0,1,0,1], [0,0,1,0,0,1,1,1,0]]): for n from 0 to nmax do B(n):=A^n: a(n):= add(B(n)[m,k],k=1..9): od: seq(a(n), n=0..nmax);
    # second Maple program:
    a:= n-> ceil((<<0|1>, <3|3>>^n. <<2/3, 4>>)[1,1]):
    seq(a(n), n=0..25);  # Alois P. Heinz, Jul 14 2021
  • Mathematica
    LinearRecurrence[{3, 3}, {1, 4, 14}, 26] (* Jean-François Alcover, Jan 18 2025 *)

Formula

G.f.: (1 + x - x^2)/(1 - 3*x - 3*x^2).
a(n) = 3*a(n-1) + 3*a(n-2) for n >= 2 with a(0)=1, a(1)=4 and a(2)=14.
a(n) = (6-2*A)*A^(-n-1)/21 + (6-2*B)*B^(-n-1)/21 with A=(-3+sqrt(21))/6 and B=(-3-sqrt(21))/6.
Lim_{k->infinity} a(2*n+k)/a(k) = 2*A000244(n)/(A003501(n) - A004254(n)*sqrt(21)) for n >= 1.
Lim_{k->infinity} a(2*n-1+k)/a(k) = 2*A000244(n)/(A004253(n)*sqrt(21) - 3*A030221(n-1)) for n >= 1.

A003769 Number of perfect matchings (or domino tilings) in K_4 X P_n.

Original entry on oeis.org

3, 16, 75, 361, 1728, 8281, 39675, 190096, 910803, 4363921, 20908800, 100180081, 479991603, 2299777936, 11018898075, 52794712441, 252954664128, 1211978608201, 5806938376875, 27822713276176, 133306628004003, 638710426743841, 3060245505715200
Offset: 1

Views

Author

Keywords

References

  • F. Faase, On the number of specific spanning subgraphs of the graphs G X P_n, Ars Combin. 49 (1998), 129-154.

Crossrefs

Essentially the same as A005386. First differences of A099025.

Programs

  • PARI
    Vec(x*(3 + 4*x - x^2) / ((1 + x)*(1 - 5*x + x^2)) + O(x^40)) \\ Colin Barker, Dec 16 2017

Formula

a(n) = 4a(n-1) + 4a(n-2) - a(n-3), n>3.
a(n) = (1/7)*(6*A030221(n) - A054477(n) + 2(-1)^n).
G.f.: x*(3+4*x-x^2)/((1+x)*(1-5*x+x^2)). - R. J. Mathar, Dec 16 2008
a(n) = 2^(-1-n)*((-1)^n*2^(2+n) + (5-sqrt(21))^(1+n) + (5+sqrt(21))^(1+n)) / 7. - Colin Barker, Dec 16 2017

A055271 a(n) = 5*a(n-1) - a(n-2) with a(0)=1, a(1)=7.

Original entry on oeis.org

1, 7, 34, 163, 781, 3742, 17929, 85903, 411586, 1972027, 9448549, 45270718, 216905041, 1039254487, 4979367394, 23857582483, 114308545021, 547685142622, 2624117168089, 12572900697823, 60240386321026, 288629030907307, 1382904768215509, 6625894810170238, 31746569282635681, 152106951603008167
Offset: 0

Views

Author

Barry E. Williams, May 10 2000

Keywords

References

  • A. H. Beiler, Recreations in the Theory of Numbers, Dover, N.Y., 1964, pp. 122-125, 194-196.

Crossrefs

Cf. A030221.

Programs

  • Magma
    I:=[1,7]; [n le 2 select I[n] else 5*Self(n-1) - Self(n-2): n in [1..30]]; // G. C. Greubel, Mar 16 2020
    
  • Maple
    A055271:= n-> simplify(ChebyshevU(n, 5/2) + 2*ChebyshevU(n-1, 5/2)); seq(A055271(n), n=0..30); # G. C. Greubel, Mar 16 2020
  • Mathematica
    LinearRecurrence[{5,-1}, {1,7}, 30] (* G. C. Greubel, Mar 16 2020 *)
  • Sage
    [chebyshev_U(n, 5/2) + 2*chebyshev_U(n-1, 5/2) for n in (0..30)] # G. C. Greubel, Mar 16 2020

Formula

a(n) = (7*(((5+sqrt(21))/2)^n - ((5-sqrt(21))/2)^n) - (((5+sqrt(21))/2)^(n-1) - ((5-sqrt(21))/2)^(n-1)))/sqrt(21).
G.f.: (1+2*x)/(1-5*x+x^2).
a(n) = (-1)^n*Sum_{k = 0..n} A238731(n,k)*(-8)^k. - Philippe Deléham, Mar 05 2014
a(n) = ChebyshevT(n, 5/2) + (9/2)*ChebyshevU(n-1,5/2) = ChebyshevU(n, 5/2) + 2*ChebyshevU(n-1, 5/2). - G. C. Greubel, Mar 16 2020

Extensions

Terms a(22) onward added by G. C. Greubel, Mar 16 2020

A099025 Expansion of 1 / ((1+x) * (1-5*x+x^2)).

Original entry on oeis.org

1, 4, 20, 95, 456, 2184, 10465, 50140, 240236, 1151039, 5514960, 26423760, 126603841, 606595444, 2906373380, 13925271455, 66719983896, 319674648024, 1531653256225, 7338591633100, 35161304909276, 168467932913279, 807178359657120, 3867423865372320
Offset: 0

Views

Author

Ralf Stephan, Sep 26 2004

Keywords

Examples

			1 + 4*x + 20*x^2 + 95*x^3 + 456*x^4 + 2184*x^5 + 10465*x^6 + ...
		

Crossrefs

First differences of A089927. First differences are in A003769 and A005386. Pairwise sums are in A004254.

Programs

  • Magma
    I:=[1, 4, 20]; [n le 3 select I[n] else 4*Self(n-1) + 4*Self(n-2) - Self(n-3): n in [1..30]]; // G. C. Greubel, Dec 31 2017
  • Mathematica
    CoefficientList[Series[1/((1+x)*(1-5*x+x^2)), {x,0,50}], x] (* or *) LinearRecurrence[{4,4,-1}, {1,4,20}, 30] (* G. C. Greubel, Dec 31 2017 *)
  • PARI
    Vec(1/(1+x)/(1-5*x+x^2)+O(x^99)) \\ Charles R Greathouse IV, Sep 26 2012
    
  • PARI
    {a(n) = (3 * (-1)^n + 38 * subst( poltchebi(n), x, 5/2) - 8 * subst( poltchebi(n-1), x, 5/2)) / 21} /* Michael Somos, Jan 25 2013 */
    

Formula

a(n) = (1/7)*[A030221(n+2) - A003501(n+2) + (-1)^n].
a(n) = 5*a(n-1) -a(n-2) +(-1)^n, a(0)=1, a(1)=4. - Vincenzo Librandi, Mar 22 2011
G.f.: 1 / ((1 + x) * (1 - 5*x + x^2)).
a(-3-n) = -a(n). - Michael Somos, Jan 25 2013
a(n) = (2^(-n)*(3*(-2)^n+(9-2*sqrt(21))*(5-sqrt(21))^n+(5+sqrt(21))^n*(9+2*sqrt(21))))/21. - Colin Barker, Nov 02 2016

A126866 a(n) = 13*a(n-1) - a(n-2).

Original entry on oeis.org

1, 14, 181, 2339, 30226, 390599, 5047561, 65227694, 842912461, 10892634299, 140761333426, 1819004700239, 23506299769681, 303762892305614, 3925411300203301, 50726584010337299, 655520180834181586, 8471035766834023319, 109467944788008121561
Offset: 0

Views

Author

Diego A. Penta (diego(AT)alum.mit.edu), Mar 15 2007

Keywords

Comments

Nonnegative x values in solutions to the Diophantine equation 11*x^2 - 15*y^2 = -4. The corresponding y values are in A085260. Note that a(n+1)^2 - a(n)*a(n+2) = 15. - Klaus Purath, Mar 21 2025

Crossrefs

Programs

  • Mathematica
    LinearRecurrence[{13,-1},{1,14},30] (* Harvey P. Dale, Mar 28 2013 *)
  • Sage
    [(lucas_number2(n,13,1)-lucas_number2(n-1,13,1))/11 for n in range(1, 16)] # Zerinvary Lajos, Nov 10 2009

Formula

a(n) = 13*a(n-1) - a(n-2); a(0)=1, a(1)=14.
G.f.: (x+1)/(x^2-13*x+1). - Harvey P. Dale, Mar 28 2013

Extensions

Corrected and extended by Harvey P. Dale, Mar 28 2013

A160695 Integers m such that 3*m+1 and 7*m+1 are both perfect squares.

Original entry on oeis.org

0, 5, 120, 2760, 63365, 1454640, 33393360, 766592645, 17598237480, 403992869400, 9274237758725, 212903475581280, 4887505700610720, 112199727638465285, 2575706229984090840, 59129043561995624040, 1357392295695915262085, 31160893757444055403920
Offset: 1

Views

Author

Paul Weisenhorn, May 24 2009

Keywords

Comments

The ansatz 3*a(n)+1=A^2, 7*a(n)+1=B^2 is equivalent to the Pell equation x^2-21*y^2=1 (see A077232 for d=21), with x=(21*a(n)+5)/2 and y=A*B/2.
The associated A are in A004253, the B in A030221.
Bisection of A089927. - R. J. Mathar, Jul 10 2009

Crossrefs

Programs

  • Maple
    j:=0: for n from 0 to 1000000 do a:=sqrt(3*n+1): b:=sqrt(7*n+1):
    if (trunc(a)=a) and (trunc(b)=b) then j:=j+1: print(j,n,a,b): end if:
    end do:
  • Mathematica
    LinearRecurrence[{24,-24,1},{0,5,120},30] (* Harvey P. Dale, Dec 17 2013 *)

Formula

a(n) = 24*a(n-1) - 24*a(n-2) + a(n-3).
a(n) = (A004253(n)^2 - 1)/3 = (A030221(n)^2 - 1)/7.
a(n) = ((5+w)/2*((23+5*w)/2)^(n-1) + (5-w)/2*((23-5*w)/2)^(n-1) - 5)/21; where w=sqrt(21). [Corrected by Kevin Ryde, Sep 11 2020]
G.f.: 5*x^2/((1-x)*(x^2-23*x+1)). - R. J. Mathar, Jul 10 2009
From Francesca Arici, Sep 12 2020: (Start)
a(n) = 23*a(n-1) - a(n-2) + 5.
a(n) = A004254(n)* A004254(n+1). (End)
a(n) = 5*A334673(n-1). - Hugo Pfoertner, Apr 07 2021

Extensions

Edited and extended by R. J. Mathar, Jul 10 2009
Name edited by Michel Marcus, Sep 12 2020

A180031 Number of n-move paths on a 3 X 3 chessboard of a queen starting or ending in the central square.

Original entry on oeis.org

1, 8, 48, 304, 1904, 11952, 74992, 470576, 2952816, 18528688, 116265968, 729559344, 4577924464, 28726097072, 180253881072, 1131078181936, 7097421958256, 44535735246768, 279458051899888, 1753576141473584
Offset: 0

Views

Author

Johannes W. Meijer, Aug 09 2010

Keywords

Comments

The a(n) represent the number of n-move paths of a chess queen starting or ending in the central square (m = 5) on a 3 X 3 chessboard. The other squares lead to A180030.
To determine the a(n) we can either sum the components of the column vector A^n[k,m], with A the adjacency matrix of the queen's graph, or we can sum the components of the row vector A^n[m,k], see the Maple program.
Closely related with this sequence are the red queen sequences, see A180028 and A180032.
This sequence belongs to a family of sequences with g.f. (1+k*x)/(1 - 5*x - (k+5)*x^2). The members of this family that are red queen sequences are A180031 (k=3; this sequence), A152240 (k=2), A000400 (k=1), A057088 (k=0), A122690 (k=-1), A180036 (k=-2), A180038 (k=-3), A015449 (k=-4) and A000007 (k=-5). Other members of this family are A030221 (k= -6), 3*A109114 (k=-8), 4*A020989 (k=-9), 6*A166060 (k=-11).

Programs

  • Magma
    I:=[1,8]; [n le 2 select I[n] else 5*Self(n-1)+8*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Nov 15 2011
  • Maple
    with(LinearAlgebra): nmax:=19; m:=5; A[5]:= [1,1,1,1,0,1,1,1,1]: A:=Matrix([[0,1,1,1,1,0,1,0,1], [1,0,1,1,1,1,0,1,0], [1,1,0,0,1,1,1,0,1], [1,1,0,0,1,1,1,1,0], A[5], [0,1,1,1,1,0,0,1,1], [1,0,1,1,1,0,0,1,1], [0,1,0,1,1,1,1,0,1], [1,0,1,0,1,1,1,1,0]]): for n from 0 to nmax do B(n):=A^n: a(n):= add(B(n)[m,k],k=1..9): od: seq(a(n), n=0..nmax);
  • Mathematica
    LinearRecurrence[{5,8},{1,8},50] (* Vincenzo Librandi, Nov 15 2011 *)

Formula

G.f.: (1+3*x)/(1 - 5*x - 8*x^2).
a(n) = 5*a(n-1) + 8*a(n-2) with a(0) = 1 and a(1) = 8.
a(n) = ((A+11)*A^(-n-1) + (B+11)*B^(-n-1))/57 with A = (-5+sqrt(57))/16 and B = (-5-sqrt(57))/16.
Previous Showing 21-30 of 35 results. Next