Analyzing the Setup
To find the number of non-empty subsets of S={1,2,3,5,7,10,11} whose sum is a multiple of 3, we first classify the elements based on their remainders modulo 3.
The set S is partitioned as follows:
Type R0 (remainder 0): {3} (1 element)
Type R1 (remainder 1): {1,7,10} (3 elements)
* Type R2 (remainder 2): {2,5,11} (3 elements)
The Generating Function
We define the generating function
P(x) to track the subset sums:
P(x)=a∈S∏(1+xa)
When expanded, the coefficient of xn in P(x) represents the number of subsets of S that sum to n. Our goal is to find the sum of coefficients of xn where n is a multiple of 3.
The Roots of Unity Filter
We employ the Roots of Unity Filter to extract the sum of coefficients for powers that are multiples of 3. The number of such subsets
N is given by:
N=31[P(1)+P(ω)+P(ω2)]
Here, ω=ei32π is a primitive cube root of unity. This filter works because the sum 1+ωk+ω2k equals 3 if k is a multiple of 3, and 0 otherwise.
The Calculation
First, we calculate
P(1):
P(1)=(1+1)7=27=128
Next, we evaluate
P(ω) by substituting
ω into the product:
P(ω)=(1+ω3)⋅(1+ω)3⋅(1+ω2)3
Since
ω3=1, we have
1+ω3=2. Using the identity
1+ω+ω2=0, we substitute
1+ω=−ω2 and
1+ω2=−ω:
P(ω)=2⋅(−ω2)3⋅(−ω)3=2⋅(−1)⋅(−1)=2
Because P(x) has real coefficients, P(ω2) is the complex conjugate of P(ω), yielding P(ω2)=2.
Final Calculation
Plugging these values into our filter formula:
N=31[128+2+2]=3132=44
This count of 44 includes the empty set, which has a sum of 0 (a multiple of 3). Since the problem asks for non-empty subsets, we subtract 1 from the total.
The final answer is 43.