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

A057711 a(0)=0, a(1)=1, a(n) = n*2^(n-2) for n >= 2.

Original entry on oeis.org

0, 1, 2, 6, 16, 40, 96, 224, 512, 1152, 2560, 5632, 12288, 26624, 57344, 122880, 262144, 557056, 1179648, 2490368, 5242880, 11010048, 23068672, 48234496, 100663296, 209715200, 436207616, 905969664, 1879048192, 3892314112, 8053063680
Offset: 0

Views

Author

Bernhard Wolf (wolf(AT)cs.tu-berlin.de), Oct 24 2000

Keywords

Comments

Number of states in the planning domain FERRY, when n-3 cars are at one of two shores while the (n-2)nd car may be on the ferry or at one of the shores.
If the ferry could board any number of cars (instead of only one), the number of states would form the Pisot sequence P(2,6) (A008776). In addition, if k shores existed, the sequence would form the Pisot sequence P(k,k(k+1)). This corresponds to the BRIEFCASE planning domain.
a(i) is the number of occurrences of the number 1 in all palindromic compositions of n = 2*(i+1). - Silvia Heubach (sheubac(AT)calstatela.edu), Jan 10 2003. E.g., there are 5 palindromic compositions of 6, namely 111111 11211 2112 1221 141, containing a total of 16 1's.
Number of occurrences of 00's in all circular binary words of length n. Example: a(3)=6 because in the circular binary words 000, 001, 010, 011, 100, 101, 110 and 111 we have a total of 3+1+1+0+1+0+0+0=6 occurrences of 00. a(n) = Sum_{k=0..n} k*A119458(n,k). - Emeric Deutsch, May 20 2006
a(n) is the number of permutations on [n] for which the entries of each left factor form a circular subinterval of [n]. A subset I of [n] forms a circular subinterval of [n] if it is an ordinary interval [a,b] or has the form [1,a]-union-[b,n] for 1 <= a < b <= n. For example, (5,4,2) is a left factor of the permutation (5,4,2,1,3) which does not form a circular subinterval of [5] and a(4)=16 counts all 24 permutations of [4] except the eight whose first two entries are 1,3 (in either order) or 2,4. - David Callan, Mar 30 2007
a(n) is the total number of runs in all Boolean (n-1)-strings. For example, the 8 Boolean 3-strings, 000, 001, 010, 011, 100, 101, 110, 111 have 1, 2, 3, 2, 2, 3, 2, 1 runs respectively. - David Callan, Jul 22 2008
From Gary W. Adamson, Jul 31 2010: (Start)
Starting with "1" = (1, 2, 4, 8, ...) convolved with (1, 0, 2, 4, 8, ...).
Example: a(6) = 96 = (32, 16, 8, 4, 2, 1) dot (1, 0, 2, 4, 8, 16) = (32 + 0 + 16 + 16 + 16, + 16) = 32 + 4*16 (End)
An elephant sequence, see A175654. For the corner squares 24 A[5] vectors, with decimal values between 27 and 432, lead to this sequence (without the leading 0). For the central square these vectors lead to the companion sequence A087447 (without the first leading 1). - Johannes W. Meijer, Aug 15 2010
Starting with 1 = (1, 1, 2, 4, 8, 16, ...) convolved with (1, 1, 3, 7, 15, 31, ...). - Gary W. Adamson, Oct 26 2010
a(n) is the number of ways to draw simple polygonal chains for n vertices lying on a circle. - Anton Zakharov, Dec 31 2016
Also the number of edges, maximal cliques, and maximum cliques in the n-folded cube graph for n > 3. - Eric W. Weisstein, Dec 01 2017 and Mar 21 2018
Number of pairs of compositions of n corresponding to a seaweed algebra of index n-2 for n > 2. - Nick Mayers, Jun 25 2018
Starting with 1, 2, 6, 16, ..., number of permutations of length n>0 avoiding the partially ordered pattern (POP) {1>2, 1>3} of length 4. That is, number of length n permutations having no subsequences of length 4 in which the first element is larger than the second and third elements. - Sergey Kitaev, Dec 08 2020

