OFFSET
1,2
COMMENTS
We observe that a(n) == 0 (mod 3) for n>1.
EXAMPLE
+----+-----+------------------------------------------------+
| n | k | n subsets whose sum of elements = k |
+----+-----+------------------------------------------------+
| 1 | 1 | {1} |
+----+-----+------------------------------------------------+
| 2 | 3 | {1,2}, {3} |
+----+-----+------------------------------------------------+
| 3 | 15 | {1,2,3,4,5}, {7,8}, {15} |
+----+-----+------------------------------------------------+
| 4 | 27 | {2,3,4,5,6,7}, {8,9,10}, {13,14}, {27} |
+----+-----+------------------------------------------------+
| 5 | 75 | {3,4,5,6,7,8,9,10,11,12}, {13,14,15,16,17}, |
| | | {24,25,26}, {37,38}, {75} |
+----+-----+------------------------------------------------+
| 6 | 165 | {4,5,...,18}, {25,26,...,30}, {31,32,33,34,35},|
| | | {54,55,56}, {82,83}, {165} |
+----+-----+------------------------------------------------+
| 7 | 345 | {4,5,...,26}, {30,31,...,39}, {55,56,...60}, |
| | | {67,68,...71}, {114,115,116}, {172,173},{345} |
+----+-----+------------------------------------------------+
Note: There are several solutions to reach n disjoint subsets, for example for n=3, we can choose from one of the 2 solutions: {{4,5,6},{7,8},{15}} or {{1,2,3,4,5}, {7,8}, {15}}.
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Michel Lagneau, Dec 05 2024
EXTENSIONS
a(10)-a(35) from Alois P. Heinz, Dec 06 2024
STATUS
approved
