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.

A184154 Triangle read by rows: T(n,k) is the number of leaves at level k>=1 of the rooted tree having Matula-Goebel number n (n>=2).

Original entry on oeis.org

1, 0, 1, 2, 0, 0, 1, 1, 1, 0, 2, 3, 0, 2, 1, 0, 1, 0, 0, 0, 1, 2, 1, 0, 1, 1, 1, 2, 0, 1, 1, 4, 0, 0, 2, 1, 2, 0, 3, 2, 0, 1, 0, 3, 1, 0, 0, 1, 0, 0, 2, 3, 1, 0, 0, 2, 1, 1, 1, 0, 3, 2, 2, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 5, 0, 1, 0, 1, 1, 0, 2, 0, 2, 1, 2, 2, 0, 2, 1, 1, 3, 0, 2, 1, 3, 0, 1, 0, 0, 1, 1, 1, 3, 0, 1, 2, 2, 0, 0, 1, 0, 2, 1
Offset: 2

Views

Author

Emeric Deutsch, Oct 06 2011

Keywords

Comments

The Matula-Goebel number of a rooted tree can be defined in the following recursive manner: to the one-vertex tree there corresponds the number 1; to a tree T with root degree 1 there corresponds the t-th prime number, where t is the Matula-Goebel number of the tree obtained from T by deleting the edge emanating from the root; to a tree T with root degree m>=2 there corresponds the product of the Matula-Goebel numbers of the m branches of T.
Number of entries in row n is A109082(n) (n=2,3,...).

Examples

			Row n=7 is [0,2] because the rooted tree with Matula-Goebel number 7 is the rooted tree Y, having 0 leaves at level 1 and 2 leaves at level 2.
Row n=2^m is [m] because the rooted tree with Matula-Goebel number 2^m is a star with m edges.
Triangle starts:
  1;
  0,1;
  2;
  0,0,1;
  1,1;
  0,2;
  3;
  0,2;
  ...
		

Crossrefs

Cf. A109082.

Programs

  • Maple
    with(numtheory): P := proc (n) local r, s: r := proc (n) options operator, arrow: op(1, factorset(n)) end proc: s := proc (n) options operator, arrow: n/r(n) end proc: if n = 2 then x elif bigomega(n) = 1 then sort(expand(x*P(pi(n)))) else sort(P(r(n))+P(s(n))) end if end proc: for n from 2 to 30 do seq(coeff(P(n), x, k), k = 1 .. degree(P(n))) end do; # yields sequence in triangular form
    with(numtheory): P := proc (n) local r, s: r := proc (n) options operator, arrow: op(1, factorset(n)) end proc: s := proc (n) options operator, arrow: n/r(n) end proc: if n = 2 then x elif bigomega(n) = 1 then sort(expand(x*P(pi(n)))) else sort(P(r(n))+P(s(n))) end if end proc: for n from 2 to 30 do P(n) end do;
  • Mathematica
    r[n_] := FactorInteger[n][[1, 1]];
    s[n_] := n/r[n];
    P[n_] := Which[n == 2, x, PrimeOmega[n] == 1, x*P[PrimePi[n]], True, P[r[n]] + P[s[n]]];
    T[n_] := Rest@CoefficientList[P[n], x];
    Table[T[n], {n, 2, 50}] // Flatten (* Jean-François Alcover, Jun 21 2024, after first Maple code *)

Formula

We give the recursive construction of the row generating polynomials P(n)=P(n,x). P(2)=x; if n = prime(t), then P(n)=x*P(t); if n=r*s (r,s>=2), then P(n)=P(r)+P(s) (2nd Maple program yields P(n)).

Extensions

Keyword tabf added by Michel Marcus, Apr 09 2013