0% found this document useful (0 votes)
13 views9 pages

Divisibility

The document covers various concepts in number theory including divisibility, greatest common divisor (GCD), least common multiple (LCM), and modular arithmetic. It presents theorems, properties, and methods such as the Euclidean algorithm for finding GCD, as well as divisibility tests for various integers. Additionally, it discusses arithmetic functions, including the number of divisors and Euler's totient function, and provides methods for converting numbers between different base systems.

Uploaded by

keshav bhutada
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views9 pages

Divisibility

The document covers various concepts in number theory including divisibility, greatest common divisor (GCD), least common multiple (LCM), and modular arithmetic. It presents theorems, properties, and methods such as the Euclidean algorithm for finding GCD, as well as divisibility tests for various integers. Additionally, it discusses arithmetic functions, including the number of divisors and Euler's totient function, and provides methods for converting numbers between different base systems.

Uploaded by

keshav bhutada
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

1 Divisibility

Divisibility: A number n is divisible by m if n is a multiple of m. Also, we say m divides n


and write this symbolically as m | n.

Theorem: Let x, y, z be integers.

• x | x ∀ x ̸= 0

• 1|x ∀x

• x | 0 ∀ x ̸= 0

• x | y and y | z =⇒ x | z

• If x | y, we can find an integer k so that y = kx. Here, k can be negative.

Theorem: If x | y for two integers, then either y = 0 or |y| ≥ |x|.

Theorem: Suppose c | x, y. Then c | ax + by for any a, b ∈ Z.

Illustration: Find positive n such that n | n2 + n + 2

sol. We know that n | n2 + n, therefore considering x = n2 + n + 2, and y = n2 + n, a = 1 and


b = −1 in the previous theorem, we may say that:

n | n2 + n + 2 − 1(n2 + n) =⇒ n | 2 =⇒ n = 1, 2.

Lemma: x | y and y | x =⇒ x = ±y

Euclid’s Division Lemma: Given two integers, a (the dividend) and b (the divisor), where
b ̸= 0, there exist unique integers q (the quotient) and r (the remainder) such that: a = bq + r
where 0 ≤ r < |b|.

Fundamental Theorem of Arithmetic: Any natural number greater than 1 has a unique
prime factorization upto order.

Prime Factorization Multiset: The prime factorization multiset of an integer n is a multiset


where each prime factor pi appears ei times. Let P be the set of all prime numbers. For a given
(e ) (e ) (e )
integer n, define the multiset N as: N = {p1 1 , p2 2 , . . . , pk k }

=⇒ N = {p1 , p1 , . . . , p1 , p2 , p2 , . . . , p2 , . . . , pk , pk , . . . , pk }
| {z } | {z } | {z }
e1 times e2 times ek times

Greatest Common Divisor: The Greatest Common Divisor (GCD) of two or more inte-
gers is the largest positive integer that divides each of the given numbers without leaving a
remainder. It represents the greatest shared factor among the numbers.

Properties of GCD: Here we denote the greatest common divisor of a and b by (a, b).

1. For any positive m, (mb, mc) = m(b, c)

2. If d | b and d | c and d > 0, then (b/d, c/d) = (1/d) (b, c)

1
3. If (b, c) = g, (b/g, c/g) = 1

4. If (b, c) = g, then there exist 2 integers x and y such that g = xb + yc

5. If (a, b) = 1 and (a, c) = 1, then (a, bc) = 1

6. If a | bc and (a, b) = 1, then a | c

7. if a | b, then (a, b) = a

8. If b = aq + r, 0 ≤ r ≤ |a|, then (a, b) = (a, r)

9. If (a, b) = 1, then (a, na + b) = (an + b, b) = 1

10. (a, b) = (a, a + nb) = (an + b, b)

11. (a, b) = (a, a − b)

12. If d = (a, b), a = da′ , b = db′ , then (a′ , b′ ) = 1.

13. If px || a and py || b, then pmin(x,y) || (a, b)

14. gcd(gcd(m, n), p) = gcd(m, gcd(n, p)); proving that gcd(m, n, p) is well defined.

15. If d | ai for i = 1, 2, ..., s, then d | gcd(a1 , a2 , ..., as )

Least Common Multiple: The Least Common Multiple (LCM) of two or more integers is
the smallest positive integer that is a multiple of each of the given numbers. It represents the
smallest number that both (or all) given numbers can divide evenly. We denote the LCM of a
and b by [a, b].

