Assume we have a set of numbers, for instance $A=\{2,3,4,5,6,7,8,9,10\}$ and we are looking for the sums of reciprocals such that they are less than one. I mean I am looking for all $S_B$'s $$ S_B=\sum_{i\in B}\frac1i<1, $$ where $B\subset A$. How can I write such code in "Mathematica"?
I wrote the following code but it does not work properly
Clear[A]
A = {2, 3, 4, 5, 6, 7, 8, 9, 10};
Table[If[SubsetQ[A,B] == True&& Sum[1/i, {i, B}]<1,Sum[1/i, {i, B}], Nothing], {B,A}]