Maths Olympiad Prep

Library / /3 of 18

Combinatorics Difficulty 5.8 AIME, harder Prove it Argentina

2010 cards are enumerated 1,2,,20101, 2, \dots, 2010. All cards whose number has odd digit sum are chosen. Find the sum of the numbers on the chosen cards.

Solution

Denote the digit sum of aa by S(a)S(a). Add a card with 00 and assume S(0)=0S(0) = 0. Among 0,1,,9990, 1, \dots, 999 there are 500500 numbers aa with S(a)S(a) odd and 500500 with S(a)S(a) even. Indeed 0,1,,9990, 1, \dots, 999 can be divided into 500500 pairs (a,b)(a, b) with sum 999999 of every pair. There is no carryover in the addition a+b=999a+b=999, so S(a)+S(b)=S(999)=27S(a)+S(b) = S(999) = 27 which is an odd number. Hence S(a)S(a) and S(b)S(b) have different parity for every pair (a,b)(a, b), as needed. Let XX (YY) be the sum of the 500500 numbers with odd (even) digit sum among 0,1,,9990, 1, \dots, 999.

For a{0,1,,999}a \in \{0, 1, \dots, 999\} we have S(1000+a)=S(a)+1S(1000 + a) = S(a) + 1, hence S(1000+a)S(1000+a) and S(a)S(a) have different parity. So {1000,1001,,1999}\{1000, 1001, \dots, 1999\} contains 500500 numbers bb with S(b)S(b) odd. They are obtained from the numbers a{0,1,,999}a \in \{0, 1, \dots, 999\} with S(a)S(a) even by adding 10001000.
It follows that the numbers with odd digit sum in {0,1,,1999}\{0, 1, \dots, 1999\} have sum X+Y+5001000X+Y+500\cdot1000. Since X+Y=0+1++999=500999X+Y = 0+1+\dots+999 = 500\cdot999, the numbers in [1,1999][1, 1999] contribute 5001999500 \cdot 1999 to the sum we are looking for. There remain 2000,2001,,20102000, 2001, \dots, 2010. Of them the ones with odd digit sum are 2001,2003,2005,2007,2009,20102001, 2003, 2005, 2007, 2009, 2010; they add up to 1203512035. So the final answer is 5001999+12035=1011535500 \cdot 1999 + 12035 = 1011535.

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.