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

A007596 Erroneous version of A226909.

Original entry on oeis.org

1, 2, 4, 44, 164, 616
Offset: 0

Views

Author

Keywords

A241555 Triangle read by rows: Number T(n,k) of 2-colored binary rooted trees with n nodes and exactly k <= n nodes of a specific color.

Original entry on oeis.org

1, 1, 1, 1, 2, 1, 2, 5, 5, 2, 3, 11, 16, 11, 3, 6, 26, 50, 50, 26, 6, 11, 60, 143, 188, 143, 60, 11, 23, 142, 404, 656, 656, 404, 142, 23, 46, 334, 1105, 2143, 2652, 2143, 1105, 334, 46, 98, 794, 2995, 6737, 9934, 9934, 6737, 2995, 794, 98, 207, 1888, 7999, 20504, 35080, 41788, 35080, 20504, 7999, 1888, 207
Offset: 0

Views

Author

David Serena, May 17 2014

Keywords

Comments

T(n,k) = T(n,n-k) by definition.
First column is A001190.
Row sums are given by A226909.

Examples

			Triangle begins:
   1;
   1,   1;
   1,   2,   1;
   2,   5,   5,   2;
   3,  11,  16,  11,  3;
   6,  26,  50,  50,  26,   6;
  11,  60, 143, 188, 143,  60,  11;
  23, 142, 404, 656, 656, 404, 142, 23;
  ...
		

Crossrefs

Programs

  • Mathematica
    B[m_] := Module[{u}, u = Table[0, {m}]; u[[1]] = 1; For[n = 1, n <= Length[u] - 1, n++, u[[n + 1]] = (1 + y)*(Sum[u[[i]]*u[[n + 1 - i]], {i, 1, n}] + If[OddQ[n], u[[Quotient[n, 2] + 1]] /. y -> y^2, 0])/2]; u];
    CoefficientList[#, y]& /@ B[11] // Flatten (* Jean-François Alcover, Sep 24 2019, from PARI *)
  • PARI
    B(n)={my(u=vector(n)); u[1]=1; for(n=1, #u-1, u[n+1]=(1+y)*(sum(i=1, n, u[i]*u[n+1-i]) + if(n%2, subst(u[n\2+1], y, y^2)))/2); u}
    { my(A=B(10)); for(n=1, #A, print(Vec(A[n]))) } \\ Andrew Howroyd, May 21 2018

Extensions

Edited by Nathaniel Johnston, Sep 11 2014
Missing term inserted and a(45) and beyond from Andrew Howroyd, May 21 2018

A241156 Number of complementary pairs of `homogenized' N-free graphs with n nodes.

Original entry on oeis.org

1, 1, 2, 7, 22, 82, 308, 1225, 4954, 20558, 86572, 369942, 1598172, 6972100, 30663656, 135826627, 605386062, 2713066882, 12217967284, 55262144418, 250932354484, 1143468874748, 5227460728344, 23968152050930, 110191808568852, 507857114699628
Offset: 1

Views

Author

N. J. A. Sloane, Apr 18 2014

Keywords

Crossrefs

Cf. A226909.

Formula

a(1)=1, thereafter a(n) = A226909(n)/2.

A276277 Association types for monomials with n arguments in an algebra with two binary operations, one commutative, one noncommutative.

Original entry on oeis.org

1, 2, 6, 25, 111, 540, 2736, 14396, 77649, 427608, 2392866, 13570386, 77815161, 450418536, 2628225684, 15443406868, 91301938365, 542704450806, 3241411991712, 19443499011192, 117084197728737, 707532791560272, 4289252607915012, 26078561954153631
Offset: 1

Views

Author

Murray R. Bremner, Aug 26 2016

Keywords

Comments

a(n) is the number of complete rooted binary trees with n leaves in which the internal nodes are labeled either white or black; the two children (subtrees) of a white node have no specified orientation, but the two children (subtrees) of a black node are labeled left and right. Thus the notion of isomorphism for these trees is partly planar (for the black nodes) and partly abstract (for the white nodes).
Finding a recurrence relation is an easy exercise. Finding an exact formula is probably very difficult or even impossible: compare the OEIS page for A001190 (Wedderburn-Etherington numbers).

Examples

			For n = 4 the 25 association types are as follows, where * is commutative and # is noncommutative; some assumptions have been made regarding the order of the factors for the commutative operation:
( ( X * X ) * X ) * X,
( ( X # X ) * X ) * X,
( ( X * X ) # X ) * X,
( ( X # X ) # X ) * X,
( X # ( X * X ) ) * X,
( X # ( X # X ) ) * X,
( X * X ) * ( X * X ),
( X * X ) * ( X # X ),
( X # X ) * ( X # X ),
( ( X * X ) * X ) # X,
( ( X # X ) * X ) # X,
( ( X * X ) # X ) # X,
( ( X # X ) # X ) # X,
( X # ( X * X ) ) # X,
( X # ( X # X ) ) # X,
( X * X ) # ( X * X ),
( X * X ) # ( X # X ),
( X # X ) # ( X * X ),
( X # X ) # ( X # X ),
X # ( ( X * X ) * X ),
X # ( ( X # X ) * X ),
X # ( ( X * X ) # X ),
X # ( ( X # X ) # X ),
X # ( X # ( X * X ) ),
X # ( X # ( X # X ) ).
		

Crossrefs

Programs

  • Maple
    BWT := table():
    BWT[ 1 ] := 1:
    for arity from 2 to 24 do
      BWT[ arity ] := 0:
      # commutative operation
      for i to floor((arity-1)/2) do
        BWT[ arity ] := BWT[ arity ] + ( BWT[arity-i] * BWT[i] )
      od:
      if arity mod 2 = 0 then
        BWT[ arity ] := BWT[ arity ] + binomial( BWT[arity/2]+1, 2 )
      fi:
      # noncommutative operation
      for i to arity-1 do
        BWT[ arity ] := BWT[ arity ] + ( BWT[arity-i] * BWT[i] )
      od
    od:
    seq(BWT[ n ], n=1..24);
  • Mathematica
    BWT[1] = 1; For[arity = 2, arity <= 24, arity++, BWT[arity] = 0; (* commutative operation *) For[i = 1, i <= Floor[(arity-1)/2], i++, BWT[arity] = BWT[arity] + (BWT[arity-i]*BWT[i])]; If[EvenQ[arity], BWT[arity] = BWT[arity] + Binomial[BWT[ arity/2]+1, 2]]; (* non commutative operation *) For[i = 1, i <= arity-1, i++, BWT[arity] = BWT[arity] + (BWT[arity-i]*BWT[i])]];
    Table[BWT[n], {n, 1, 24}] (* Jean-François Alcover, Feb 15 2019, from Maple *)
Showing 1-4 of 4 results.