gcd(a, b) × lcm(a, b) = ab

Divisibility Tests:

1. Divisibility by 2: A number is divisible by 2 if its last digit is even (0, 2, 4, 6, 8).

2. Divisibility by 3: A number is divisible by 3 if the sum of its digits is divisible by 3.

3. Divisibility by 4: A number is divisible by 4 if the last two digits form a number divisible
by 4.

4. Divisibility by 5: A number is divisible by 5 if its last digit is 0 or 5.

5. Divisibility by 6: A number is divisible by 6 if it is divisible by both 2 and 3.

6. Divisibility by 7: A number is divisible by 7 if the difference between twice the last


digit and the rest of the number is divisible by 7.

7. Divisibility by 8: A number is divisible by 8 if the last three digits form a number


divisible by 8.

8. Divisibility by 9: A number is divisible by 9 if the sum of its digits is divisible by 9.

9. Divisibility by 10: A number is divisible by 10 if its last digit is 0.

10. Divisibility by 11: A number is divisible by 11 if the alternating sum of its digits is
divisible by 11.

11. Divisibility by 12: A number is divisible by 12 if it is divisible by both 3 and 4.

2
12. Divisibility by 13: A number is divisible by 13 if the difference between 9 times the last
digit and the rest of the number is divisible by 13.

13. Divisibility by 14: A number is divisible by 14 if it is divisible by both 2 and 7.

14. Divisibility by 15: A number is divisible by 15 if it is divisible by both 3 and 5.

15. Divisibility by 17: A number is divisible by 17 if the difference between 5 times the last
digit and the rest of the number is divisible by 17.

16. Divisibility by 25: A number is divisible by 25 if its last two digits are 00, 25, 50, or 75.

17. Divisibility by 125: A number is divisible by 125 if the number formed by its last three
digits is divisible by 125.

Euclidean Algorithm

The Euclidean algorithm is a method for finding the greatest common divisor (GCD) of two
integers. It operates on the principle that the GCD of two numbers remains unchanged if the
larger number is replaced by its remainder when divided by the smaller number, iteratively.
Here’s a simplified breakdown:

1. Step 1: Given two integers a and b, where a is greater than or equal to b, divide a by b
to get a quotient q and a remainder r.

2. Step 2: If r is zero, then b is the GCD of a and b. If r is non-zero, proceed to the next
step.

3. Step 3: Replace a by b and b by r, and repeat Step 1 with the new values.

4. Step 4: Continue this process until the remainder becomes zero. The GCD is the last
non-zero remainder obtained.

Lemma: Let a, b be integers. We can write a = bq + r for integers q,r where 0 ≤ r < b. Then
the lemma states that: (a, b) = (r, b) =⇒ (a, b) = (a ± kb, b)

Illustration: Find gcd(760, 100)

sol. (720, 100) = (100, 720 − 7(100)) = (100, 20) = 20

Note: Any prime greater than 3 is of the form 6k + 1 or 6k + 5.

Bezout’s Theorem: Let a, b be integers. Then the equation ax + by = n has a solution


if and only if (a, b) divides n.

Base Systems: Base systems are methods of representing numbers using a set of digits and
a base. The base determines the number of unique digits, including zero, that a positional
numeral system uses to represent numbers.

Positional Notation: Each digit in a number has a position, and the value of the digit is
determined by its position (place value) as well as the base. A number dn dn−1 . . . d1 d0 in base
b is interpreted as: dn × bn + dn−1 × bn−1 + · · · + d1 × b1 + d0 × b0

Converting a Number from Any Base to the Decimal System:

3
To convert a number from base b to the decimal (base 10) system, follow these steps:

1. Identify the Digits and Base:

• Let the number in base b be represented as dn dn−1 . . . d1 d0 .

2. Expand the Number:

• Express the number as a sum of its digits multiplied by the corresponding powers of
the base b:
N10 = dn · bn + dn−1 · bn−1 + · · · + d1 · b1 + d0 · b0

3. Compute the Value:

• Calculate the value of each term and sum them up to get the number in decimal.

Converting a Number from the Decimal System to Any Other System

To convert a number from the decimal (base 10) system to any other base, follow these steps:

1. Divide by the Desired Base:

