Solving number theory problems with cyclic and symmetric variables

Huy Nguyen, Tam Nguyen

Le Hong Phong High School - July 11, 2013

Abstract

The beauty of many algebraic problems (solving system of equations, proving inequality, ...) comes from the symmetric / cyclic properties of its variables. These properties also exist in a class of number theory problems, but require a different approach to utilize, as the variables in this context are often natural numbers or integers, instead of real numbers. In this article we mention two directions that can be taken into account to solve a variety of cyclic problems. The reader is encouraged to gain familiarity with the technique of Vieta jumping and the concept of p-adic order νp(n), both of which are employed throughout this writing.

1 Turning cyclicity into symmetry

This method is often used in divisibility problems with cyclic conditions

a | f(b), b | f (a).

If gcd(a,b) = 1, we can construct two functions g : and h : 2 such that:

It then follows that

a | h(a,b), b | h(a,b) ⇒ ab | h(a,b) ⇒ h (a, b) = k ⋅ ab,
(1)

for some k . (1) is a two-variable equation in terms of a and b. If deg h = 1 we can use inequalities to restrict the domain of a and b to a finite subset of . If deg h = 2 we can use Vieta jumping to solve (1).

Without gcd(a,b) = 1, we still have abf(a)f(b). We can then expand the RHS and remove all multiples of ab, essentially ending up with an equation similar to (1).

Example 1. Find prime numbers p q such that

q - 1 | 3p - 1, p - 1 | 3q - 1.

Solution. Let a = p - 1, b = q - 1 then a b 1 and

a | 3(b + 1) - 1, b | 3 (a + 1) - 1,
which implies
ab | (3a + 2)(3b + 2) ⇔  ab | 6a + 6b + 4.
As a,b are positive integers, divisibility implies that
                    6   6    4
6a + 6b + 4 ≥ ab ⇒  --+ --+  ---≥ 1.
                    a    b   ab
On the other hand, because a b,
12    4    6   6    4
---+ -- ≥  --+ --+ ---.
 b   b2    a   b   ab
We now get a one-variable inequality,
12-   4-        2
 b +  b2 ≥ 1 ⇔  b - 12b - 4 ≤ 0 ⇔  1 ≤ b ≤ 12.
Note that b + 1 = q is prime so b ∈{1, 2, 4, 6, 10, 12}. Knowing b, we can easily infer a:




bCondition for aValues of a



1 a6a + 6 + 4 {1, 2, 10}



2 2a6a + 12 + 4 {2, 4}



4 4a6a + 24 + 4 {6, 10}



6 6a6a + 36 + 4



1010a6a + 60 + 4 {16}



1212a6a + 72 + 4



Hence all possible values of (p,q) are (2, 2); (3, 3); (5, 3); (7, 5); (17, 11). __

Example 2. Find the number of tuples (a,b,c) where a < b < c are positive and pairwise coprime integers satisfying

a | bc - 31, b | ca - 31, c | ab - 31.

Solution. As abc - 31 and aa(b + c) we have

a | ab + bc + ca - 31.
Similar arguments apply to b and c. Since a,b,c are pairwise coprime,
abc | ab + bc + ca - 31.
(2)

Now consider the following cases:

Hence we conclude that there are in total 17 possible tuples (a,b,c). __

Remark 1. In the previous two examples, we try to arrive at a condition of the form

xy  | αx + βy + γ.
We can then use algebraic manipulations to restrict |x| and |y|, since if |x| and |y| gets too large, |xy| will quickly outgrow |αx+βy+γ|, which means the divisibility condition cannot be satisfied. This illustrates our initial point that if deg h = 1 we can use inequalities.
In case deg h > 1, however, pure algebraic manipulations are no longer effective. Instead, an effective way to tackle higher degree polynomials is Vieta jumping.

Example 3. Find all primes p < q < 1000 satisfying

    3          3
q | p - 1, p | q - 1.

Solution. From

q | p3 - 1 = (p - 1)(q2 + q + 1)
and q > p > p - 1 we have qp2 + p + 1.
Also pq3 - 1 = (q - 1)(q2 + q + 1), so either pq - 1 or pq2 + q + 1.

In conclusion, all possible values of p and q are (2, 7); (3, 13); (5, 31); (13, 61); (17, 307). __

2 Imposing orders on the variables

If the variables are symmetric, we can sort them in ascending or descending order. If the variables are cyclic, we can point out one variable with some maximum / minimum property.

Example 4. Consider arbitrary positive numbers a,b,c. Denote (a,b) and [a,b] as the greatest common divisors and lowest common multiples of a and b respectively. Prove that

(a,b) ⋅-(b,c)-⋅ (c,a) [a,b] ⋅ [b,c] ⋅ [c,a]
     (a,b,c)2      =      [a,b,c]2     .

Solution. Let L and R denote the LHS and RHS of the equality repspectively. Consider an arbitrary prime p. If p [a,b,c] then it’s obvious that νp(L) = νp(R) = 0. On the other hand, if p[a,b,c] then either pa or pb or pc. Let x = νp(a), y = νp(b), z = νp(c). As a,b,c are symmetric, WLOG assume x y z, then

