Maths Olympiad Prep

Library / /13 of 18

Number theory Difficulty 6.7 National olympiad Prove it Belarus

a) After division of a positive integer nn by two positive integers one has two remainders different from zero.
Is it possible for nn to be the sum of these two remainders?

b) After division of a positive integer nn by 2929, 3939, and 5959 one has three nonzero remainders such that their sum is equal to nn.
Find all possible values of nn.

Solution

a) Let n=aq1+r1=bq2+r2n = a q_1 + r_1 = b q_2 + r_2, a,bNa, b \in \mathbb{N}, a<ba < b, r10r_1 \neq 0, r20r_2 \neq 0. Suppose that n=r1+r2n = r_1 + r_2. Then n=aq1+r1=bq2+r2=r1+r2n = a q_1 + r_1 = b q_2 + r_2 = r_1 + r_2, (q10q_1 \ge 0, q20q_2 \ge 0) and r1<ar_1 < a, r2<br_2 < b, so bq2=r1<abb q_2 = r_1 < a \le b. The inequality bq2<bb q_2 < b holds only if q2=0q_2 = 0. But then r1=bq2=b0=0r_1 = b q_2 = b \cdot 0 = 0, a contradiction.

b) Let, by condition,
n=29q1+r1=39q2+r2=59q3+r3=r1+r2+r3, n = 29 q_1 + r_1 = 39 q_2 + r_2 = 59 q_3 + r_3 = r_1 + r_2 + r_3,
r1<29r_1 < 29, r2<39r_2 < 39, r3<59r_3 < 59. From these inequalities it follows that 59q3=r1+r228+38=6659 q_3 = r_1 + r_2 \le 28 + 38 = 66, so q3=1q_3 = 1. Then
r1+r2=59.(1) r_1 + r_2 = 59. \quad (1)
Further, 39q2=r1+r328+58=8639 q_2 = r_1 + r_3 \le 28 + 58 = 86, so q22q_2 \le 2.
Consider two cases:
1) q2=1q_2 = 1. Then
r1+r3=39.(2) r_1 + r_3 = 39. \quad (2)
98=59+39=r1+r2+r1+r3=n+r1=29q1+2r1,98 = 59 + 39 = r_1 + r_2 + r_1 + r_3 = n + r_1 = 29 q_1 + 2 r_1,
i.e., 29q1+2r1=9829 q_1 + 2 r_1 = 98, so q1q_1 is even and 29q1<9829 q_1 < 98, hence q1=2q_1 = 2. Then r1=12(98229)=20r_1 = \frac{1}{2}(98 - 2 \cdot 29) = 20. But from (1) it follows that r2=5920=39r_2 = 59 - 20 = 39, which is impossible since r2<39r_2 < 39.

2) q2=2q_2 = 2. Then
r1+r3=nr2=39q2=78.(3) r_1 + r_3 = n - r_2 = 39 q_2 = 78. \qquad (3)
Then from (1) and (3) we obtain 29q1+2r1=13729 q_1 + 2 r_1 = 137, so q1q_1 is odd and 29q1<13729 q_1 < 137, hence either q1=1q_1 = 1 or q1=3q_1 = 3. If q1=1q_1 = 1, then 2r1=1082 r_1 = 108, i.e., r1=54r_1 = 54, a contradiction. If q1=3q_1 = 3, then r1=25r_1 = 25, r2=34r_2 = 34, r3=53r_3 = 53, and n=25+34+53=112n = 25 + 34 + 53 = 112, which satisfies the problem condition.

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.