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.

Showing 1-10 of 14 results. Next

A006253 Number of perfect matchings (or domino tilings) in C_4 X P_n.

Original entry on oeis.org

1, 2, 9, 32, 121, 450, 1681, 6272, 23409, 87362, 326041, 1216800, 4541161, 16947842, 63250209, 236052992, 880961761, 3287794050, 12270214441, 45793063712, 170902040409, 637815097922, 2380358351281, 8883618307200, 33154114877521, 123732841202882
Offset: 0

Views

Author

Keywords

Comments

Number of tilings of a box with sides 2 X 2 X n in R^3 by boxes of sides 2 X 1 X 1 (3-dimensional dominoes). - Frans J. Faase
The number of domino tilings in A006253, A004003, A006125 is the number of perfect matchings in the relevant graphs. There are results of Jockusch and Ciucu that if a planar graph has a rotational symmetry then the number of perfect matchings is a square or twice a square - this applies to these 3 sequences. - Dan Fux (dan.fux(AT)OpenGaia.com or danfux(AT)OpenGaia.com), Apr 12 2001
Also stacking bricks.
a(n)*(-1)^n = (1-T(n+1,-2))/3, n>=0, with Chebyshev's polynomials T(n,x) of the first kind, is the r=-2 member of the r-family of sequences S_r(n) defined in A092184 where more information can be found. - Wolfdieter Lang, Oct 18 2004
Partial sums of A217233. - Bruno Berselli, Oct 01 2012
The sequence is the case P1 = 2, P2 = -8, Q = 1 of the 3 parameter family of 4th-order linear divisibility sequences found by Williams and Guy. - Peter Bala, Apr 03 2014

Examples

			G.f. = 1 + 2*x + 9*x^2 + 32*x^3 + 121*x^4 + 450*x^5 + ... - _Michael Somos_, Mar 17 2022
		

References

  • R. L. Graham, D. E. Knuth and O. Patashnik, Concrete Mathematics. Addison-Wesley, Reading, MA, 1990, p. 360.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Cf. A002530, A004003, A006125, A217233 (first differences), A109437 (partial sums).
Column k=2 of A181206, A189650, A233308.
Cf. A100047.

Programs

  • GAP
    a:=[1,2,9];; for n in [4..30] do a[n]:=3*a[n-1]+3*a[n-2]-a[n-3]; od; a; # G. C. Greubel, Nov 16 2018
  • Magma
    m:=30; R:=PowerSeriesRing(Integers(), m); Coefficients(R!((1-x)/(1-3*x-3*x^2+x^3))); // G. C. Greubel, Nov 16 2018
    
  • Mathematica
    CoefficientList[Series[(1 - x)/(1 - 3 x - 3 x^2 + x^3), {x, 0, 30}], x] (* Vincenzo Librandi, Oct 15 2012 *)
    RecurrenceTable[{a[1] == 1, a[2] == 2, a[n] == BitXor[1, a[n - 1]]^2/a[n - 2]}, a, {n, 30}] (* Jon Maiga, Nov 16 2018 *)
    LinearRecurrence[{3,3,-1}, {1,2,9}, 30] (* G. C. Greubel, Nov 16 2018 *)
    a[ n_] := (-1)^n * ChebyshevU[n, Sqrt[-1/2]]^2; (* Michael Somos, Mar 17 2022 *)
  • PARI
    a(n)=(sqrt(3)+2)^(n+1) \/ 6 \\ Charles R Greathouse IV, Aug 18 2016
    
  • PARI
    a(n)=([0,1,0; 0,0,1; -1,3,3]^n*[1;2;9])[1,1] \\ Charles R Greathouse IV, Aug 18 2016
    
  • PARI
    Vec((1 - x) / ((1 + x)*(1 - 4*x + x^2)) + O(x^40)) \\ Colin Barker, Dec 16 2017
    
  • PARI
    {a(n) = simplify((-1)^n * polchebyshev(n, 2, quadgen(-8)/2)^2)}; /* Michael Somos, Mar 17 2022 */
    
  • Sage
    s=((1-x)/(1-3*x-3*x^2+x^3)).series(x,30); s.coefficients(x, sparse=False) # G. C. Greubel, Nov 16 2018
    

