A331681 One, two, and all numbers of the form 2^k * prime(j) where k > 0 and j already belongs to the sequence.
1, 2, 4, 6, 8, 12, 14, 16, 24, 26, 28, 32, 38, 48, 52, 56, 64, 74, 76, 86, 96, 104, 106, 112, 128, 148, 152, 172, 178, 192, 202, 208, 212, 214, 224, 256, 262, 296, 304, 326, 344, 356, 384, 404, 416, 424, 428, 446, 448, 478, 512, 524, 526, 592, 608, 622, 652
Offset: 1
Keywords
Examples
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: 1: o 2: (o) 4: (oo) 6: (o(o)) 8: (ooo) 12: (oo(o)) 14: (o(oo)) 16: (oooo) 24: (ooo(o)) 26: (o(o(o))) 28: (oo(oo)) 32: (ooooo) 38: (o(ooo)) 48: (oooo(o)) 52: (oo(o(o))) 56: (ooo(oo)) 64: (oooooo) 74: (o(oo(o))) 76: (oo(ooo)) 86: (o(o(oo)))
Links
- Robert Israel, Table of n, a(n) for n = 1..4000
Crossrefs
The enumeration of these trees by leaves appears to be A090129(n + 1).
The (non-semi) lone-child-avoiding version is A331683.
Matula-Goebel numbers of rooted semi-identity trees are A306202.
Lone-child-avoiding locally disjoint rooted trees by leaves are A316697.
The set S of numbers with at most one prime index in S is A331784.
Matula-Goebel numbers of locally disjoint rooted trees are A316495.
Programs
-
Maple
N:= 1000: # for terms <= N S:= {1,2}: with(queue): Q:= new(1,2): while not empty(Q) do r:= dequeue(Q); p:= ithprime(r); newS:= {seq(2^i*p,i=1..ilog2(N/p))} minus S; S:= S union newS; for s in newS do enqueue(Q,s) od: od: sort(convert(S,list)); # Robert Israel, Feb 05 2020
-
Mathematica
uryQ[n_]:=n==1||MatchQ[FactorInteger[n],({{2,},{p,1}}/;uryQ[PrimePi[p]])|{{2,_}}]; Select[Range[100],uryQ]
Formula
Intersection of A306202 (semi-identity), A316495 (locally disjoint), and A331935 (semi-lone-child-avoiding). - Gus Wiseman, Jun 09 2020
Comments