Maths Olympiad Prep

Library / /10 of 17

, 2007

Number theory Difficulty 6.1 National olympiad Prove it Japan

There are some cards with positive integers on them, and the sum of these integers is 20072007. For any integer 1k20061 \le k \le 2006 we can choose some cards so that the sum of the numbers written on those cards is kk, and there is only one way (if cards with same number are considered to be the same) to do so for each kk. How many kinds of such a set of cards are possible?

Solution

Let there be kk kinds of numbers on the cards. Let a1<a2<<aka_1 < a_2 < \dots < a_k be these numbers and each number is written on p1,p2,,pkp_1, p_2, \dots, p_k cards respectively. We will show (p1+1)(p2+1)(pn+1)=2008(p_1+1)(p_2+1)\dots(p_n+1) = 2008, a1=1a_1 = 1 and ai=(p1+1)(p2+1)(pi1+1)a_i = (p_1+1)(p_2+1)\dots(p_{i-1}+1) (1<ik1 < i \le k).

Since it is able to choose some cards which sum up to 11, a1=1a_1 = 1. Only the numbers less than or equal to p1p_1 can be made with a1a_1s, so if k2k \ge 2 we get a2=p1+1a_2 = p_1+1. Then only the numbers less than or equal to a1p1+a2p2=(p1+1)(p2+1)1a_1p_1 + a_2p_2 = (p_1+1)(p_2+1) - 1 can be made with a1a_1s and a2a_2s, so if k3k \ge 3 we get a3=(p1+1)(p2+1)a_3 = (p_1+1)(p_2+1). Continuing this argument we get ai=(p1+1)(p2+1)(pi1+1)a_i = (p_1+1)(p_2+1)\cdots(p_{i-1}+1) for 1<ik1 < i \le k. Since a1p1+a2p2++akpk=2007a_1p_1 + a_2p_2 + \cdots + a_kp_k = 2007, (p1+1)(p2+1)(pn+1)=2007+1=2008(p_1+1)(p_2+1)\cdots(p_n+1) = 2007+1 = 2008.

On the other hand, given some positive integers p1,p2,,pkp_1, p_2, \dots, p_k with (p1+1)(p2+1)(pn+1)=2008(p_1+1)(p_2+1)\cdots(p_n+1) = 2008, letting a1=1a_1 = 1 and ai=(p1+1)(p2+1)(pi1+1)a_i = (p_1+1)(p_2+1)\cdots(p_{i-1}+1) (1<ik1 < i \le k) satisfies the condition.

So all we have to do is to count (p1,p2,,pk)(p_1, p_2, \dots, p_k) which (p1+1)(p2+1)(pn+1)=2008(p_1+1)(p_2+1)\cdots(p_n+1) = 2008 holds. Since 2008=23×2512008 = 2^3 \times 251 and 22 and 251251 are primes, (p1+1)×(p2+1)××(pn+1)(p_1+1) \times (p_2+1) \times \cdots \times (p_n+1) must be 2008,2×1004,4×502,8×251,2×2×502,2×4×251,2×2×2×2512008, 2 \times 1004, 4 \times 502, 8 \times 251, 2 \times 2 \times 502, 2 \times 4 \times 251, 2 \times 2 \times 2 \times 251 or one of their permutations. There are 1,2,2,2,3,6,41, 2, 2, 2, 3, 6, 4 possible permutations respectively, so the answer is 1+2+2+2+3+6+4=201+2+2+2+3+6+4=20.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.