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 11-20 of 46 results. Next

A027286 a(n) = Sum_{k=0..2n} (k+1) * A026584(n, k).

Original entry on oeis.org

1, 4, 18, 56, 190, 564, 1722, 4976, 14454, 40940, 115698, 322728, 896558, 2471588, 6786090, 18537184, 50459366, 136844892, 370030434, 997705240, 2683514526, 7201203988, 19284880794, 51546789456, 137541880150, 366412976332
Offset: 0

Views

Author

Keywords

Crossrefs

Programs

  • Magma
    I:=[1,4,18,56]; [n le 4 select I[n] else 2*Self(n-1) +7*Self(n-2) -8*Self(n-3) -16*Self(n-4): n in [1..31]]; // G. C. Greubel, Dec 12 2021
    
  • Mathematica
    LinearRecurrence[{2,7,-8,-16},{1,4,18,56}, 30] (* G. C. Greubel, Dec 12 2021 *)
  • PARI
    a(n)=([0,1,0,0; 0,0,1,0; 0,0,0,1; -16,-8,7,2]^n*[1;4;18;56])[1,1] \\ Charles R Greathouse IV, Oct 21 2022
  • Sage
    [2^(n-1)*(n+1)*(14*lucas_number2(n+2, 1/2, -1) + 5*lucas_number2(n+1, 1/2, -1))/17 for n in (0..30)] # G. C. Greubel, Dec 12 2021
    

Formula