νp(L) = y + z + z - 2z = y
νp(R) = x + y + x - 2x = y
Hence νp(L) = νp(R) as well. In other words, for any prime p, νp(L) = νp(R), so L and R have the same prime factorization. By the fundamental theorem of arithmetic, L = R. __

Example 5. Find prime numbers p,q satisfying

pq | (5p - 2p)(5q - 2q).

Solution. WLOG assume p q. Consider the following cases:

In conclusion, all possible values of (p,q) are (3, 3); (3, 13); (13, 3). __

Example 6. Find prime numbers p,q satisfying

pq | 2p + 2q.

Solution. First note that for any x , gcd(x - 1,x + 1) = gcd(2,x + 1) 2.
WLOG assume p q. If p = q then p22p+1 p = q = 2. If p > q:

__

Example 7. Consider positive integers x,y,z where (xy +1)(yz +1)(zx+1) is a square. Prove that each of xy + 1,yz + 1 and zx + 1 is also a square.

Solution. Let S = {(x,y,z)(xy + 1)(yz + 1)(zx + 1) is square}. Consider the tuple (x,y,z) S where x + y + z is smallest. WLOG assume z = max{x,y,z}.
Let t be a root of the equation.

t2 + x2 + y2 + z2 - 2(xy + yz + zt + tx + zx + ty) - 4xyzt - 4 = 0.
which is equivalent to
 2                           2   2    2
t - 2t(x + y + z + 2xyz ) + x + y  + z  - 2(xy + yz + zx ) - 4 = 0.
(10)

Note that (10) is equivalent to the following three equations:

(x + y - z - t)2 = 4(xy + 1)(zt + 1) (11)
(x + z - y - t)2 = 4(xz + 1)(yt + 1) (12)
(x + t - y - z)2 = 4(xt + 1)(yz + 1) (13)
and that t because (10) has two integer solutions
                           ∘ -------------------------
t1,2 = x + y + z + 2xyz ±  2  (xy + 1)(yz + 1)(zx + 1).
Multiplying the LHSs and RHSs of (11), (12), (13) together yields
 [(x + y + z - t)(x + z - y - t)(x + t - y - z)]2
=  [8(xy + 1)(yz + 1)(zx + 1)]2 [(xt + 1)(yt + 1)(zt + 1)],
so (xt + 1)(yt + 1)(zt + 1) is a square. We also have xt + 1,yt + 1,zt + 1 0 and max{x,y,z} > 1 because x = y = z = 1 isn’t valid. Hence
t > ------1------> - 1.
    max {x,y,z }
Now consider two cases:

In conclusion, each of xy + 1,yz + 1 and zx + 1 is a square. __

Example 8. Find all integers a,b,c satisfying

(
||  2
|||{ a -  bc = 91
   2
| b - ca =  91
||||
( c2 - ab = 91

Solution. WLOG assume a b c. As 91 is not a square, we have a,b,c0.
If a 0 and b,c 0 so a2 - bc < 0 < 91, which is false. Hence a < 0.
Also observe that if (a,b,c) satisfies the system of equations then so does (-a,-b,-c). Hence we only need to consider the tuples (a,b,c) where c > 0.
Now if b = c then

 2    2         2          2         2
a  - b  = 91 = b  - ab ⇒  a + ab - 2b  = (a - b)(a + 2b) = 0
which implies either a = b or a = -2b. If a = b then a = b = c so a2 - bc = 0, which is false. If a = -2b then 5b2 = 91, which is also false. Hence it must be the case that bc. By similar arguments, ab. Now consider two cases:

In conclusion, all possible values of (a,b,c) are (-10, 1, 9), (10,-1,-9), (-11, 5, 6), (11,-5,-6), (-9,-1, 10), (9, 1,-10), (-6,-5, 11), and their permutations. __

3 Further practices

Practice 1 (APMO 2002). Find all positive integers a,b satisfying

b2 - a | a2 + b, a2 - b | b2 + a.

Practice 2. Prove that there are infinitely many positive integers a,b,c such that

ab + 1,bc + 1 and ca + 1
are all squares.

Practice 3. Find positive and pairwise coprime integers x,y,z satisfying

x-+ y-+  z-∈ ℕ *.
y   z    x

Practice 4. Find integers 2 x y z satisfying

z | xy - 1, y | zx - 1, x | yz - 1.

Practice 5. Find all positive and pairwise distinct integers a,b,c > 1 satisfying

(a - 1)(b - 1)(c - 1) | abc - 1.

Practice 6. Prove that for any positive integers a,b,n, we have

(36a + b)(36b + a) ⁄= 2n.

Practice 7 (VMO 2012). Find all positive odd integers a,b satisfying

a | b2 + 2, b | a2 + 2.

Practice 8 (VMO 2013). Find all positive integers a,b,c,a,b,c′∈{0, 1,, 14} satisfying

ab + ab 1 (mod 15)
bc + bc 1 (mod 15)
ca + ca 1 (mod 15)