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-2 of 2 results.

A104270 a(n) = 2^(n - 2)*(binomial(n,2) + 2).

Original entry on oeis.org

1, 3, 10, 32, 96, 272, 736, 1920, 4864, 12032, 29184, 69632, 163840, 380928, 876544, 1998848, 4521984, 10158080, 22675456, 50331648, 111149056, 244318208, 534773760, 1166016512, 2533359616, 5486149632, 11844714496, 25501368320, 54760833024, 117306294272, 250718715904
Offset: 1

Views

Author

Ralf Stephan, Apr 17 2005

Keywords

Comments

Cardinality of set of crossing-similarity classes.
Total number of hexagonal systems with n hexagons that cannot be placed in a cage of size n-1. - Parthasarathy Nambi, Sep 06 2006
a(n+1) is equal to n! times the determinant of the n X n matrix whose (i,j)-entry is KroneckerDelta[i,j](((i+2)/(i)) - 1) + 1. - John M. Campbell, May 20 2011

Crossrefs

Equals (1/2) A053730. Partial sums of A084264.

Programs

  • Magma
    [2^(n-2)*(Binomial(n,2)+2): n in [1..30]]; // Vincenzo Librandi, May 24 2011
    
  • Mathematica
    Table[n!*Det[Array[KroneckerDelta[#1,#2](((#1+2)/(#1))-1)+1 &, {n,n}]], {n, 1, 10}] (* John M. Campbell, May 20 2011 *)
    LinearRecurrence[{6,-12,8},{1,3,10},30] (* Harvey P. Dale, Jul 03 2017 *)
  • PARI
    a(n)=(binomial(n,2)+2)<<(n-2) \\ Charles R Greathouse IV, May 24 2011

Formula

G.f.: x*(1 - 3*x + 4*x^2)/(1-2*x)^3. - Colin Barker, Apr 01 2012

A300451 a(n) = (3*n^2 - 3*n + 8)*2^(n - 3).

Original entry on oeis.org

1, 2, 7, 26, 88, 272, 784, 2144, 5632, 14336, 35584, 86528, 206848, 487424, 1134592, 2613248, 5963776, 13500416, 30343168, 67764224, 150470656, 332398592, 730857472, 1600126976, 3489660928, 7583301632, 16424894464, 35467034624, 76369887232, 164014063616
Offset: 0

Views

Author

Keywords

Comments

First difference yields A295288.
1 and 7 are the only odd terms.
a(n) gives the number of words of length n defined over the alphabet {a,b,c,d} such that letters from {a,b} are only used in pairs of at most one, and consist of (a,a), (a,b) and (b,a).

Examples

			a(4) = 88. The corresponding words are cccc, cccd, ccdc, ccdd, cdcc, cdcd, cddc, cddd, dccc, dccd, dcdc, dcdd, ddcc, ddcd, dddc, dddd, caac, caca, ccaa, caad, cada, caad, cabc, cacb, ccab, cabd, cadb, cabd, cbac, cbca, ccba, cbad, cbda, cbad, daac, daca, dcaa, daad, dada, daad, dabc, dacb, dcab, dabd, dadb, dabd, dbac, dbca, dcba, dbad, dbda, dbad, aacc, acac, acca, aacd, acad, acda, aadc, adac, adca, aadd, adad, adda, abcc, acbc, accb, abcd, acbd, acdb, abdc, adbc, adcb, abdd, adbd, addb, bacc, bcac, bcca, bacd, bcad, bcda, badc, bdac, bdca, badd, bdad, bdda.
		

References

  • Robert A. Beeler, How to Count: An Introduction to Combinatorics and Its Applications, Springer International Publishing, 2015.
  • Ian F. Blake, The Mathematical Theory of Coding, Academic Press, 1975.

Crossrefs

Programs

  • GAP
    List([0..30],n->(3*n^2-3*n+8)*2^(n-3)); # Muniru A Asiru, Mar 09 2018
    
  • Magma
    [(3*n^2-3*n+8)*2^(n-3): n in [0..30]]; // Vincenzo Librandi, Mar 10 2018
  • Maple
    A := n -> (3*n^2 - 3*n + 8)*2^(n - 3);
    seq(A(n), n = 0 .. 70);
  • Mathematica
    Table[(3 n^2 - 3 n + 8) 2^(n - 3), {n, 0, 70}]
    CoefficientList[Series[(1 - 4x + 7x^2)/(1 - 2x)^3, {x, 0, 30}], x] (* or *)
    LinearRecurrence[{6, -12, 8}, {1, 2, 7}, 30] (* Robert G. Wilson v, Mar 07 2018 *)
  • Maxima
    makelist((3*n^2 - 3*n + 8)*2^(n - 3), n, 0, 70);
    
  • PARI
    a(n) = (3*n^2-3*n+8)*2^(n-3); \\ Altug Alkan, Mar 09 2018
    

Formula

G.f.: (1 - 4*x + 7*x^2)/(1 - 6*x + 12*x^2 - 8*x^3).
E.g.f: (1/2)*(3*x^2 + 2)*exp(2*x).
a(n) = ((3/4)*binomial(n, 2) + 1)*2^n.
a(n) = 2*a(n-1) + 3*(n - 1)*2^(n - 2), with a(0) = 1.
a(n) = 3*A001788(n) + A000079(n).
a(n) = 6*a(n-1) - 12*a(n-2) + 8*a(n-3), for n >= 3, with a(0) = 1, a(1) = 2 and a(2) = 7.
a(n) = A300184(n,2).
Showing 1-2 of 2 results.