Divisibility For JR Oly
Divisibility For JR Oly
1 Divisibility
Properties:
Let x, y, and z be integers. We have the following basic properties:
(a) x|x (reflexivity property); xx = 1 ∈ Z
(b) If x|y and y|z, then x|z (transitivity property);
y = kx , z = py , z = pkx so x | z
(c) If x|y and x|z, then x|αy + βz for any integers α and β; ie if x|y, then,
x|αy for any integers α .
y = kx so αy = αkx so x | αy and z = px, αy + βz = αkx + βpx = x(αk + βp)
x|αy + βz
(d) If x|y and x|y + z, then x|z;
HW
(e) If x|y and y 6= 0, then |x| ≤ |y|;
−5 | 10 , 5 | (−10) , x = 5,y=-10 but | x |= 5 <| −10 |= 10
1
|x| ≤ |y|; and |y| ≤ |x|;
Applications 1
1. Factorial n! = 1 · 2 · 3 · · · n . for n ∈ N and 0! = 1.
1! = 1 , 2! = 1 · 2 = 2 , 3! = 1 · 2 · 3 = 6, 4! = 1 · 2 · 3 · 4 = 24
Prove that (n + 1)! + 1 has no prime factor less than n.
Does this mean that (n + 1)! + 1 is prime ∀n ∈ N ? (∀-for all)
sol:
F or n = 2 , (n + 1)! + 1 = 3! + 1 = 7 is a prime.
F or n = 3 , (n + 1)! + 1 = 4! + 1 = 25 = 52
F or n = 4 , (n + 1)! + 1 = 5! + 1 = 121 = 1 · 121 = 112 .
F or n = 5 , (n + 1)! + 1 = 6! + 1 = 721 is not a perfect square.
121 doesnot have a prime factor less than 4 but it may have a factor
greater than 4.
Proof: (n + 1)! = 1 · 2 · 3 · · · (n + 1)
So all of these k = 2, 3, · · ·(n + 1) are factors of (n + 1)! .
So any of these k will give remainder 1 when it divides (n + 1)! + 1 .
Hence it can not have a factor less than n except 1.
2. List n consecutive composite integers.
We know that (n + 1)! = 1 · 2 · 3 · · · (n + 1)
So all of these k = 2, 3, · · ·(n + 1) are factors of (n + 1)! .
2 | (n + 1)! + 2 , (n + 1)! + 2 is a composite number.
3 | (n + 1)! + 3 , (n + 1)! + 3 is a composite number.
4 | (n + 1)! + 4 , (n + 1)! + 4 is a composite number.
so on till
(n + 1) | (n + 1)! + (n + 1) , (n + 1)! + (n + 1) is a composite number.
So (n + 1)! + 2, (n + 1)! + 3, (n + 1)! + 4, · · ·, (n + 1)! + (n + 1) are all
2
composite. These are n consecutive composite integers.
3. Find least positive value of a + b where a, b are positive integers such that
11|a + 13b and 13|a + 11b
Symbol a | b means a divides b eg 5 | 55.
11 | a + 13b = (a + 2b) + 11b hence 11 | a + 2b
Hence a+2b
11 = k ∈ Z
Hence there exist some k ∈ Z such that a + 2b = 11k − − − − − (1)
13|a + 11b = a + 13b − 2b = (a − 2b) + 13b
∴ 13 | a − 2b so a−2b
13 = m ∈ Z
a − 2b = 13m − − − − − (2)
Adding
a + 2b = 11k
a − 2b = 13m − − − − − (2)
2a = 11k + 13m . So k, m are both even or both odd.
Subtracting we get
4b = 11k − 13m, Trail and error.k = m = 2
k = 3 and m = 1 , 4b = 33 − 13 = 20 , b = 5
2a = 33 + 13 = 46 , a = 23
The smallest value of a + b = 28
3
As 5 | a1 a2 · · · a5 , so a5 = 5
Also a2 , a4 , a6 ∈ {2, 4, 6}
a1 , a3 ∈ {1, 3}
Also 3 | a1 a2 a3 ie 3 | a1 + a2 + a3 = 4 + a2 hence a2 = 2
As 4| a1 a2 · · · a4 therefore 4| a3 a4 , a4 = 6 a6 = 4
a3 a4 a3 a4
1 12
1 16
3 32
3 36
a1 a2 a3 a4 a5 a6
1 2 3 6 5 4
Possible numbers 3 2 1 6 5 4
p
6. If a natural number n is the m-th power of a rational number q and m is
natural, then it is the m-th power of a natural number.
m
7. Find the number of pairs of natural numbers (m, n) such that a) 0 < n <1
b) gcd (m, n) = 1 c) mn = 25! (RMO 1994)
8. How many numbers , n not greater than 10000 are there such that 2n − n2
is divisible by 7 ?
2 Division Algorithm
Theorem :
For any positive integers a and b there exists a unique pair (q, r) of nonnegative
integers such that b = aq + r and 0 ≤ r < a. We say that q is the quotient and
r the remainder when b is divided by a.
Applications 3
1. If 36|n, then find the possible remainders when 48 divides 2n + 12
4
3. Show that if p > 3 is a prime, then 24|(p2 − 1).
4. Prove that
(a) x − a | xn − an
5. (AHSME1976) Let r be the remainder when 1059,1417 and 2312 are di-
vided by d > 1. Find the value of d − r.
Let an an−1 ...a0 = an · 10n + an−1 · 10n−1 + ... + a0 be the decimal representation
of the number an an−1 ...a0 .
• an an−1 ...a0 ≡ an + an−1 + ... + a0 (mod 3)
• an an−1 ...a0 ≡ an + an−1 + ... + a0 (mod 9)
• an an−1 ...a0 ≡ a1 a0 ≡ 10a1 + a0 ≡ 2a1 + a0 (mod 4)
• an an−1 ...a0 ≡ a2 a1 a0 ≡ 100a2 + 10a1 + a0 ≡ 4a2 + 2a1 + a0 (mod 8)
• an an−1 ...a0 ≡ ak−1 ...a1 a0 (mod 2k )
• an an−1 ...a0 ≡ a0 − a1 + a2 − a3 ... + (−1)n an (mod 11)(alternating sum)
• an an−1 ...a0 ≡ ... + a5 a4 a3 − a5 a4 a3 + a2 a1 a0 (mod 7 or 11or 13)
• an an−1 ...a0 ≡ ... + a5 a4 a3 + a5 a4 a3 + a2 a1 a0 (mod 27 or 37)
Applications 2
1. The integer n is the smallest positive multiple of 15 such that every digit
of n is either 0 or 8. Find n.
2. Let N = an an−1 ...a0 , M =a0 + 4a1 + 4a2 · +... + 4an then, prove that 6|N
iff 6|M .
3. Let Q(n) be the digital sum of n. Show that Q(n) = Q(2n) ⇒ 9|n.
4. Find the smallest natural number n such that it’s decimal representation
has 6 as the last digit and if it’s last digit is shifted to front of the remain-
ing digits and the resulting number is four times the original number.
5
5. Find the smallest natural number n such that it’s decimal representation
has 8 as the last digit and if it’s last digit is shifted to front of the remaining
digits and the resulting number is two times the original number.
6. Determine the number of five-digit positive integers abcde (a, b, c, d, and
e not necessarily distinct) such that the sum of the three-digit numberabc
and the two-digit number de is divisible
7. State and prove the divisibility tests for 2n and 5n .
8. Determine all 3 digit numbers N ,having the property that N is divisible
N
by 11 and 11 is equal to the sum of squares of the digits of N