OFFSET
1,1
COMMENTS
EXAMPLE
The terms together with their prime indices begin:
3: {2}
5: {3}
7: {4}
9: {2,2}
10: {1,3}
11: {5}
13: {6}
14: {1,4}
15: {2,3}
17: {7}
19: {8}
21: {2,4}
22: {1,5}
23: {9}
25: {3,3}
26: {1,6}
27: {2,2,2}
28: {1,1,4}
For example, the submultisets of (1,1,2,6) (right column) and their sums (left column) are:
0: ()
1: (1)
2: (2) or (11)
3: (12)
4: (112)
6: (6)
7: (16)
8: (26) or (116)
9: (126)
10: (1126)
But 5 is missing, so 156 is in the sequence.
MATHEMATICA
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
nmz[y_]:=Complement[Range[Total[y]], Total/@Subsets[y]];
Select[Range[100], Length[nmz[prix[#]]]>0&]
CROSSREFS
A299701 counts distinct subset-sums of prime indices.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Sep 26 2023
STATUS
approved