A jeweller has ten gold beads weighing 1,2,3,…,10 grams (one of each). How many non-empty sets of beads have a total weight that is a multiple of 5 grams? (Only which beads are chosen matters, not their order.)
Enter an integer
Show solution
Group the beads by weight mod 5: each residue 0,1,2,3,4 appears exactly twice (5,10; 1,6; 2,7; 3,8; 4,9). For one residue r, choosing a subset of its two beads contributes 0, r, r or 2r, which is the same as choosing two independent subsets A,B of {0,1,2,3,4} (one bead of each residue in each). So we need the number of pairs (A,B) with sum of A plus sum of B≡0(mod5). Among the 32 subsets of {0,1,2,3,4}: the empty and full sets have sum ≡0, and for 1≤k≤4 adding 1 to every element maps k-subsets with sum s to sum s+k, cycling the residues, so the other 30 subsets split evenly. Thus 8 subsets have sum ≡0 and 6 have each other residue. Pairs: 8⋅8+4⋅6⋅6=208. Removing the empty set gives 207.