Difference between revisions of "2006 Canadian MO Problems/Problem 1"
(→Solution) |
(→Solution) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
==Solution== | ==Solution== | ||
− | <math>f(n, k) = \text{the number of ways to distribute } k \text{ candies among } n \text{ children such that each child gets at most 2 candies. </math> | + | <math>f(n, k) = \text{the number of ways to distribute } k \text{ candies among } n \text{ children such that each child gets at most 2 candies.} </math> |
<math> \text{This corresponds to finding non-negative integer solutions to } x_1 + x_2 + \cdots + x_n = k \text{ where } 0 \leq x_i \leq 2 \text{ for all } i.</math> | <math> \text{This corresponds to finding non-negative integer solutions to } x_1 + x_2 + \cdots + x_n = k \text{ where } 0 \leq x_i \leq 2 \text{ for all } i.</math> | ||
Line 21: | Line 21: | ||
<math>\text{ Thus, for } n = 2006, \text{ the sum becomes } \sum_{k \text{ odd}} f(2006, k) = 2^{2006 - 1} = 2^{2005}. </math> | <math>\text{ Thus, for } n = 2006, \text{ the sum becomes } \sum_{k \text{ odd}} f(2006, k) = 2^{2006 - 1} = 2^{2005}. </math> | ||
− | \text{ Therefore, the final answer is } \boxed{2^{2005}}. | + | <math>\text{ Therefore, the final answer is } \boxed{2^{2005}}. </math> |
+ | |||
+ | ~sitar | ||
==See also== | ==See also== |