PSH 2020 P v3 From PG 19-38
PSH 2020 P v3 From PG 19-38
Diophantine Equations
Chapter 1
Diophantine Equations
x + y = 5.
This equation has an infinite number of solutions when the set of real
numbers is considered. As a general rule however, in problem situations
that arise there are other constraints that help us narrow down the
possibilities to a small number of cases or even to a unique solution.
Consider the above equation. If we restrict the possible values of x and
y to non-negative integers (i.e. the positive integers and zero), we have
the six solutions for (x, y):
(0, 5); (1, 4); (2, 3); (3, 2); (4, 1) and (5, 0).
Note also that the pair of values x = 0 and y = 5, for example, represents
one solution to the equation.
9
4 Problem Solving via the AMC
Diophantine Equations
6m + 1 = 11n + 6
i.e. 6m − 11n = 5
10
Diophantine Equations5
Diophantine Equations
x + y + xy = 34,
find x + y.
Alternative 1:
Looking at the left hand side of the equation x + y + xy = 34, we may
see that
x + y + xy = (x + 1)(y + 1) − 1
so that the equation may be written as
(x + 1)(y + 1) = 35
11
6 Problem Solving via the AMC
Diophantine Equations
While we cannot differentiate between the two cases and determine the
actual values for x and y, we can say from the symmetry (or by adding
the equations in either case) that
x+y = 6+4 = 10.
Alternative 2:
If we did recognise the factorisation given above, a standard approach is
to write the equation in such a way that we can systematically list the
possibilities.
This we can do by expressing one of the variables in terms of the other.
In this case it does not matter which of the two variables in terms of the
other as the equation is symmetric in x and y, although in some cases
there may be advantages in choosing a particular one for ease of further
analysis.
In this case, the equation can be rearranged in the following way to
express x in terms of y.
x + y + xy = 34
x + xy = 34 − y
x(1 + y) = 34 − y
34 − y
x =
1+y
Remembering that x and y are integral, we can now substitute integers
for y to obtain the corresponding x.
y 1 2 3 4 5 6 7 ···
33 32 31 30 29 28 27
x =6 =4 ···
2 3 4 5 6 7 8
There are no more integral values until x becomes negative, hence
x+y = 6 + 4 (or 4 + 6) = 10
is the only solution.
If we had noted the symmetry in x and y in the original equation and
29
the fact that < 5, we could have stopped at the entry for y = 5 in
6
12
Diophantine Equations7
Diophantine Equations
Kathryn has 20 coins in her purse. They are 10c, 20c and 50c
coins and the total value of the coins is $5. If she has more 50c
coins than 10c coins, how many 10c coins has she?
Let the number of 50c coins be x and the number of 20c coins be y.
The number of 10c coins is then 20 − (x + y) as there are 20 coins in all.
Since the total value of the coins is $5 = 500 c, we then obtain the
equation
y = 30 − 4x
and remembering that there are 20 coins in all, we can now systematically
list the possibilities.
13
8 Problem Solving via the AMC
Diophantine Equations
Again, we can see there are no solutions for x > 7 as then y would be
negative.
Further Techniques
14
Diophantine Equations9
Diophantine Equations
Alternative 1:
From the given equation
15
10 Problem Solving via the AMC
Diophantine Equations
This formula will give all the integral solutions to the original equation.
In this particular question we have the restriction that only positive
values of x and y are allowed, so the only possible values of w are
w = 0 and − 1
This gives the only values for (x, y) as
(100, 1) and (17, 20).
The other pair we are asked to find is then (17, 20).
Note: This is a general procedure which can be applied to determine
general solutions to similar indeterminate equations.
16
Diophantine Equations11
Diophantine Equations
Alternative 2:
In this particular question, we could have taken a shortcut, using an-
other technique developed by Euclid.
While this may seem to be a magic trick, which in a sense it is, we would
do well to remember what the great problem solver George Polya said
when he stated that a method is a device that you can use twice.
In the example above, we subtract 19 × 83 from the first term (19 × 100)
and add it to the second (83 × 1). The result must remain equal to 1983
and we obtain a second solution of (17, 20).
17
12 Problem Solving via the AMC
Diophantine Equations
If, for example, we had added 19 × 83 to the first term and subtracted
it from the second, we would have obtained the solution (183, −18).
While it is a solution, it does not satisfy the particular constraint in this
question that both x and y are positive integers.
[1983 Percentage Correct:– Intermediate 8%, Senior 9%]
And now for some situations where we have several variables. We often
need to use other properties of numbers as well.
18
Diophantine Equations13
Diophantine Equations
p + q + r + s + t = 5r
as r is the middle integer of the group.
Also, their sum is a cube, so
p + q + r + s + t = m3
for some integer m
Then
5|m3 and 5 is prime, hence 5|m
19
14 Problem Solving via the AMC
Diophantine Equations
***
20
Diophantine Equations
DIOPHANTINE EQUATIONS:
SOLUTIONSDiophantine Equations:
Solutions
D2 Solution
Alternative 1:
Let n be the required integer. From the given information we know that
there are integers x, y and z such that
3x + 1 = n
5y + 1 = n
7z + 5 = n.
3x = 5y = n − 1,
n = (7 × 8) + 5 = 61.
Alternative 2:
From the first two equations above, we know that
n−1 = 15k
n = 15k + 1
21
16 Problem Solving via the AMC
Diophantine Equations
Since all the numbers in this list satisfy the divisibility conditions for
3 and 5, we only need to pick the the smallest of these which gives a
remainder of 5 when divided by 7. Clearly, this number is 61, as before.
[1979 Percentage Correct:– Intermediate 23%, Senior 22%]
D5 Solution
22
Diophantine Equations: Solutions17
Diophantine Equations
x (25c) y ($1) $5
16 21 3
32 2 6
As there are two possible combinations of pens that could have been
bought, we need the extra information, i.e. that there are more $1 pens
than $5 pens, to differentiate between the two possibilities, so x = 16
provides the solution and there are then 16 of the 25c pens.
[1991 Percentage Correct:– Junior 10%, Intermediate 15%]
D6 Solution
x+y+z = 100.
23
18 Problem Solving via the AMC
Diophantine Equations
z = 7, 14, 21, . . .
Now, since article Z costs $10 each, z ≥ 14 is not possible and the only
possibility is z = 7.
This gives the number of articles type Y bought to be 21.
[1984 Percentage Correct:– Intermediate 12% ]
D8 Solution
Alternative 1:
Using the general method developed in D7 Alternative 1,
we get
3x + 5y = 1008
3x = 1008 − 5y
1008 − 5y
x =
3
5y
= 336 −
3
2y
= 336 − y −
3
2y
= 336 − y − u, where u =
3
so that 2y − 3u = 0
24
Diophantine Equations: Solutions19
Diophantine Equations
i.e. 2y = 3u
3u
y =
2
u
= u+
2
u
= u + v, where v =
2
so that u = 2v
substituting, we get
3u 3 × 2v
y = = = 3v
2 2
1008 − 5y
and x =
3
1008 − 5 × 3v
=
3
= 336 − 5v.
So we get
(x, y) = (336 − 5v, 3v) where v is an integer.
If the solutions we are looking for in this problem are positive integers,
then as y = 3v clearly v > 0 and 336 − 5v > 0.
So we see there are 67 solutions, for v = 1 to 67, as
5 × 67 = 335 < 336 and 5 × 68 = 340 > 336.
Alternative 2:
As is sometimes the case, there is a shorter solution to this particular
problem by reasoning as follows:–
since 3x + 5y = 1008
we get 5y = 1008 − 3x
1008 − 3x
y =
5
3(336 − x)
= .
5
Since x and y are both positive integers, we can see that for 336 − x to
be divisible by 5 and y to be a positive integer, the only values for x we
can select are
1, 6, 11, . . . , 331.
25
20 Problem Solving via the AMC
Diophantine Equations
D9 Solution
Further values of y make A negative and hence not square. Thus the
only integer values of x are ±6, ±4, 0.
[1979 Percentage Correct:– Senior 9%]
26
Diophantine Equations: Solutions21
Diophantine Equations
D11 Solution
Alternative 1:
Since x, y, z, u, v are positive integers, x ≤ y ≤ z ≤ u ≤ v and
x + y + z + u + v = xyzuv,
we get
Thus there are three distinct solutions, viz (1,1,1,2,5), (1,1,1,3,3) and
(1,1,2,2,2).
Alternative 2:
Given x, y, z, u and v are integers such that
x≤y≤z≤u≤v . . . (1)
and x + y + z + u + v = xyzuv . . . (2)
dividing (1) by xyzuv we get
27
22 Problem Solving via the AMC
Diophantine Equations
1 1 1
0 < ≤ ≤ ... ≤ . . . (3)
yzuv xzuv xyzu
dividing both sides of (2) by xyzuv we get
1 1
+ ... + = 1 . . . (4)
yzuv xyzu
1
From (3) and (4) we can say that the largest of these five fractions ≥
5
(since 5 of them add to 1).
Hence
1 1
≥
xyzu 5
i.e.
xyzu ≤ 5.
Now, since we have the product of these four integers ≤ 5, then
x = y = 1.
So, trying values for z and equating the sum to the product, we get
***
28