G.f.: (1+2*x+3*x^2)/(1-x-4*x^2)^2.
From G. C. Greubel, Dec 12 2021: (Start)
a(n) = 2^(n-3)*( -6*F(n+1, 1/2) + Sum_{j=0..n} F(n-j+1, 1/2)*( 14*F(j+1, 1/2) + 5*F(j, 1/2) ), where F(n, x) are the Fibonacci polynomials.
a(n) = (2^(n-1)/17)*(n+1)*( 14*L(n+2, 1/2) + 5*L(n+1, 1/2) ), where L(n, x) are the Lucas polynomials.
a(n) = 2*a(n-1) + 7*a(n-2) - 8*a(n-3) - 16*a(n-4). (End)

A159612 INVERT transform of (1, 3, 1, 3, 1, ...).

Original entry on oeis.org

1, 4, 8, 24, 56, 152, 376, 984, 2488, 6424, 16376, 42072, 107576, 275864, 706168, 1809624, 4634296, 11872792, 30409976, 77901144, 199541048, 511145624, 1309309816, 3353892312, 8591131576, 22006700824, 56371227128, 144398030424, 369882938936, 947475060632, 2427006816376
Offset: 1

Views

Author

Gary W. Adamson, Apr 17 2009

Keywords

Comments

The sequence 1,1,4,8,24,... is an eigensequence of the sequence triangle of 1,3,1,3,1,3,1,..., which is the Riordan array ((1+3x)/(1-x^2),x). - Paul Barry, Feb 10 2011
From Sean A. Irvine, Jun 07 2025: (Start)
Also, the number of walks of length n-1 starting at vertex 1 in the following graph:
0 2
|\ /|
| 1 |
|/ \|
4 3. (End)

Examples

			a(4) = 24 = (1, 3, 1, 3) dot (8, 4, 1, 1) = (8 + 12, + 1 + 3).
		

Crossrefs

Cf. A026597 (vertices 0, 2, 3, 4), A384604 (missing edge {0,4}).

Programs

Formula

G.f.: x*(1+3*x)/(1-x-4*x^2). - Philippe Deléham, Mar 01 2012
a(n) = a(n-1) + 4*a(n-2), a(1)=1, a(2)=4. - Vincenzo Librandi, Mar 11 2011
a(n+1) = Sum_{k=0..n} A119473(n,k)*3^k. - Philippe Deléham, Oct 05 2012
a(n) = 2^(-3-n)*((1-sqrt(17))^n*(-5+3*sqrt(17)) + (1+sqrt(17))^n*(5+3*sqrt(17))) / sqrt(17) for n > 0. - Colin Barker, Dec 22 2016
a(n) = A006131(n)+3*A006131(n-1). - R. J. Mathar, Jun 07 2025
E.g.f.: (exp(x/2)*(51*cosh(sqrt(17)*x/2) + 5*sqrt(17)*sinh(sqrt(17)*x/2)) - 51)/68. - Stefano Spezia, Jun 07 2025

A222132 Decimal expansion of sqrt(4 + sqrt(4 + sqrt(4 + sqrt(4 + ... )))).

Original entry on oeis.org

2, 5, 6, 1, 5, 5, 2, 8, 1, 2, 8, 0, 8, 8, 3, 0, 2, 7, 4, 9, 1, 0, 7, 0, 4, 9, 2, 7, 9, 8, 7, 0, 3, 8, 5, 1, 2, 5, 7, 3, 5, 9, 9, 6, 1, 2, 6, 8, 6, 8, 1, 0, 2, 1, 7, 1, 9, 9, 3, 1, 6, 7, 8, 6, 5, 4, 7, 4, 7, 7, 1, 7, 3, 1, 6, 8, 8, 1, 0, 7, 9, 6, 7, 9, 3, 9, 3, 1, 8, 2, 5, 4, 0, 5, 3, 4, 2, 1, 4, 8, 3, 4, 2, 2, 7
Offset: 1

Views

Author

Jaroslav Krizek, Feb 08 2013

Keywords

Comments

Sequence with a(1) = 1 is decimal expansion of sqrt(4 - sqrt(4 - sqrt(4 - sqrt(4 - ... )))) = A222133.
Because 17 == 1 (mod 4), the basis for integers in the real quadratic number field K(sqrt(17)) is <1, omega(17)>, where omega(17) = (1 + sqrt(17))/2. - Wolfdieter Lang, Feb 10 2020
This is the positive root of the polynomial x^2 - x - 4, with negative root -A222133. - Wolfdieter Lang, Dec 10 2022
It is the spectral radius of the diamond graph (see Seeger and Sossa, 2023). - Stefano Spezia, Sep 19 2023
c^n = A006131(n) + A006131(n-1) * d, where c = (1 + sqrt(17))/2 and d = (-1 + sqrt(17))/2. - Gary W. Adamson, Nov 25 2023
c^n = A052923(n) + A006131(n-1) * c. Also for negative n. - Wolfdieter Lang, Nov 27 2023
The effective degree of maximal entropy random walk on the barred-square graph (see Burda et al.). - Stefano Spezia, Feb 07 2025

Examples

			2.561552812808830274910704...
		

Crossrefs

Programs

  • Maple
    Digits:=140:
    evalf((sqrt(17)+1)/2);  # Alois P. Heinz, Sep 19 2023
  • Mathematica
    RealDigits[(1 + Sqrt[17])/2, 10, 130]

Formula

Closed form: (sqrt(17) + 1)/2 = A178255 - 1 = A082486 - 2.
sqrt(4 + sqrt(4 + sqrt(4 + sqrt(4 + ... )))) - 1 = sqrt(4 - sqrt(4 - sqrt(4 - sqrt(4 - ... )))). See A222133.

A111006 Another version of Fibonacci-Pascal triangle A037027.

Original entry on oeis.org

1, 0, 1, 0, 1, 2, 0, 0, 2, 3, 0, 0, 1, 5, 5, 0, 0, 0, 3, 10, 8, 0, 0, 0, 1, 9, 20, 13, 0, 0, 0, 0, 4, 22, 38, 21, 0, 0, 0, 0, 1, 14, 51, 71, 34, 0, 0, 0, 0, 0, 5, 40, 111, 130, 55, 0, 0, 0, 0, 0, 1, 20, 105, 233, 235, 89, 0, 0, 0, 0, 0, 0, 6, 65, 256, 474, 420, 144
Offset: 0

Views

Author

Philippe Deléham, Oct 02 2005

Keywords

Comments

Triangle T(n,k), 0 <= k <= n, read by rows, given by [0, 1, -1, 0, 0, 0, 0, 0, 0, 0, ...] DELTA [1, 1, -1, 0, 0, 0, 0, 0, 0, ...] where DELTA is the operator defined in A084938.
Row sums are the Jacobsthal numbers A001045(n+1) and column sums form Pell numbers A000129.
Maximal column entries: A038149 = {1, 1, 2, 5, 10, 22, ...}.
T(n,k) gives a convolved Fibonacci sequence (A001629, A001872, ...).
Triangle read by rows: T(n,n-k) is the number of ways to tile a 2 X n rectangle with k pieces of 2 X 2 tiles and n-2k pieces of 1 X 2 tiles (0 <= k <= floor(n/2)). - Philippe Deléham, Feb 17 2014
Diagonal sums are A013979(n). - Philippe Deléham, Feb 17 2014
T(n,k) is the number of ways to tile a 2 X n rectangle with k pieces of 2 X 2 tiles and 1 X 2 tiles. - Emeric Deutsch, Aug 14 2014

Examples

			Triangle begins:
  1;
  0, 1;
  0, 1, 2;
  0, 0, 2, 3;
  0, 0, 1, 5,  5;
  0, 0, 0, 3, 10,  8;
  0, 0, 0, 1,  9, 20, 13;
  0, 0, 0, 0,  4, 22, 38,  21;
  0, 0, 0, 0,  1, 14, 51,  71,  34;
  0, 0, 0, 0,  0,  5, 40, 111, 130,  55;
  0, 0, 0, 0,  0,  1, 20, 105, 233, 235,  89;
  0, 0, 0, 0,  0,  0,  6,  65, 256, 474, 420, 144;
		

Crossrefs

Cf. A000045, A000129, A001045, A037027, A038112, A038149, A084938, A128100 (reversed version).
Some other Fibonacci-Pascal triangles: A027926, A036355, A037027, A074829, A105809, A109906, A114197, A162741, A228074.

Programs

  • Haskell
    a111006 n k = a111006_tabl !! n !! k
    a111006_row n = a111006_tabl !! n
    a111006_tabl =  map fst $ iterate (\(us, vs) ->
       (vs, zipWith (+) (zipWith (+) ([0] ++ us ++ [0]) ([0,0] ++ us))
                        ([0] ++ vs))) ([1], [0,1])
    -- Reinhard Zumkeller, Aug 15 2013

Formula

T(0, 0) = 1, T(n, k) = 0 for k < 0 or for n < k, T(n, k) = T(n-1, k-1) + T(n-2, k-1) + T(n-2, k-2).
T(n, k) = A037027(k, n-k). T(n, n) = A000045(n+1). T(3n, 2n) = (n+1)*A001002(n+1) = A038112(n).
G.f.: 1/(1-yx(1-x)-x^2*y^2). - Paul Barry, Oct 04 2005
Sum_{k=0..n} x^k*T(n,k) = (-1)^n*A053524(n+1), (-1)^n*A083858(n+1), (-1)^n*A002605(n), A033999(n), A000007(n), A001045(n+1), A083099(n) for x = -4, -3, -2, -1, 0, 1, 2 respectively. - Philippe Deléham, Dec 02 2006
Sum_{k=0..n} T(n,k)*x^(n-k) = A053404(n), A015447(n), A015446(n), A015445(n), A015443(n), A015442(n), A015441(n), A015440(n), A006131(n), A006130(n), A001045(n+1), A000045(n+1) for x = 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 respectively. - Philippe Deléham, Feb 17 2014

A104934 Expansion of (1-x)/(1 - 3*x - 2*x^2).

Original entry on oeis.org

1, 2, 8, 28, 100, 356, 1268, 4516, 16084, 57284, 204020, 726628, 2587924, 9217028, 32826932, 116914852, 416398420, 1483024964, 5281871732, 18811665124, 66998738836, 238619546756, 849856117940, 3026807447332, 10780134577876, 38394018628292, 136742325040628, 487015012378468, 1734529687216660
Offset: 0

Views

Author

Creighton Dement, Mar 29 2005

Keywords

Comments

A floretion-generated sequence relating A007482, A007483, A007484. Inverse is A046717. Inverse of Fibonacci(3n+1), A033887. Binomial transform is A052984. Inverse binomial transform is A006131. Note: the conjectured relation 2*a(n) = A007482(n) + A007483(n-1) is a result of the FAMP identity dia[I] + dia[J] + dia[K] = jes + fam
Floretion Algebra Multiplication Program, FAMP Code: 1dia[I]tesseq[A*B] with A = - .25'i + .25'j + .25'k - .25i' + .25j' + .25k' - .25'ii' + .25'jj' + .25'kk' + .25'ij' + .25'ik' + .25'ji' + .25'jk' + .25'ki' + .25'kj' - .25e and B = + 'i + i' + 'ji' + 'ki' + e
a(n) is also the number of ways to build a (2 x 2 x n)-tower using (2 X 1 X 1)-bricks (see Exercise 3.15 in Aigner's book). - Vania Mascioni (vmascioni(AT)bsu.edu), Mar 09 2009
a(n) is the number of compositions of n when there are 2 types of 1 and 4 types of other natural numbers. - Milan Janjic, Aug 13 2010
Pisano period lengths: 1, 1, 4, 1, 24, 4, 48, 1, 12, 24, 30, 4, 12, 48, 24, 1,272, 12, 18, 24, ... - R. J. Mathar, Aug 10 2012

References

  • M. Aigner, A Course in Enumeration, Springer, 2007, p.103.

Crossrefs

Programs

  • Julia
    # Following the Pari implementation.
    function a(n)
       F = BigInt[0 1; 2 3]
       Fn = F^n * [1; 2]
       Fn[1, 1]
    end # Peter Luschny, Jan 06 2019
    
  • Magma
    m:=35; R:=PowerSeriesRing(Integers(), m); Coefficients(R!(1 - x)/(1 - 3*x - 2*x^2)); // Vincenzo Librandi, Jul 13 2018
    
  • Maple
    a := proc(n) option remember; `if`(n < 2, [1, 2][n+1], (3*a(n-1) + 2*a(n-2))) end:
    seq(a(n), n=0..28); # Peter Luschny, Jan 06 2019
  • Mathematica
    LinearRecurrence[{3, 2}, {1, 2}, 40] (* Vincenzo Librandi, Jul 13 2018 *)
    CoefficientList[Series[(1-x)/(1-3x-2x^2),{x,0,40}],x] (* Harvey P. Dale, May 02 2019 *)
  • PARI
    a(n)=([0,1; 2,3]^n*[1;2])[1,1] \\ Charles R Greathouse IV, Jun 20 2015
    
  • SageMath
    [(i*sqrt(2))^(n-1)*(i*sqrt(2)*chebyshev_U(n, -3*i/(2*sqrt(2))) - chebyshev_U(n-1, -3*i/(2*sqrt(2))) ) for n in (0..40)] # G. C. Greubel, Jun 27 2021

Formula

Define A007483(-1) = 1. Then 2*a(n) = A007482(n) + A007483(n-1) (conjecture);
a(n+2) = 4*A007484(n) (thus 8*A007484(n) = A007482(n+2) + A007483(n+1));
a(n+1) = 2*A055099(n);
a(n+2) - a(n+1) - a(n) = A007484(n+1) - A007484(n).
a(0)=1, a(1)=2, a(n) = 3*a(n-1) + 2*a(n-2) for n > 1. - Philippe Deléham, Sep 19 2006
a(n) = Sum_{k=0..n} 2^k*A122542(n,k). - Philippe Deléham, Oct 08 2006
a(n) = ((17+sqrt(17))/34)*((3+sqrt(17))/2)^n + ((17-sqrt(17))/34)*((3-sqrt(17))/2)^n. - Richard Choulet, Nov 19 2008
a(n) = 2*a(n-1) + 4*Sum_{k=0..n-2} a(k) for n > 0. - Vania Mascioni (vmascioni(AT)bsu.edu), Mar 09 2009
G.f.: (1-x)/(1-3*x-2*x^2). - M. F. Hasler, Jul 12 2018
a(n) = (i*sqrt(2))^(n-1)*( i*sqrt(2)*ChebyshevU(n, -3*i/(2*sqrt(2))) - ChebyshevU(n-1, -3*i/(2*sqrt(2))) ). - G. C. Greubel, Jun 27 2021
E.g.f.: exp(3*x/2)*(sqrt(17)*cosh(sqrt(17)*x/2) + sinh(sqrt(17)*x/2))/sqrt(17). - Stefano Spezia, May 24 2024

A189435 T(n,k)=Number of nXk array permutations with each element not moving, or moving one space N, SW or SE.

Original entry on oeis.org

1, 1, 1, 1, 2, 1, 1, 3, 5, 1, 1, 5, 9, 9, 1, 1, 8, 29, 31, 20, 1, 1, 13, 65, 140, 109, 41, 1, 1, 21, 181, 571, 841, 367, 85, 1, 1, 34, 441, 2413, 5680, 4653, 1245, 178, 1, 1, 55, 1165, 10069, 40065, 52241, 26589, 4247, 369, 1, 1, 89, 2929, 42205, 278105, 606201, 493941
Offset: 1

Views

Author

R. H. Hardin Apr 22 2011

Keywords

Comments

Table starts
.1...1.....1.......1.........1...........1.............1...............1
.1...2.....3.......5.........8..........13............21..............34
.1...5.....9......29........65.........181...........441............1165
.1...9....31.....140.......571........2413.........10069...........42205
.1..20...109.....841......5680.......40065........278105.........1940868
.1..41...367....4653.....52241......606201.......6944573........79826592
.1..85..1245...26589....493941.....9557077.....181540773......3467525301
.1.178..4247..151081...4681376...150278792....4742833745....150293731826
.1.369.14453..859264..44341381..2367212857..124239687001...6540976400913
.1.769.49167.4891841.420325171.37358187521.3261208487441.285499775348185

Examples

			Some solutions for 5X3
..0..4..5....0..4..5....3..1..2....0..1..5....0..4..5....0..4..5....0..4..5
..1..2..8....3..2..1....6..0..5....6..2..8....6..2..1....1..2..8....6..2..1
..9..3.11....6.10..8....4..7..8....4..3.11....9..3.11....6..3.11....9..3..8
..7..6.14....9.13..7....9.13.14....7.13.14....7..8.14....7.13.14....7.13.14
.12.13.10...12.11.14...12.11.10...12..9.10...12.13.10...12..9.10...12.11.10
		

Crossrefs

Column 2 is A105309
Row 2 is A000045(n+1)
Row 3 is A006131

A026581 Expansion of (1 + 2*x) / (1 - x - 4*x^2).

Original entry on oeis.org

1, 3, 7, 19, 47, 123, 311, 803, 2047, 5259, 13447, 34483, 88271, 226203, 579287, 1484099, 3801247, 9737643, 24942631, 63893203, 163663727, 419236539, 1073891447, 2750837603, 7046403391, 18049753803, 46235367367, 118434382579, 303375852047, 777113382363
Offset: 0

Views

Author

Keywords

Comments

T(n,0) + T(n,1) + ... + T(n,2n), T given by A026568.
Row sums of Riordan array ((1+2x)/(1+x),x(1+2x)/(1+x)). Binomial transform is A055099. - Paul Barry, Jun 26 2008
Equals row sums of triangle A153341. - Gary W. Adamson, Dec 24 2008
Also, the number of walks of length n starting at vertex 0 in the graph with 4 vertices and edges {{0,1}, {0,2}, {0,3}, {1,2}, {2,3}}. - Sean A. Irvine, Jun 02 2025

Crossrefs

Programs

  • GAP
    a:=[1,3];; for n in [3..30] do a[n]:=a[n-1]+4*a[n-2]; od; a; # G. C. Greubel, Aug 03 2019
  • Magma
    I:=[1,3]; [n le 2 select I[n] else Self(n-1) +4*Self(n-2): n in [1..30]]; // G. C. Greubel, Aug 03 2019
    
  • Mathematica
    CoefficientList[Series[(1+2x)/(1-x-4x^2),{x,0,30}],x] (* or *) LinearRecurrence[{1,4},{1,3},30] (* Harvey P. Dale, Aug 04 2015 *)
  • PARI
    Vec((1+2*x)/(1-x-4*x^2) + O(x^30)) \\ Colin Barker, Dec 22 2016
    
  • Sage
    ((1+2*x)/(1-x-4*x^2)).series(x, 30).coefficients(x, sparse=False) # G. C. Greubel, Aug 03 2019
    

Formula

G.f.: (1 + 2*x) / (1 - x - 4*x^2).
a(n) = a(n-1) + 4*a(n-2), n>1.
a(n) = 2*A006131(n-1) + A006131(n), n>0.
a(n) = (2^(-1-n)*((1-sqrt(17))^n*(-5+sqrt(17)) + (1+sqrt(17))^n*(5+sqrt(17))))/sqrt(17). - Colin Barker, Dec 22 2016

Extensions

Edited by Ralf Stephan, Jul 20 2013

A072265 Variant of Lucas numbers: a(n) = a(n-1) + 4*a(n-2) starting with a(0)=2 and a(1)=1.

Original entry on oeis.org

2, 1, 9, 13, 49, 101, 297, 701, 1889, 4693, 12249, 31021, 80017, 204101, 524169, 1340573, 3437249, 8799541, 22548537, 57746701, 147940849, 378927653, 970691049, 2486401661, 6369165857, 16314772501, 41791435929, 107050525933, 274216269649, 702418373381
Offset: 0

Views

Author

Miklos Kristof, Jul 08 2002

Keywords

Comments

Pisano period lengths: 1, 1, 8, 1, 6, 8, 48, 2, 24, 6,120, 8, 12, 48, 24, 4, 8, 24, 18, 6, ... . - R. J. Mathar, Aug 10 2012
The Lucas sequence V(1,-4). - Peter Bala, Jun 23 2015

References

  • Thomas Koshy, "Fibonacci and Lucas Numbers with Applications", Wiley, 2001, p. 471.

Crossrefs

Cf. A006131.

Programs

  • GAP
    a:=[2,1];; for n in [3..30] do a[n]:=a[n-1]+4*a[n-2]; od; a; # G. C. Greubel, Jan 15 2020
  • Magma
    I:=[2,1]; [n le 2 select I[n] else Self(n-1) + 4*Self(n-2): n in [1..30]]; // G. C. Greubel, Jan 15 2020
    
  • Maple
    a:= n-> (Matrix([[1,2]]). Matrix([[1,1], [4,0]])^n)[1,2]:
    seq(a(n), n=0..32);  # Alois P. Heinz, Aug 15 2008
    a := n -> 2*(2*I)^n*ChebyshevT(n, -I/4):
    seq(simplify(a(n)), n = 0..29);  # Peter Luschny, Dec 03 2023
  • Mathematica
    CoefficientList[Series[(2-x)/(1-x-4*x^2), {x,0,30}], z] (* Vladimir Joseph Stephan Orlovsky, Jun 11 2011 *)
    Table[2^n*LucasL[n, 1/2], {n,0,30}] (* G. C. Greubel, Jan 15 2020 *)
  • PARI
    polsym(x^2-x-4, 44)
    
  • Sage
    [lucas_number2(n,1,-4) for n in range(0, 27)] # Zerinvary Lajos, Apr 30 2009
    

Formula

G.f.: (2-x)/(1-x-4*x^2). - Gary W. Adamson, Jul 02 2003
a(n) = ((1+sqrt(17))/2)^n + ((1-sqrt(17))/2)^n = 4*A006131(n-1) + A006131(n+1) = A075117(4, n).
a(n) = [x^n] ( (1 + x + sqrt(1 + 2*x + 17*x^2))/2 )^n for n >= 1. - Peter Bala, Jun 23 2015
a(n) = 2^n * Lucas(n, 1/2). - G. C. Greubel, Jan 15 2020

Extensions

Edited and extended by Henry Bottomley, Sep 03 2002

A083856 Square array T(n,k) of generalized Fibonacci numbers, read by antidiagonals upwards (n, k >= 0).

Original entry on oeis.org

0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 2, 1, 0, 1, 1, 3, 3, 1, 0, 1, 1, 4, 5, 5, 1, 0, 1, 1, 5, 7, 11, 8, 1, 0, 1, 1, 6, 9, 19, 21, 13, 1, 0, 1, 1, 7, 11, 29, 40, 43, 21, 1, 0, 1, 1, 8, 13, 41, 65, 97, 85, 34, 1, 0, 1, 1, 9, 15, 55, 96, 181, 217, 171, 55, 1
Offset: 0

Views

Author

Paul Barry, May 06 2003

Keywords

Comments

Row n >= 0 of the array gives the solution to the recurrence b(k) = b(k-1) + n*b(k-2) for k >= 2 with b(0) = 0 and b(1) = 1.

Examples

			Array T(n,k) (with rows n >= 0 and columns k >= 0) begins as follows:
  0, 1, 1,  1,  1,   1,   1,    1,    1,     1, ... [A057427]
  0, 1, 1,  2,  3,   5,   8,   13,   21,    34, ... [A000045]
  0, 1, 1,  3,  5,  11,  21,   43,   85,   171, ... [A001045]
  0, 1, 1,  4,  7,  19,  40,   97,  217,   508, ... [A006130]
  0, 1, 1,  5,  9,  29,  65,  181,  441,  1165, ... [A006131]
  0, 1, 1,  6, 11,  41,  96,  301,  781,  2286, ... [A015440]
  0, 1, 1,  7, 13,  55, 133,  463, 1261,  4039, ... [A015441]
  0, 1, 1,  8, 15,  71, 176,  673, 1905,  6616, ... [A015442]
  0, 1, 1,  9, 17,  89, 225,  937, 2737, 10233, ... [A015443]
  0, 1, 1, 10, 19, 109, 280, 1261, 3781, 15130, ... [A015445]
  ...
		

Crossrefs

Rows include A057427 (n=0), A000045 (n=1), A001045 (n=2), A006130 (n=3), A006131 (n=4), A015440 (n=5), A015441 (n=6), A015442 (n=7), A015443 (n=8), A015445 (n=9).
Columns include A000012 (k=1,2), A000027 (k=3), A005408 (k=4), A028387 (k=5), A000567 (k=6), A106734 (k=7).
Cf. A083857 (binomial transform), A083859 (main diagonal), A083860 (first subdiagonal), A083861 (second binomial transform), A110112, A110113 (diagonal sums), A193376 (transposed variant), A172237 (transposed variant).

Programs

  • Julia
    function generalized_fibonacci(r, n)
       F = BigInt[1 r; 1 0]
       Fn = F^n
       Fn[2, 1]
    end
    for r in 0:6 println([generalized_fibonacci(r, n) for n in 0:9]) end # Peter Luschny, Mar 06 2017
  • Maple
    A083856_row := proc(r, n) local R; R := proc(n) option remember;
    if n<=1 then n else R(n-1)+r*R(n-2) fi end: R(n) end:
    for r from 0 to 9 do seq(A083856_row(r, n), n=0..9) od; # Peter Luschny, Mar 06 2017
  • Mathematica
    T[, 0] = 0; T[, 1|2] = 1; T[n_, k_] := T[n, k] = T[n, k-1] + n T[n, k-2];
    Table[T[n-k, k], {n, 0, 11}, {k, 0, n}] // Flatten (* Jean-François Alcover, Jun 22 2018 *)

Formula

T(n, k) = (((1 + sqrt(4*n + 1))/2)^k - ((1 - sqrt(4*n + 1))/2)^k)/sqrt(4*n + 1). [corrected by Michel Marcus, Jun 25 2018]
From Thomas Baruchel, Jun 25 2018: (Start)
The g.f. for row n >= 0 is x/(1 - x - n*x^2).
The g.f. for column k >= 1 is g(k,x) = 1/(1-x) + Sum_{m = 1..floor((k-1)/2)} (1 - x)^(-1 - m) * binomial(k - 1 - m, m) * Sum_{i = 0..m} x^i * Sum_{j = 0..i} (-1)^j * (i - j)^m * binomial(1 + m, j).
The g.f. for column k >= 1 is also g(k,x) = 1 + Sum_{m = 1..floor((k+1)/2)} ((1 - x)^(-m) * binomial(k-m, m-1) * Sum_{j = 0..m} (-1)^j * binomial(m, j) * x^m * Phi(x, -m+1, -j+m)) + Sum_{s = 0..floor((k-1)/2)} binomial(k-s-1, s) * PolyLog(-s, x), where Phi is the Lerch transcendent function. (End)
T(n,k) = Sum_{i = 0..k} (-1)^(k+i) * binomial(k,i) * A083857(n,i). - Petros Hadjicostas, Dec 24 2019

Extensions

Various sections edited by Petros Hadjicostas, Dec 24 2019

A185825 T(n,k)=1/5 the number of nXk 0..4 arrays with every element equal to exactly one or two of its horizontal and vertical neighbors.

Original entry on oeis.org

0, 1, 1, 1, 9, 1, 5, 76, 76, 5, 9, 656, 1584, 656, 9, 29, 5680, 49036, 49036, 5680, 29, 65, 49248, 1266624, 4443292, 1266624, 49248, 65, 181, 426928, 35446376, 378212944, 378212944, 35446376, 426928, 181, 441, 3701360, 956312244, 32995092992
Offset: 1

Views

Author

R. H. Hardin Feb 05 2011

Keywords

Comments

Table starts
....0........1...........1.............5..............9.............29
....1........9..........76...........656...........5680..........49248
....1.......76........1584.........49036........1266624.......35446376
....5......656.......49036.......4443292......378212944....32995092992
....9.....5680.....1266624.....378212944...100480040192.28043363244452
...29....49248....35446376...32995092992.28043363244452
...65...426928...956312244.2852526229300
..181..3701360.26231137608
..441.32089696
.1165

Examples

			Some solutions for 5X4 with a(1,1)=0
..0..0..0..0....0..0..0..0....0..0..0..0....0..0..0..0....0..0..0..0
..1..1..1..0....0..1..1..0....1..1..1..0....1..1..1..0....0..1..1..0
..3..0..3..0....4..2..2..0....2..3..0..0....2..2..2..0....4..1..2..0
..3..0..3..0....4..0..2..1....2..3..0..2....0..0..4..4....4..0..2..4
..3..2..2..2....0..0..2..1....3..3..0..2....4..4..2..2....4..0..2..4
		

Crossrefs

Column 1 is A006131(n-2)
Previous Showing 11-20 of 46 results. Next