Maths Olympiad Prep

Library / Vietnamese Mathematical Olympiad /64 of 68

Vietnamese Mathematical Olympiad

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 n≥250n \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=ab−a−bN_0 = ab - a - b.

a) Let aa be the satisfying value. A natural number nn is called 'nice' if there exists x,y,z∈Nx, y, z \in \mathbb{N} such that
a2x+6ay+36z=n. a^2x + 6a y + 36z = n.
By choosing n=301n = 301, we have a2x≡1(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
36a−a−36=35a−36. 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 n≥35a−35n \ge 35a - 35 which means 250≥35a−35250 \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+36z≡z(mod7) hence z≡6(mod7). 251 = 49x + 42y + 36z \equiv z \pmod{7} \text{ hence } z \equiv 6 \pmod{7}.
This means z≥6z \ge 6. On the other hand, z≤251/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 n≥250n \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 k≥50k \ge 50, the equation becomes
25x+30y=n−36r=5k−35r⇔5x+6y=k−7r. 25x + 30y = n - 36r = 5k - 35r \Leftrightarrow 5x + 6y = k - 7r.
However, k−7r≥50−28=22>30−5−6k-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+ab2−a2−b2−ab+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 m≥Nm \ge N.

* In case m≥Nm \ge N, choosing z=mb−2z = m b^{-2} (mod aa) (0≤z<a0 \le z < a) and we need to prove that there exists x,y∈Nx, y \in \mathbb{N} such that the equation
ax+by=m−b2za ax + by = \frac{m - b^2 z}{a}
has natural solution. Note that
m−b2za≥N−b2(a−1)a>a2b−a2−aba=ab−a−b \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+ab2−a2−b2−abm = 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 a2x≡−a2(modb)a^2x \equiv -a^2 \pmod{b}, b2z≡−b2(moda)b^2z \equiv -b^2 \pmod{a} which is equivalent to
x≡−1(modb),z≡−1(moda). x \equiv -1 \pmod{b}, z \equiv -1 \pmod{a}.
Then x≥b−1,z≥a−1x \ge b - 1, z \ge a - 1 which leads to
y≤m−a2(b−1)−b2(a−1)ab=−1. y \le \frac{m - a^2(b - 1) - b^2(a - 1)}{ab} = -1.
That is a contradiction since y≥0y \ge 0.

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

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

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.