Examples

			a(1)=6 because the palindromic compositions of n=4 are 4, 1+2+1, 1+1+1+1 and 2+2 and they contain 6 ones. - Silvia Heubach (sheubac(AT)calstatela.edu), Jan 10 2003
		

Crossrefs

Pisot sequence P(2, 6) (A008776), Pisot sequence P(k, k(k+1))
Cf. A119458.

Programs

  • Magma
    [Ceiling(n*2^(n-2)) : n in [0..40]]; // Vincenzo Librandi, Sep 22 2011
    
  • Mathematica
    Join[{0, 1}, Table[n 2^(n - 2), {n, 2, 30}]] (* Eric W. Weisstein, Dec 01 2017 *)
    Join[{0, 1}, LinearRecurrence[{4, -4}, {2, 6}, 20]] (* Eric W. Weisstein, Dec 01 2017 *)
    CoefficientList[Series[x (1 - 2 x + 2 x^2)/(1 - 2 x)^2, {x, 0, 20}], x] (* Eric W. Weisstein, Dec 01 2017 *)
  • PARI
    a(n)=ceil(n*2^(n-2)) \\ Charles R Greathouse IV, Oct 31 2011
    
  • PARI
    x='x+O('x^50); concat(0, Vec(x*(1-2*x+2*x^2)/(1-2*x)^2)) \\ Altug Alkan, Nov 01 2015

Formula

a(n) = ceiling(n*2^(n-2)).
Binomial transform of (0, 1, 0, 3, 0, 5, 0, 7, ...).
From Paul Barry, Apr 06 2003: (Start)
a(0)=0, a(n) = n*(0^(n-1) + 2^(n-1))/2, n > 0.
a(n) = Sum_{k=0..n} binomial(n, 2k+1)*(2k+1).
E.g.f.: x*exp(x)*cosh(x). (End)
The sequence 1, 1, 6, 16, ... is the binomial transform of A016813 with interpolated zeros. - Paul Barry, Jul 25 2003
For n > 1, a(n) = Sum_{k=0..n} (k-n/2)^2 C(n, k). (n+1)*a(n) = A001788(n). - Mario Catalani (mario.catalani(AT)unito.it), Nov 26 2003
From Paul Barry, May 07 2004: (Start)
a(n) = n*2^(n-2) - Sum_{k=0..n} binomial(n, k)*k*(-1)^k.
G.f.: x*(1-2*x+2*x^2)/(1-2*x)^2. (End)
a(n+1) = ceiling(binomial(n+1,1)*2^(n-1)). - Zerinvary Lajos, Nov 01 2006
a(n+1) = Sum_{k=0..n} A196389(n,k)*2^k. - Philippe Deléham, Oct 31 2011
a(0)=0, a(1)=1, a(2)=2, a(3)=6, a(n+1) = 4*a(n)-4*a(n-1) for n >= 3. - Philippe Deléham, Feb 20 2013
a(n) = A002064(n-1) - A002064(n-2), for n >= 2. - Ivan N. Ianakiev, Dec 29 2013
From Amiram Eldar, Aug 05 2020: (Start)
Sum_{n>=1} 1/a(n) = 4*log(2) - 1.
Sum_{n>=1} (-1)^(n+1)/a(n) = 4*log(3/2) - 1. (End)

A082134 Expansion of e.g.f. x*exp(3*x)*cosh(x).

Original entry on oeis.org

0, 1, 6, 30, 144, 680, 3168, 14560, 66048, 296064, 1313280, 5772800, 25178112, 109078528, 469819392, 2013388800, 8590196736, 36507779072, 154620002304, 652837519360, 2748784312320, 11544883101696, 48378534690816
Offset: 0

Views

Author

Paul Barry, Apr 06 2003

Keywords

Comments

