It is a well known that, for odd , the number of subsets of the sum of whose elements is divisible by equals the number of binary necklaces of length . In this paper generalize this result in two directions. On the one hand, we introduce a parameter so that requiring the subset sums to be congruent to modulo translates into imposing some periodicity conditions on the necklaces. On the other hand, we refine these relations by the size of the subset, showing that it matches the number of ones in the necklace. We describe the precise conditions on , and for which the equalities hold. We also extend some of our formulas to -ary necklaces. The classical results correspond to the case . When , our identity is related to a conjecture of Baker et al. connecting subsets the sum of whose elements is congruent to modulo and unimodal permutations which consist of one cycle. We prove this conjecture using generating functions. Finding bijective proofs of most of our identities remains an open problem.

生成讲解博客的中文版本

生成AI智能校验的中文版本