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.

A214574 The Strahler number of the rooted tree with Matula-Goebel number n.

Original entry on oeis.org

1, 1, 1, 2, 1, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3
Offset: 1

Views

Author

Emeric Deutsch, Aug 14 2012

Keywords

Comments

The Strahler number of a vertex of a rooted tree is defined recursively in the following way: (i) the Strahler number of a leaf is 1; (ii) if the vertex has one child with Strahler number i and all other children have Strahler number less than i, then the Strahler number of the vertex is again i; (iii) if the vertex has two or more children with Strahler number i and no child with Strahler number greater than i, then the Strahler number of the vertex is i+1. See the Wikipedia reference. The Strahler number of a rooted tree T is defined as the Strahler number of the root of T.
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.

Examples

			a(4)=2 because the rooted tree with Matula-Goebel number 4 is V; the two leaves have Strahler numbers 1,1, and the root has Strahler number 2; this is - by definition - the Strahler number of the tree.
		

Crossrefs

Cf. A356082 (most likely the positions of the first occurrences of each n, also positions of the records).

Programs

  • Maple
    with(numtheory): G := 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 = 1 then x elif bigomega(n) = 1 then sort(expand(x^degree(G(pi(n)))+G(pi(n)))) elif 1 < bigomega(n) and degree(G(r(n))) <> degree(G(s(n))) then sort(G(r(n))-x^degree(G(r(n)))+G(s(n))-x^degree(G(s(n)))+x^max(degree(G(r(n))), degree(G(s(n))))) else sort(G(r(n))-x^degree(G(r(n)))+G(s(n))-x^degree(G(s(n)))+x^(1+degree(G(r(n))))) end if end proc: seq(degree(G(n)), n = 1 .. 200);
  • PARI
    A214574(n) = if(1==n, 1, if(isprime(n), A214574(primepi(n)), my(f=factor(n), m, mpi=0); f[,1]=apply(A214574,f[,1]); m = vecmax(f[,1]); for(i=1,#f~,if(m==f[i,1], if(mpi || f[i,2]>1, return(1+m), mpi = i))); (m))); \\ Antti Karttunen, Jan 20 2025

Formula

Define the Strahler polynomial of a rooted tree T as the generating polynomial of the vertices of T with respect to their Strahler numbers. For example, it follows at once that the Strahler polynomial of the rooted tree V is 2x + x^2. Denote by G(n)=G(n;x) the Strahler polynomial of the rooted tree with Matula-Goebel number n. Clearly, A214573(n,k) is the coefficient of x^k in G(n). We have (i) G(1)= x; (ii) if n=p(t) (the t-th prime), then G(n) = x^{degree(G(t)} + G(t); (iii) if n=rs (r,s>=2), then G(n) = G(r) - degree (G(r)) + G(s) - degree(G(s) + x^m, where m = 1+degree(G(r)) if degree(G(r))=degree(G(s)) and m = max(degree(G(r), G(s)) otherwise. The Strahler number a(n) = degree(G(n)).

A356083 Matula-Goebel number of the complete ternary tree of n levels.

Original entry on oeis.org

1, 8, 6859, 328951971956791, 1658040970678649782777422161327743110829397625479
Offset: 1

Views

Author

Kevin Ryde, Jul 27 2022

Keywords

Examples

			For n=3, the complete ternary tree of 3 levels is
         6859
      /   |   \     a(3) = prime(8)^3
    8     8     8        = 6859
   /|\   /|\   /|\
  1 1 1 1 1 1 1 1 1
		

Crossrefs

Cf. A007097, A356082 (binary), A356084 (quaternary).

Programs

  • PARI
    a(n) = my(ret=1); for(i=2,n, ret=prime(ret)^3); ret;

Formula

a(n) = prime(a(n-1))^3, for n>=2.

Extensions

a(5) from Jinyuan Wang, Jul 27 2022

A356084 Matula-Goebel number of the complete quaternary (4-ary) tree of n levels.

Original entry on oeis.org

1, 16, 7890481, 379723559137648771815613388050801
Offset: 1

Views

Author

Kevin Ryde, Jul 27 2022

Keywords

Examples

			For n=3, the complete quaternary tree of 3 levels is
              7890481
        /     /      \     \      a(4) = prime(16)^4
     16      16      16      16        = 7890481
   // \\   // \\   // \\   // \\
  1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
		

Crossrefs

Cf. A007097, A356082 (binary), A356083 (ternary).

Programs

  • PARI
    a(n) = my(ret=1); for(i=2,n, ret=prime(ret)^4); ret;

Formula

a(n) = prime(a(n-1))^4, for n>=2.
Showing 1-3 of 3 results.