login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Number of star-vertices in the rooted tree with Matula-Goebel number n.
0

%I #15 Jun 18 2024 11:09:07

%S 0,1,1,1,1,1,1,1,2,1,1,1,1,1,2,1,1,2,1,1,2,1,2,1,2,1,3,1,1,2,1,1,2,1,

%T 2,2,1,1,2,1,1,2,1,1,3,2,2,1,2,2,2,1,1,3,2,1,2,1,1,2,2,1,3,1,2,2,1,1,

%U 3,2,1,2,2,1,3,1,2,2,1,1,4,1,2,2,2

%N Number of star-vertices in the rooted tree with Matula-Goebel number n.

%C A vertex v in a rooted tree is said to be a star-vertex if all the children of v are leaves.

%C 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.

%H Emeric Deutsch, <a href="http://arxiv.org/abs/1111.4288">Rooted tree statistics from Matula numbers</a>, arXiv:1111.4288 [math.CO], 2011.

%H F. Goebel, <a href="http://dx.doi.org/10.1016/0095-8956(80)90049-0">On a 1-1-correspondence between rooted trees and natural numbers</a>, J. Combin. Theory, B 29 (1980), 141-143.

%H I. Gutman and A. Ivic, <a href="http://dx.doi.org/10.1016/0012-365X(95)00182-V">On Matula numbers</a>, Discrete Math., 150, 1996, 131-142.

%H I. Gutman and Yeong-Nan Yeh, <a href="http://www.emis.de/journals/PIMB/067/3.html">Deducing properties of trees from their Matula numbers</a>, Publ. Inst. Math., 53 (67), 1993, 17-22.

%H D. W. Matula, <a href="http://www.jstor.org/stable/2027327">A natural rooted tree enumeration by prime factorization</a>, SIAM Rev. 10 (1968) 273.

%H <a href="/index/Mat#matula">Index entries for sequences related to Matula-Goebel numbers</a>

%F Let G(n)=G(n;t,z) be the bivariate generating polynomial of the star-vertices of the rooted tree with Matula-Goebel number n with respect to number of children (marked by t) and level (marked by z). Then G(1)=0; G(2)=t; if n = m-th prime (m>=2), then G(n)=z*G(m); if n=rs (r,s>=2) and both r and s are powers of 2, then G(n)=G(r)*G(s) (=t^{log[2](n)}); if n=rs (r,s>=2) and r is a power of 2 while s is not, then G(n)=G(s); if n=rs (r,s>=2) and s is a power of 2 while r is not, then G(n)=G(r); if n=rs (r,s>=2) and r and s are not powers of 2, then G(n)=G(r)+G(s). a(n)=G(n;1,1). The Maple program is based on these recurrence relations. With the given Maple program, the command G(n) yields the bivariate generating polynomial.

%e a(9)=2 because the rooted tree with Matula-Goebel number 9 is the path A-B-R-C-D with root R; B and C are the star-vertices.

%e a(5)=1 because the rooted tree with Matula-Goebel number 5 is the path R-A-B-C with root R; B is the only star-vertex.

%e a(16)=1 because the rooted tree with Matula-Goebel number 16 is the star K_{1,4}; the root is the only star-vertex.

%e G(987654321) =2*t*z + 3*t^2*z^2 + t*z^2 + t*z^4 + t^4*z^2 (reader may verify this on Fig. 2 of the Deutsch paper).

%p 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 0 elif n = 2 then t elif bigomega(n) = 1 then z*G(pi(n)) elif factorset(n) = {2} then t^log[2](n) elif factorset(r(n)) = {2} and factorset(s(n)) <> {2} then G(s(n)) elif factorset(r(n)) <> {2} and factorset(s(n)) = {2} then G(r(n)) else expand(G(r(n))+G(s(n))) end if end proc: a := proc (n) options operator, arrow: subs({t = 1, z = 1}, G(n)) end proc: seq(a(n), n = 1 .. 200);

%t r[n_] := FactorInteger[n][[1, 1]];

%t s[n_] := n/r[n];

%t G[n_] := Which[n == 1, 0, n == 2, t, PrimeOmega[n] == 1, z*G[PrimePi[n]], FactorInteger[n][[All, 1]] == {2}, t^Log[2, n], FactorInteger[r[n]][[All, 1]] == {2} && FactorInteger[s[n]][[All, 1]] != {2}, G[s[n]], FactorInteger[r[n]][[All, 1]] != {2} && FactorInteger[s[n]][[All, 1]] == {2}, G[r[n]], True, Expand[G[r[n]] + G[s[n]]]];

%t a[n_] := G[n] /. {t -> 1, z -> 1};

%t Table[a[n], {n, 1, 85}] (* _Jean-François Alcover_, Jun 18 2024, after Maple code *)

%K nonn

%O 1,9

%A _Emeric Deutsch_, Jul 23 2012