OFFSET
1,2
COMMENTS
LINKS
Robert Price, Table of n, a(n) for n = 1..1247
EXAMPLE
The prime indices of 270 are {1,2,2,2,3}, and there are two multiset partitions into constant multisets with distinct sums: {{1},{2},{3},{2,2}} and {{1},{3},{2,2,2}}, so 270 is not in the sequence.
The prime indices of 300 are {1,1,2,3,3}, of which there are no multiset partitions into constant multisets with distinct sums, so 300 is not in the sequence.
The prime indices of 360 are {1,1,1,2,2,3}, of which there is only one multiset partition into constant multisets with distinct sums: {{1},{1,1},{3},{2,2}}, so 360 is in the sequence.
The terms together with their prime indices begin:
1: {}
2: {1}
3: {2}
4: {1,1}
5: {3}
6: {1,2}
7: {4}
9: {2,2}
10: {1,3}
11: {5}
13: {6}
14: {1,4}
15: {2,3}
17: {7}
18: {1,2,2}
19: {8}
20: {1,1,3}
21: {2,4}
22: {1,5}
23: {9}
24: {1,1,1,2}
25: {3,3}
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]}]];
Select[Range[100], Length[Select[pfacs[#], UnsameQ@@hwt/@#&]]==1&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Mar 22 2025
STATUS
approved
