Difference between revisions of "2016 MPFG Problem 18"

(Created page with "==Problem== Let <math>T = \{1, 2, 3, . . . , 14, 15\}</math>. Say that a subset <math>S</math> of <math>T</math> is handy if the sum of all the elements of <math>S</math> is a...")
 
(Solution 1)
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
 
<math>F(w) = F(w^2) = F(w^3) = F(w^4) = 2^3 = 8</math>
 
<math>F(w) = F(w^2) = F(w^3) = F(w^4) = 2^3 = 8</math>
  
<math>\frac{2^15+4\cdot8}{5} = 6560</math>
+
<math>\frac{2^{15}+4\cdot8}{5} = \boxed{6560}</math>
 +
 
 +
~cassphe

Latest revision as of 10:48, 26 August 2025

Problem

Let $T = \{1, 2, 3, . . . , 14, 15\}$. Say that a subset $S$ of $T$ is handy if the sum of all the elements of $S$ is a multiple of $5$. For example, the empty set is handy (because its sum is $0$) and $T$ itself is handy (because its sum is $120$). Compute the number of handy subsets of $T$.

Solution 1

We can use roots of unity to solve this problem.

$F(x) = \Pi_{k=1}^{15}(1+x^k)$

$\frac{(F(1)+F(w)+F(w^2)+F(w^3)+F(w^4)}{5}$ $(w^5=1)$

$(1+w^0)(1+w^1)(1+w^2)(1+w^3)(1+w^4) = 1+w^5 = 2$

$F(w) = F(w^2) = F(w^3) = F(w^4) = 2^3 = 8$

$\frac{2^{15}+4\cdot8}{5} = \boxed{6560}$

~cassphe