Since we have two disjoint subsets, our task is simplified. Can the remaining three numbers be in a third disjoint subset? If they aren't, then can the remaining subsets contain a set of three disjoint ones? Let's consider the second possibility. The remaining subsets contain one number from the first subset, one from the second subset, and one from the leftover numbers, or else one from the first two subsets and two from the leftover numbers. At most three of the subsets can be the latter type.
If no pairs in the leftover numbers, then if 1 has SMC = 4, then we can have, without loss of generality
1 2 3, 4 5 6, 1 4 7, 1 5 8, 1 6 9
Continuing, we select 2 4 8 and either 2 5 7, 2 5 9, or 2 6 7.
There is a problem with 2 4 8, 2 5 7. Consider it with 1 4 7 and 1 5 8. The sum of the first two is 2N(2) + N(4) + N(5) + N(7) + N(8). The sum of the second two is like this, but with N(1) instead of N(2). Thus, N(2) = N(1), which is invalid.
Then after that, subsets starting with 3. After some experimentation, I was able to find some disjoint-triplet subsets, but also some subset solutions that are not. So it's up in the air at this point.If there are three disjoint subsets, then we find 3*SSS = Total, and 3*N(SMC = 4) = SSS, or 9*N(SMC = 4) = Total. This makes N(SMC = 4) the average of all the numbers.
If there are three disjoint subsets, then we get even more simplification. The remaining five subsets have one from each of those subsets.
Here is a possible solution with three disjoint subsets but no numbers with SMC = 4:
1 2 3, 4 5 6, 1 4 7, 1 5 8, 2 5 9, 2 6 7, 3 6 8, 3 4 9
However, it has N(1) = N(6) = N(9), N(2) = N(4) = N(8), and N(3) = N(5) = N(7).
I may have to find some way of trial-and-error testing that does not take either complicated code design or excessive run time.Returning to the case of one number with SMC = 4, I will consider the remaining four subsets. I start with
1 2 3, 1 4 5, 1 6 7, 1 8 9
The additional subsets take at most one from each. We can start with 2 4 6. Since there is not enough room in 2 to 8 to have 4 additional subsets with SMC = 2 for those numbers, at least some of them must have SMC = 3. We can let 2 have SMC = 3. We get two possibilities:
1 2 3, 1 4 5, 1 6 7, 1 8 9, 2 4 6, 2 5 7
1 2 3, 1 4 5, 1 6 7, 1 8 9, 2 4 6, 2 5 8
Unfortunately, I get lots of possibilities for the remaining two subsets.