Formula

G.f.: (1-x)/((1+x)*(1-4*x+x^2)) = (1-x)/(1-3*x-3*x^2+x^3). - Simon Plouffe in his 1992 dissertation; typo corrected by Vincenzo Librandi, Oct 15 2012
Nearest integer to (1/6)*(2+sqrt(3))^(n+1). - Don Knuth, Jul 15 1995
For n >= 4, a(n) = 3a(n-1) + 3a(n-2) - a(n-3). - Avi Peretz (njk(AT)netvision.net.il), Mar 30 2001
For n >= 3, a(n) = 4a(n-1) - a(n-2) + 2*(-1)^n. - Ahmed Fares (ahmedfares(AT)my-deja.com), Apr 14 2001
From Dan Fux (dan.fux(AT)OpenGaia.com or danfux(AT)OpenGaia.com), Apr 11 2001: The values are a(1) = 2 * 1^2, a(2) = 3^2, a(3) = 2 * 4^2, a(4) = 11^2, a(5) = 2 * 15^2, ... and in general for odd n a(n) is twice a square, for even n a(n) is a square. If we define b(n) by b(n) = sqrt(a(n)) for even n, b(n) = sqrt(a(n)/2) for odd n then apart from the first 2 elements b(n) is A002530(n+1).
a(n) + a(n+1) = A001835(n+2). - R. J. Mathar, Dec 06 2013
From Peter Bala, Apr 03 2014: (Start)
a(n) = |U(n,i/sqrt(2))|^2 where U(n,x) denotes the Chebyshev polynomial of the second kind.
a(n-1) = the bottom left entry of the 2 X 2 matrix T(n, M), where M is the 2 X 2 matrix [0, 2; 1, 1] 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(n) = (2*(-1)^n + (2-sqrt(3))^(1+n) + (2+sqrt(3))^(1+n)) / 6. - Colin Barker, Dec 16 2017
a(n) = (1 XOR a(n-1))^2/a(n-2). - Jon Maiga, Nov 16 2018
a(n) = a(-2-n) for all n in Z. - Michael Somos, Mar 17 2022
INVERT transform of sequence p(n), n > 0, where p is the number of nonreducible tilings by height of 2 X 2 X n using dicubes; p is (2, 5, 4, 4, 4, 4...). - Nicolas Bělohoubek, Jun 04 2024

A189645 Number of n X 4 array permutations with each element moving zero or one space horizontally, diagonally or antidiagonally.

Original entry on oeis.org

5, 185, 4277, 107080, 2631821, 64890337, 1598901325, 39401919001, 970964720320, 23927183356745, 589629702461885, 14530053018698289, 358059360274087325, 8823540150072892232, 217435624721745257829, 5358195248586080351465
Offset: 1

Views

Author

R. H. Hardin, Apr 24 2011

Keywords

Comments

Column 4 of A189650.

Examples

			Some solutions for 3 X 4:
..0..4..5..2....5..4..7..3....0..2..1..6....0..2..1..3....5..0..3..6
..1..6..3..7....1..0.11..2....5..4..3.10....9..5..7..6....1..4..7..2
..8.10..9.11....8..6..9.10....8..9..7.11....8..4.11.10....9..8.11.10
		

Formula

Empirical: a(n) = 30*a(n-1) -126*a(n-2) -298*a(n-3) +4076*a(n-4) -9643*a(n-5) -26*a(n-6) +67624*a(n-7) -249088*a(n-8) +187462*a(n-9) +574310*a(n-10) -970738*a(n-11) +67260*a(n-12) +489180*a(n-13) +209922*a(n-14) -640310*a(n-15) +258090*a(n-16) +58776*a(n-17) -37696*a(n-18) -25814*a(n-19) +20091*a(n-20) -3196*a(n-21) -638*a(n-22) +270*a(n-23) -30*a(n-24) +a(n-25).