• Divide the decimal number by the desired base.

2. Collect Remainders:

• Keep track of the remainders obtained at each step.

3. Reverse Remainders:

• The remainders, read from bottom to top, represent the digits of the number in the
desired base.

Converting a Number from any System to any Other System

to convert a number from one number system to another one may convert to decimal and
then to the desired system.

Theorem: Any number n has a unique representation in base l.

4
2 Modular Arithmetic
Congruences: If a and b are integers and m is a positive integer, then a is said to be b modulo
m if m | a − b. The congruence is denoted as a ≡ b (mod m). An alternate way to define a
congruence is by saying that if a ≡ b (mod m), then a leaves remainder b when divided by m.

Proposition 1: For integers a, b, c and n ̸= 0, we have

1. a ≡ a (mod n).

2. If a ≡ b (mod n) and b ≡ c (mod n), then a ≡ c (mod n).

3. If a ≡ b (mod n), then b ≡ a (mod n).

4. a ≡ b (mod n) iff a ≡ b (mod − n).

Proposition 2: If a ≡ b (mod m) and c ≡ d (mod m), then a ± c ≡ b ± d (mod m) and


ac ≡ bd (mod m). In other words congruences (to the same modulus) can be added, subtracted
and also multiplied to give other congruences.

Proposition 6: a ≡ b (mod m) =⇒ ax ≡ bx (mod m) and ak ≡ bk (mod m).

Theorem: ka ≡ kb (mod m) =⇒ a ≡ b (mod m) iff (k, m) = 1.

Fermat’s Theorem: If p is prime and a is any integer co-prime to p, then ap−1 ≡ 1 (mod p)

Illustration: Find the remainder when 3100 is divided by 7.

sol. By Fermat’s Theorem: 36 ≡ 1 (mod 7) =⇒ (36 )16 = 396 ≡ 116 ≡ 1 (mod 7) =⇒


396 · 34 = 3100 ≡ 1 · (34 ) ≡ 4 (mod 7). Therefore 3100 leaves remainder 4 when divided by 7.

Corollary: If p is prime and n any integer, then np ≡ n (mod p)

Wilson’s Theorem: If p is prime, then (p − 1)! ≡ −1 (mod p).

Illustration: Find the remainder when 5 · 6! is divided by 7

sol. By Wilson’s Theorem: 6! ≡ −1 (mod 7) =⇒ 5 · 6! ≡ −1 · 5 (mod 7) =⇒ 5 · 6! ≡ −5 ≡ 2


(mod 7).

The Converse of Wilson’s Theorem: If n | (n − 1)! + 1, then n is prime.

5
3 Arithmetic Functions
Arithmetic Function: An arithmetic function, often called as a number-theoretic function,
is a function f : N → C.

Multiplicative Function: A multiplicative function is a function f : N → C that satis-


fies the following property: f (mn) = f (m)f (n) for all pairs of positive integers m and n that
are coprime. It is called completely multiplicative if f (mn) = f (n)f (m) ∀ m, n.

The Number of Divisors: The number of divisors of an integer n = pa11 pa22 ...pamm is de-
noted by d(n).

d(n) = (a1 + 1)(a2 + 1)...(am + 1)

Illustration: Find the number of divisors of 34.

sol. d(34) = d(21 · 171 ) = (1 + 1)(1 + 1) = 4

Lemma: The function d(n) is odd if and only if n is a square.

Sum of Divisors: The sum of divisors of n = pa11 pa22 ...pamm (denoted by σ(n)) is given by:

(p1 )a1 +1 − 1 (p2 )a2 +1 − 1 (pm )am +1 − 1


    
σ(n) = ....
p1 − 1 p2 − 1 pm − 1

Illustration: Find the sum of divisors of 34

21+1 − 1 171+1 − 1
sol. σ(21 · 171 ) = · = 54.
2−1 17 − 1
Euler’s Totient Function: Euler’s totient function, denoted as φ(n), counts the number
of numbers less than n that are coprime to n.

Lemma: For a prime number p: φ(p) = p − 1


 
Lemma: For a power of a prime pk : φ(pk ) = pk − pk−1 = pk 1 − p1

Lemma: For two coprime integers a and b: φ(ab) = φ(a) · φ(b)


X
Lemma: For n ≥ 1, ϕ(d) = n.
d|m

