Maths Olympiad Prep

Library / /106 of 129

, 2012

Combinatorics Difficulty 6.1 National Olympiad Prove it Slovenia

Jure put 20122012 black marbles into a sequence. Then he replaced every third marble in the sequence by a red marble. After that he replaced every fifth marble in the sequence by a yellow marble. At the end, he replaced every seventh black marble in the sequence by a blue marble. How many black marbles were there in the sequence at the end?

Solution

Number the marbles with numbers from 11 to 20122012 in the order they stand in the sequence. Let us first calculate how many black marbles were there in the sequence after the second step. Jure replaced exactly those black marbles (by red or yellow ones) whose number was divisible by 33 or 55. Because 2012=6703+2=4025+2=13415+22012 = 670 \cdot 3 + 2 = 402 \cdot 5 + 2 = 134 \cdot 15 + 2, exactly 670+402134=938670 + 402 - 134 = 938 black marbles were replaced. Right after the second step there were thus 10741074 black marbles in the sequence. Because 1074=1537+31074 = 153 \cdot 7 + 3, Jure replaced 153153 black marbles (by blue ones) in the third step. At the end, there were 1074153=9211074 - 153 = 921 black marbles in the sequence.

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 reproduced verbatim; metadata (topic, difficulty) added by this project.