A189644 Number of n X 3 array permutations with each element moving zero or one space horizontally, diagonally or antidiagonally.

Original entry on oeis.org

3, 33, 263, 2161, 17655, 144353, 1180167, 9648721, 78885143, 644942273, 5272862503, 43109407281, 352450114615, 2881530764193, 23558566731847, 192608065601041, 1574708145738583, 12874360876413313, 105257071556189543
Offset: 1

Views

Author

R. H. Hardin, Apr 24 2011

Keywords

Comments

Column 3 of A189650.

Examples

			Some solutions for 4 X 3:
..0..1..2....1..0..2....1..0..4....4..0..2....0..2..1....0..3..4....1..0..2
..7..5..4....3..8..5....3..2..5....3..5..1....3..4..5....1..2..7....3..6..5
..6..3.10....6..9..4...10..6..7...10..6..8....7..9..8....6..5.10....7..8..4
..9..8.11....7.11.10....9..8.11....9.11..7...10..6.11....9..8.11....9.10.11
		

Crossrefs

Cf. A189650.

Formula

Empirical: a(n) = 9*a(n-1) - 6*a(n-2) - 8*a(n-3) + 16*a(n-4).
Empirical g.f.: x*(3 + 6*x - 16*x^2 + 16*x^3) / (1 - 9*x + 6*x^2 + 8*x^3 - 16*x^4). - Colin Barker, May 02 2018

A189646 Number of nX5 array permutations with each element moving zero or one space horizontally, diagonally or antidiagonally.

Original entry on oeis.org

8, 913, 55440, 3774889, 250758892, 16718653553, 1113666564608, 74192202677913, 4942510226322656, 329259659094878233, 21934564726533463456, 1461233359853832299585, 97344209607823094421972
Offset: 1

Views

Author

R. H. Hardin Apr 24 2011

Keywords

Comments

Column 5 of A189650

Examples

			Some solutions for 3X5
..0..1..6..2..4....0..1..2..9..3....0..5..3..2..8....0..7..3..4..8
..5.12..7..8..3....6..5..7..4..8....1.12..7..4..9....1..6.13..2..9
.11.10.13..9.14...10.11.12.13.14....6.10.11.13.14...10..5.11.12.14
		

Formula

Empirical: a(n) = 89*a(n-1) -1477*a(n-2) -4543*a(n-3) +263184*a(n-4) -1513204*a(n-5) -1306752*a(n-6) +35401892*a(n-7) -159365905*a(n-8) +257149805*a(n-9) +892208731*a(n-10) -4513333219*a(n-11) +8558134152*a(n-12) -9089002608*a(n-13) +1918713192*a(n-14) +3308770976*a(n-15) +1073595261*a(n-16) -4640349293*a(n-17) +2869297905*a(n-18) +15602314555*a(n-19) -10326794520*a(n-20) -3875198300*a(n-21) +90669080*a(n-22) -191023620*a(n-23) +60740373*a(n-24) +9063*a(n-25) -262791*a(n-26) -729*a(n-27)

A189647 Number of n X 6 array permutations with each element moving zero or one space horizontally, diagonally or antidiagonally.

Original entry on oeis.org

13, 4777, 799069, 157346785, 30010432933, 5760755884032, 1104421532180261, 211788908613601649, 40611524427488470629, 7787535228500656118433, 1493309632024085211828077, 286351787186005572629329841
Offset: 1

Views

Author

R. H. Hardin Apr 24 2011

Keywords

Comments

Column 6 of A189650.

Examples

			Some solutions for 3 X 6
..0..2..7..4..3..5....0..2..7..4..3..5....0..6..7..3.11..5....0..8..2..3..4..5
..1.14.13.10.15.11....1.12..8..9.10.11....1..2.13..4..9.16....1.12.15.14..9.11
.12..6..9..8.17.16...13..6.14.16.15.17...12.14.15..8.17.10....7..6.13.10.17.16
		

Crossrefs