Theorem: If n has the prime factorization n = pk11 pk22 · · · pkmm , then:


    
1 1 1
φ(n) = n 1 − 1− ··· 1 −
p1 p2 pm

Illustration: Compute the number of integers less than 36 that are coprime to 36.

Solution: To compute the number of integers less than 36 that are coprime to 36, we use
Euler’s Totient Function, denoted as ϕ(n), which counts the number of integers k such that
1 ≤ k < n and gcd(k, n) = 1.

6
Step 1: Prime Factorization of 36
First, factorize 36:

36 = 22 × 32
Euler’s Totient Function is given by:
    
1 1 1
ϕ(n) = n 1 − 1− ... 1 −
p1 p2 pk
where p1 , p2 , . . . , pk are the distinct prime factors of n.

Step 2: Compute ϕ(36)


  
1 1
ϕ(36) = 36 1 − 1−
2 3
1 2
= 36 × ×
2 3
1
= 36 × = 12
3

Final Answer: There are **ϕ(36) = 12 numbers** less than 36 that are coprime to 36.

12

Euler’s Theorem: If n is a positive integer and a is an integer such that gcd(a, n) = 1,


then: aϕ(n) ≡ 1 mod n.

7
4 Diophantine Equations
Diophantine Equations: A Diophantine equation is a polynomial equation, usually with two
or more unknowns, such that only the integer solutions are of interest.

The simplest diophantine equation is ax + by = c

Theorem: ax + by = c has no integer solutions if (a, b) does not divide c.

Theorem: If (a, b) = h, then there always exists x, y ∈ Z such that ax + by = h

Theorem: If x0 , y0 is a special solution of the equation ax + by = c, here (a, b) = 1, then


the general solution of the equation is given by:

x = x0 + bt ∀t ∈ Z

y = y0 − at ∀t ∈ Z

Illustration: Find the general solution to 5x + 4y = 20

sol. Step 1: Express the Equation in Standard Form


A linear Diophantine equation of the form:

ax + by = c
has integer solutions if and only if gcd(a, b) divides c. Here,

• a = 5,

• b = 4,

• c = 20.

Since gcd(5, 4) = 1 and 1 divides 20, the equation has integer solutions.

Step 2: Find a Particular Solution


To find one particular solution (x0 , y0 ), we solve:

5x + 4y = 20
Setting x = 0, we solve for y:

4y = 20 =⇒ y = 5
Thus, one particular solution is:

(x0 , y0 ) = (0, 5)
Alternatively, setting y = 0, we solve for x:

5x = 20 =⇒ x = 4
So another particular solution is:

(x0 , y0 ) = (4, 0)

8
Step 3: Find the General Solution
The general solution to a linear Diophantine equation is given by:

x = x0 + bt, y = y0 − at
where t is an integer parameter.

x = 0 + 4t = 4t

y = 5 − 5t

Final Answer:

(x, y) = (4t, 5 − 5t), t∈Z


This represents all integer solutions to the equation.

Quadratic Diophantine Equations: Quadratic Diophantine equations are equations of the


form: ax2 + bxy + cy 2 = d, where a, b, c, and d are given integers, and x and y are the unknowns
for which we seek integer solutions.

One may employ a variety of methods to solve the above, they include modular arithmetic,
parity analysis, factorization etc. Graphical Analysis may also be fruitful.

Simon’s Favourite Factoring Trick: (x + a)(y + b) = xy + ax + by + ab, when xy, x, y


terms are involved, try to factor using this identity.

Modular Contradictions: Some useful modular contradictions are:

1. a2 = 0, 1 (mod 3)

2. a2 = 0, 1, 4 (mod 8)

3. a2 = 0, 1 (mod 4)

4. a2 = 0, ±1 (mod 5)

5. a3 = 0, ±1 (mod 7)

6. a3 = 0, ±1 (mod 9)

Fermat’s Last Theorem: If n ≥ 3 is an integer, the equation xn + y n = z n has no solutions


in positive integers.

Pythagorean Triplets: Pythagorean triplets are sets of three positive integers (a, b, c) that
satisfy the Pythagorean theorem: a2 + b2 = c2 , where a, b, and c are the lengths of the sides of
a right triangle, with c being the length of the hypotenuse.

The general Solution: (a, b, c) = (m2 − n2 , 2mn, m2 + n2 )

You might also like