Binomial transform of A082133. 3rd binomial transform of (0,1,0,3,0,5,0,7,...)
Let P(A) be the power set of an n-element set A and B be the Cartesian product of P(A) with itself. Then remove (y,x) from B when (x,y) is in B and x <> y and call this R35. Then a(n) = the sum of the size of the intersection of x and y for every (x,y) of R35. - Ross La Haye, Dec 30 2007; edited Jan 05 2013
A133224 is the analogous sequence if "Intersection" is replaced by "Union" and A002697 is the analogous sequence if "Intersection" is replaced by "Symmetric difference". Here, X Intersection Y = Y Intersection X is considered as the same set [Relation (37): T_Q(n) in document of Ross La Haye in reference]. If we want to consider that X Intersection Y and Y Intersection X are two distinct formula for describing the same set, see A002697. - Bernard Schott, Jan 19 2013

Crossrefs

Cf. A057711 (x*exp(x)*cosh(x)), A082133 (x*exp(2*x)*cosh(x)).
Cf. A082135 (x*exp(4*x)*cosh(x)), A082136 (x*exp(5*x)*cosh(x)).

Programs

  • Magma
    [n*2^(n-2)*(1+2^(n-1)): n in [0..25]]; // G. C. Greubel, Feb 05 2018
    
  • Maple
    a:= n -> n*binomial(2^(n-1) +1, 2); seq(a(n), n=0..25); # G. C. Greubel, Apr 16 2020
  • Mathematica
    Table[n(2^(n-1) +4^(n-1))/2, {n, 0, 22}] (* Michael De Vlieger, Nov 29 2015 *)
    With[{nmax = 25}, CoefficientList[Series[x*Exp[3*x]*Cosh[x], {x, 0, nmax}], x]*Range[0, nmax]!] (* G. C. Greubel, Feb 05 2018 *)
  • PARI
    a(n)=n*(2^n--+4^n)/2 \\ Charles R Greathouse IV, Jan 14 2013
    
  • Sage
    [n*binomial(2^(n-1)+1, 2) for n in (0..25)] # G. C. Greubel, Apr 16 2020

Formula

a(n) = n*(2^(n-1) + 4^(n-1))/2.
E.g.f.: x*exp(3*x)*cosh(x).
Conjecture: (n+28)*a(n) + (n-282)*a(n-1) + 2*(-17*n+423)*a(n-2) + 8*(7*n-94)*a(n-3) = 0. - R. J. Mathar, Nov 29 2012
G.f.: x*(10*x^2-6*x+1) / ((2*x-1)^2*(4*x-1)^2). - Colin Barker, Dec 10 2012

A082135 Expansion of e.g.f. x*exp(4*x)*cosh(x).

Original entry on oeis.org

0, 1, 8, 51, 304, 1765, 10104, 57239, 321248, 1787337, 9864040, 54035707, 294031632, 1590368429, 8556082136, 45812239455, 244255416256, 1297362967441, 6867617339592, 36243304518083, 190746485895920, 1001394643462773
Offset: 0

Views

Author

Paul Barry, Apr 06 2003

Keywords

Comments

Binomial transform of A082134. 4th binomial transform of (0,1,0,3,0,5,0,7,...).

Crossrefs

Programs

  • Magma
    [n*(3^(n-1)+5^(n-1))/2: n in [0..30]]; // G. C. Greubel, Feb 05 2018
  • Mathematica
    With[{nn = 20}, CoefficientList[Series[x Exp[4*x] Cosh[x], {x, 0, nn}], x] Range[0, nn]!] (* T. D. Noe, Dec 10 2012 *)
    Table[n*(3^(n-1)+5^(n-1))/2, {n,0,30}] (* G. C. Greubel, Feb 05 2018 *)
    LinearRecurrence[{16,-94,240,-225},{0,1,8,51},40] (* Harvey P. Dale, Sep 13 2024 *)
  • PARI
    for(n=0,30, print1(n*(3^(n-1)+5^(n-1))/2, ", ")) \\ G. C. Greubel, Feb 05 2018
    

Formula

a(n) = n*(3^(n-1) + 5^(n-1))/2.
E.g.f.: x*exp(4x)*cosh(x).
G.f.: x*(17*x^2-8*x+1) / ((3*x-1)^2*(5*x-1)^2). [Colin Barker, Dec 10 2012]
Showing 1-3 of 3 results.