A327392 Irregular triangle read by rows giving the connected components of the prime indices of n.
1, 2, 1, 1, 3, 1, 2, 4, 1, 1, 1, 2, 1, 3, 5, 1, 1, 2, 6, 1, 4, 2, 3, 1, 1, 1, 1, 7, 1, 2, 8, 1, 1, 3, 4, 1, 5, 9, 1, 1, 1, 2, 3, 1, 6, 2, 1, 1, 4, 10, 1, 2, 3, 11, 1, 1, 1, 1, 1, 2, 5, 1, 7, 3, 4, 1, 1, 2, 12, 1, 8, 6, 1, 1, 1, 3, 13, 1, 4, 14, 1, 1, 5, 2, 3
Offset: 1
Examples
Triangle begins: {} 1 2 1 1 3 1 2 4 1 1 1 2 1 3 5 1 1 2 6 1 4 2 3 1 1 1 1 7 1 2 8 1 1 3 4 1 5 9 1 1 1 2 3 1 6 2 1 1 4
Crossrefs
Programs
-
Mathematica
primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; zsm[s_]:=With[{c=Select[Subsets[Range[Length[s]],{2}],GCD@@s[[#]]>1&]},If[c=={},s,zsm[Sort[Append[Delete[s,List/@c[[1]]],LCM@@s[[c[[1]]]]]]]]]; Table[zsm[primeMS[n]],{n,30}]
Comments