Maths Olympiad Prep

Library / /50 of 53

Number theory Difficulty 7.5 National olympiad, round 2 Prove it Vietnam

For positive integers aa, nn; consider the following equation:
a2x+6ay+36z=n a^2x + 6a y + 36z = n
where xx, yy, zz are non-negative natural numbers.

a) Find all integers aa such that for all n250n \ge 250, the given equation always has natural roots (x,y,z)(x, y, z).

b) Given that a>1a > 1 and gcd(a,6)=1\gcd(a, 6) = 1. Find the greatest value of nn in terms of aa such that the given equation doesn't have natural root (x,y,z)(x, y, z).

Solution

We first state a well-known lemma
Lemma. (Sylvester's theorem) For two positive integers aa and bb such that gcd(a,b)=1\gcd(a, b) = 1, the largest integer that could not be written in the form ax+bya x + b y where xx and yy are non-negative integers is N0=ababN_0 = ab - a - b.

a) Let aa be the satisfying value. A natural number nn is called 'nice' if there exists x,y,zNx, y, z \in \mathbb{N} such that
a2x+6ay+36z=n. a^2x + 6a y + 36z = n.
By choosing n=301n = 301, we have a2x1(mod6)a^2x \equiv 1 \pmod{6} then gcd(a,6)=1\gcd(a, 6) = 1, which implies gcd(a,36)=1\gcd(a, 36) = 1. Moreover, by applying the Sylvester's theorem for aa and 3636, the largest number could not be written in the form ax1+36y1a x_1 + 36 y_1 is
36aa36=35a36. 36a - a - 36 = 35a - 36.
However,
n=a2x+6ay+36z=a(ax+6y)+36z=ax1+36y1, n = a^2x + 6a y + 36z = a(ax + 6y) + 36z = a x_1 + 36 y_1,
hence n35a35n \ge 35a - 35 which means 25035a35250 \ge 35a - 35 or a<9a < 9. Since gcd(a,6)=1\gcd(a, 6) = 1, we conclude a{1,5,7}a \in \{1, 5, 7\}.

* For a=7a = 7, the equation becomes n=49x+42y+36zn = 49x + 42y + 36z and by putting n=251n = 251, we get
251=49x+42y+36zz(mod7) hence z6(mod7). 251 = 49x + 42y + 36z \equiv z \pmod{7} \text{ hence } z \equiv 6 \pmod{7}.
This means z6z \ge 6. On the other hand, z251/36<13z \le 251/36 < 13 then z=6z = 6. The equation becomes 7x+6y=57x + 6y = 5, which has no natural solution then a=7a = 7 is not satisfied.

* For a=1a = 1, the equation always has a solution (x,y,z)=(n,0,0)(x, y, z) = (n, 0, 0).

* For a=5a = 5, we have to show that for n250n \ge 250, there exists (x,y,z)N3(x, y, z) \in \mathbb{N}^3 such that
25x+30y+36z=n. 25x + 30y + 36z = n.
Putting n=5k+r,z=rn = 5k + r, z = r where r<5r < 5 and k50k \ge 50, the equation becomes
25x+30y=n36r=5k35r5x+6y=k7r. 25x + 30y = n - 36r = 5k - 35r \Leftrightarrow 5x + 6y = k - 7r.
However, k7r5028=22>3056k-7r \ge 50-28 = 22 > 30-5-6 then by Sylvester's theorem, the equation always has natural solution.

b) We prove a general result: Let a,ba, b be two coprime positive integers. Then
N=a2b+ab2a2b2ab+1 N = a^2b + ab^2 - a^2 - b^2 - ab + 1
is the smallest positive integer which the equation a2x+aby+b2z=ma^2x + ab y + b^2z = m has natural solution for all mNm \ge N.

* In case mNm \ge N, choosing z=mb2z = m b^{-2} (mod aa) (0z<a0 \le z < a) and we need to prove that there exists x,yNx, y \in \mathbb{N} such that the equation
ax+by=mb2za ax + by = \frac{m - b^2 z}{a}
has natural solution. Note that
mb2zaNb2(a1)a>a2ba2aba=abab \frac{m - b^2 z}{a} \ge \frac{N - b^2(a - 1)}{a} > \frac{a^2 b - a^2 - ab}{a} = ab - a - b
then the equation always has a natural solution by Sylvester's theorem.

* If m<Nm < N, let m=a2b+ab2a2b2abm = a^2b + ab^2 - a^2 - b^2 - ab and assume that there exists a triple (x,y,z)N3(x, y, z) \in \mathbb{N}^3 such that
a2x+aby+b2z=m a^2x + ab y + b^2z = m
hence a2xa2(modb)a^2x \equiv -a^2 \pmod{b}, b2zb2(moda)b^2z \equiv -b^2 \pmod{a} which is equivalent to
x1(modb),z1(moda). x \equiv -1 \pmod{b}, z \equiv -1 \pmod{a}.
Then xb1,za1x \ge b - 1, z \ge a - 1 which leads to
yma2(b1)b2(a1)ab=1. y \le \frac{m - a^2(b - 1) - b^2(a - 1)}{ab} = -1.
That is a contradiction since y0y \ge 0.

Applying this result, we conclude that the greatest value of nn is 5a2+30a365a^2 + 30a - 36. \square

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.