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.
%I A331681 #23 Jun 10 2020 14:06:10 %S A331681 1,2,4,6,8,12,14,16,24,26,28,32,38,48,52,56,64,74,76,86,96,104,106, %T A331681 112,128,148,152,172,178,192,202,208,212,214,224,256,262,296,304,326, %U A331681 344,356,384,404,416,424,428,446,448,478,512,524,526,592,608,622,652 %N A331681 One, two, and all numbers of the form 2^k * prime(j) where k > 0 and j already belongs to the sequence. %C A331681 Also Matula-Goebel numbers of semi-lone-child-avoiding locally disjoint rooted semi-identity trees. A rooted tree is semi-lone-child-avoiding if there are no vertices with exactly one child unless the child is an endpoint/leaf. Locally disjoint means no branch of any vertex overlaps a different (unequal) branch of the same vertex. In a semi-identity tree, all non-leaf branches of any given vertex are distinct. Note that these conditions together imply that there is at most one non-leaf branch under any given vertex. %C A331681 Also Matula-Goebel numbers of semi-lone-child-avoiding rooted trees with at most one non-leaf branch under any given vertex. %C A331681 The Matula-Goebel number of a rooted tree is the product of primes indexed by the Matula-Goebel numbers of its branches (of the root), which gives a bijective correspondence between positive integers and unlabeled rooted trees. %H A331681 Robert Israel, <a href="/A331681/b331681.txt">Table of n, a(n) for n = 1..4000</a> %F A331681 Intersection of A306202 (semi-identity), A316495 (locally disjoint), and A331935 (semi-lone-child-avoiding). - _Gus Wiseman_, Jun 09 2020 %e A331681 The sequence of all semi-lone-child-avoiding rooted trees with at most one non-leaf branch under any given vertex, together with their Matula-Goebel numbers, begins: %e A331681 1: o %e A331681 2: (o) %e A331681 4: (oo) %e A331681 6: (o(o)) %e A331681 8: (ooo) %e A331681 12: (oo(o)) %e A331681 14: (o(oo)) %e A331681 16: (oooo) %e A331681 24: (ooo(o)) %e A331681 26: (o(o(o))) %e A331681 28: (oo(oo)) %e A331681 32: (ooooo) %e A331681 38: (o(ooo)) %e A331681 48: (oooo(o)) %e A331681 52: (oo(o(o))) %e A331681 56: (ooo(oo)) %e A331681 64: (oooooo) %e A331681 74: (o(oo(o))) %e A331681 76: (oo(ooo)) %e A331681 86: (o(o(oo))) %p A331681 N:= 1000: # for terms <= N %p A331681 S:= {1,2}: %p A331681 with(queue): %p A331681 Q:= new(1,2): %p A331681 while not empty(Q) do %p A331681 r:= dequeue(Q); %p A331681 p:= ithprime(r); %p A331681 newS:= {seq(2^i*p,i=1..ilog2(N/p))} minus S; %p A331681 S:= S union newS; %p A331681 for s in newS do enqueue(Q,s) od: %p A331681 od: %p A331681 sort(convert(S,list)); # _Robert Israel_, Feb 05 2020 %t A331681 uryQ[n_]:=n==1||MatchQ[FactorInteger[n],({{2,_},{p_,1}}/;uryQ[PrimePi[p]])|{{2,_}}]; %t A331681 Select[Range[100],uryQ] %Y A331681 The enumeration of these trees by nodes is A324969 (essentially A000045). %Y A331681 The enumeration of these trees by leaves appears to be A090129(n + 1). %Y A331681 The (non-semi) lone-child-avoiding version is A331683. %Y A331681 Matula-Goebel numbers of rooted semi-identity trees are A306202. %Y A331681 Lone-child-avoiding locally disjoint rooted trees by leaves are A316697. %Y A331681 The set S of numbers with at most one prime index in S is A331784. %Y A331681 Matula-Goebel numbers of locally disjoint rooted trees are A316495. %Y A331681 Cf. A000081, A000669, A001678, A007097, A061775, A196050, A291636, A316470, A316473, A331679, A331680, A331682, A331687, A331783, A331785, A331873. %K A331681 nonn %O A331681 1,2 %A A331681 _Gus Wiseman_, Jan 26 2020