A381635 Number of ways to partition the prime indices of n into constant blocks with distinct sums.
1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 0, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 0, 1, 1, 0, 4, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 0, 1, 1, 1
Offset: 1
Keywords
Examples
The a(432) = 3 multiset partitions: {{2,2,2},{1,1,1,1}} {{1},{1,1,1},{2,2,2}} {{1},{2},{2,2},{1,1,1}} Note {{2},{2,2},{1,1,1,1}} is not included, as it does not have distinct block-sums.
Crossrefs
Programs
-
Mathematica
hwt[n_]:=Total[Cases[FactorInteger[n],{p_,k_}:>PrimePi[p]*k]]; pfacs[n_]:=If[n<=1,{{}},Join@@Table[(Prepend[#,d]&)/@Select[pfacs[n/d],Min@@#>=d&],{d,Select[Rest[Divisors[n]],PrimePowerQ]}]]; Table[Length[Select[pfacs[n],UnsameQ@@hwt/@#&]],{n,100}]
Comments