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.

A324843 Number of unlabeled rooted trees with n nodes where the branches of any branch of any terminal subtree form a submultiset of the branches of the same subtree.

Original entry on oeis.org

1, 1, 1, 2, 2, 4, 4, 8, 9, 15, 17, 31, 35, 57, 70, 111, 136, 213, 265, 405, 517, 763, 987, 1458, 1893, 2736, 3611, 5161, 6836, 9702
Offset: 1

Views

Author

Gus Wiseman, Mar 18 2019

Keywords

Comments

A subset of totally transitive rooted trees (A318185).

Examples

			The a(1) = 1 through a(8) = 8 rooted trees:
  o  (o)  (oo)  (ooo)   (oooo)   (ooooo)    (oooooo)    (ooooooo)
                (o(o))  (oo(o))  (oo(oo))   (ooo(oo))   (ooo(ooo))
                                 (ooo(o))   (oooo(o))   (oooo(oo))
                                 (o(o)(o))  (oo(o)(o))  (ooooo(o))
                                                        (oo(o)(oo))
                                                        (ooo(o)(o))
                                                        (o(o)(o)(o))
                                                        (o(o)(o(o)))
		

Crossrefs

The Matula-Goebel numbers of these trees are given by A324842.

Programs

  • Mathematica
    submultQ[cap_,fat_]:=And@@Function[i,Count[fat,i]>=Count[cap,i]]/@Union[List@@cap];
    rallt[n_]:=Select[Union[Sort/@Join@@(Tuples[rallt/@#]&/@IntegerPartitions[n-1])],And@@Table[submultQ[b,#],{b,#}]&];
    Table[Length[rallt[n]],{n,10}]

A324842 Matula-Goebel numbers of rooted trees where the branches of any branch of any terminal subtree form a submultiset of the branches of the same subtree.

Original entry on oeis.org

1, 2, 4, 6, 8, 12, 16, 18, 24, 28, 32, 36, 48, 54, 56, 64, 72, 78, 84, 96, 108, 112, 128, 144, 152, 156, 162, 168, 192, 196, 216, 224, 234, 252, 256, 288, 304, 312, 324, 336, 384, 392, 432, 444, 448, 456, 468, 486, 504, 512, 576, 588, 608, 624, 648, 672, 702
Offset: 1

Views

Author

Gus Wiseman, Mar 18 2019

Keywords

Examples

			The sequence of rooted trees together with their Matula-Goebel numbers begins:
   1: o
   2: (o)
   4: (oo)
   6: (o(o))
   8: (ooo)
  12: (oo(o))
  16: (oooo)
  18: (o(o)(o))
  24: (ooo(o))
  28: (oo(oo))
  32: (ooooo)
  36: (oo(o)(o))
  48: (oooo(o))
  54: (o(o)(o)(o))
  56: (ooo(oo))
  64: (oooooo)
  72: (ooo(o)(o))
  78: (o(o)(o(o)))
  84: (oo(o)(oo))
  96: (ooooo(o))
		

Crossrefs

Programs

  • Mathematica
    primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
    qaQ[n_]:=And[And@@Table[Divisible[n,x],{x,primeMS[n]}],And@@qaQ/@primeMS[n]];
    Select[Range[1000],qaQ]

A324855 Lexicographically earliest sequence containing 2 and all squarefree numbers > 2 whose prime indices already belong to the sequence.

Original entry on oeis.org

2, 3, 5, 11, 15, 31, 33, 47, 55, 93, 127, 137, 141, 155, 165, 211, 235, 257, 341, 381, 411, 465, 487, 517, 633, 635, 685, 705, 709, 771, 773, 811, 907, 977, 1023, 1055, 1285, 1297, 1397, 1457, 1461, 1483, 1507, 1551, 1621, 1705, 1905, 2055, 2127, 2293, 2319
Offset: 1

Views

Author

Gus Wiseman, Mar 18 2019

Keywords

Comments

A prime index of n is a number m such that prime(m) divides n. The multiset of prime indices of n is row n of A112798.

Examples

			The sequence of terms together with their prime indices begins:
    2: {1}
    3: {2}
    5: {3}
   11: {5}
   15: {2,3}
   31: {11}
   33: {2,5}
   47: {15}
   55: {3,5}
   93: {2,11}
  127: {31}
  137: {33}
  141: {2,15}
  155: {3,11}
  165: {2,3,5}
  211: {47}
  235: {3,15}
  257: {55}
  341: {5,11}
  381: {2,31}
		

Crossrefs

Programs

  • Maple
    S:= {2}: count:= 1:
    for n from 3 by 2 while count < 100 do
      F:= ifactors(n)[2];
      if max(map(t -> t[2],F))=1 and {seq(numtheory:-pi(t[1]),t=F)} subset S then
         S:= S union {n}; count:= count+1;
      fi
    od:
    sort(convert(S,list)); # Robert Israel, Mar 22 2019
  • Mathematica
    aQ[n_]:=Switch[n,1,False,2,True,?(!SquareFreeQ[#]&),False,,And@@Cases[FactorInteger[n],{p_,k_}:>aQ[PrimePi[p]]]];
    Select[Range[1000],aQ]
Showing 1-3 of 3 results.