Cf. A189650.

A189648 Number of nX7 array permutations with each element moving zero or one space horizontally, diagonally or antidiagonally.

Original entry on oeis.org

21, 24577, 11047585, 6156828073, 3292827578005, 1778231752192145, 958681588788944613, 517069529154777840681, 278864582730126081862829, 150399411952876520217908417, 81114338143785708962035111845
Offset: 1

Views

Author

R. H. Hardin Apr 24 2011

Keywords

Comments

Column 7 of A189650

Examples

			Some solutions for 3X7
..0..7..2..4..3..5.12....0..7.10..2..3..6..5....0..2..3..9..5..4..6
..1..9.15.10.11..6.13....1..9.15.11.19..4.12....1.14.15.10.12.11.19
..8.14.16.17.18.20.19....8.14.16.17.18.13.20....8..7.16.18.17.13.20
		

A189649 Number of n X 8 array permutations with each element moving zero or one space horizontally, diagonally or antidiagonally.

Original entry on oeis.org

34, 127385, 155610272, 248034953713, 376678790309002, 579697460209171993, 890636373071604964608, 1369385680210307625221600, 2105439181301591456075023034, 3237297479202888870044365473801
Offset: 1

Views

Author

R. H. Hardin, Apr 24 2011

Keywords

Comments

Column 8 of A189650.

Examples

			Some solutions for 3 X 8
..0..2..3..4.11..5..6..7....0..2..3.10..5..4..6..7....0..2..3..4..5.14.13..7
..1..8.17.12.13.14.21.22....1..8.11.12.19.13.15.22....1..8.10.18.11..6.23.15
..9.16.18.10.19.20.15.23....9.16.17.18.20.21.23.14....9.16.17.20.19.12.21.22
		

Crossrefs

Cf. A189650.

A189651 Number of 3Xn array permutations with each element moving zero or one space horizontally, diagonally or antidiagonally.

Original entry on oeis.org

1, 32, 263, 4277, 55440, 799069, 11047585, 155610272, 2174615543, 30495310793, 427003730560, 5982947971505, 83805935210153, 1174054970088496, 16446690057231391, 230398085842470229, 3227563109360717136
Offset: 1

Views

Author

R. H. Hardin Apr 24 2011

Keywords

Comments

Row 3 of A189650

Examples

			Some solutions for 3X3
..1..5..2....1..0..2....4..0..2....0..2..1....0..2..4....0..1..2....1..0..4
..3..0..4....3..6..5....7..3..1....4..6..5....1..3..5....3..4..5....7..2..5
..7..6..8....4..7..8....6..5..8....7..3..8....7..6..8....7..6..8....6..3..8
		

Formula

Empirical: a(n) = 10*a(n-1) +75*a(n-2) -240*a(n-3) -399*a(n-4) +972*a(n-5) -1263*a(n-6) +482*a(n-7) +669*a(n-8) -100*a(n-9) -9*a(n-10)

A189652 Number of 4Xn array permutations with each element moving zero or one space horizontally, diagonally or antidiagonally.

Original entry on oeis.org

1, 121, 2161, 107080, 3774889, 157346785, 6156828073, 248034953713, 9875814290816, 395270625350249, 15786227589947721, 631059374453758801, 25216827894687641369, 1007823833701936877224, 40276106049134557246481
Offset: 1

Views

Author

R. H. Hardin Apr 24 2011

Keywords

Comments

Row 4 of A189650

Examples

			Some solutions for 4X3
..1..0..2....0..1..2....0..2..1....4..3..2....4..0..2....0..5..2....0..2..1
..3..6..5....3..5..4....4..3..5....1..0..5....1..3..5....1..3..4....3..6..5
..4..7..8...10..6..8....7..6..8....6..7..8....6.11..8....7..8.10...10..9..4
..9.10.11....9.11..7....9.10.11....9.10.11...10..9..7....9..6.11....7..8.11
		

Formula

Empirical: a(n) = 50*a(n-1) -137*a(n-2) -14254*a(n-3) +150732*a(n-4) +6167*a(n-5) -5222678*a(n-6) +17698431*a(n-7) +3110934*a(n-8) -124198038*a(n-9) +434209880*a(n-10) -578102252*a(n-11) -1022163576*a(n-12) +2063022702*a(n-13) +927202798*a(n-14) -2166125460*a(n-15) +2287055972*a(n-16) -2253433780*a(n-17) -217909454*a(n-18) +358137966*a(n-19) +47291569*a(n-20) +143053130*a(n-21) +25184345*a(n-22) -6278728*a(n-23) -1184530*a(n-24) +75701*a(n-25) +13602*a(n-26) -675*a(n-27)

A189653 Number of 5Xn array permutations with each element moving zero or one space horizontally, diagonally or antidiagonally.

Original entry on oeis.org

1, 450, 17655, 2631821, 250758892, 30010432933, 3292827578005, 376678790309002, 42358721253919843, 4801283687544580305, 542386040165423966236, 61365524584279523157641, 6938297347463763255984633
Offset: 1

Views

Author

R. H. Hardin Apr 24 2011

Keywords

Comments

Row 5 of A189650

Examples

			Some solutions for 5X3
..0..2..1....0..3..4....0..3..2....0..2..4....0..1..2....4..1..2....0..3..4
..3..6..5....1..2..5....1..5..4....1..6..5....3..4..5....3..0..5....1..2..7
..4.11..8....6..9.10...10..6..7...10..3..8....7..6..8....6..8..7....6..5..8
..9.14..7....7..8.13...13..8.11....9.12..7....9.11.10...13.10.11...10.12.11
.10.12.13...12.11.14...12..9.14...13.11.14...12.13.14...12..9.14...13..9.14
		

Formula

Empirical: a(n) = 107*a(n-1) +4303*a(n-2) -406534*a(n-3) -4329464*a(n-4) +466840808*a(n-5) +1338922608*a(n-6) -227992823136*a(n-7) +90951697440*a(n-8) +53386064289152*a(n-9) -108406327693184*a(n-10) -5771603989188608*a(n-11) +11703591191155200*a(n-12) +172452239709961728*a(n-13) +1498301110046938112*a(n-14) +14910534867774803968*a(n-15) -369954950790874443776*a(n-16) -1122779731327948267520*a(n-17) +27415171459521008320512*a(n-18) +13113077428590656225280*a(n-19) -948436399977700515119104*a(n-20) +718072262953029442207744*a(n-21) +15306605215443650927919104*a(n-22) -23785626604164302597783552*a(n-23) -63183460656377361227317248*a(n-24) +336913590202586242004025344*a(n-25) -1367838179233684601582911488*a(n-26) -4565130350432220898859679744*a(n-27) +19045513342601064393182543872*a(n-28) +60860396016352702310591234048*a(n-29) -56998115344223218475739381760*a(n-30) -453823691284753050683438006272*a(n-31) -393736729027557466236264644608*a(n-32) +1251233979672582675419566702592*a(n-33) +2823288040816995497010406621184*a(n-34) +1031231653598246771565784989696*a(n-35) -4399440162748647480754025005056*a(n-36) -7005172700570647534593105723392*a(n-37) -5260712228450985579008097255424*a(n-38) +2261097267196132807937693319168*a(n-39) +15111807638739449523277750337536*a(n-40) +13977227635584971692638723899392*a(n-41) +9954649350974934287262941184000*a(n-42) -14775252650126481676321748418560*a(n-43) -9222257769877287745000803663872*a(n-44) -9509714054063086127993984122880*a(n-45) -10587625049850095971602849071104*a(n-46) -2743801275209083294223179972608*a(n-47) -6363253539914382491808868335616*a(n-48) +1802733977560574408772213014528*a(n-49) +613085944850739567921947738112*a(n-50) -58537072347407169574936772608*a(n-51) +18124814447614224314725826560*a(n-52) +3190355237963006392049598464*a(n-53)
Showing 1-10 of 14 results. Next