Theory of Numbers -- Discrete Mathematics


Before you start reading :

This is fairly easy to understand. Just don't be afraid of symbols and have patience while reading, read slowly, but not too slow.

If it seems too hard just memorize the proofs.


Mathematical Induction

Mathematical induction is a proof technique used in mathematics to establish the truth of an infinite number of statements. It is particularly useful for proving propositions that are asserted for all natural numbers. The method works by proving two main steps:

  1. Base Case: Show that the statement holds for the initial value of the sequence (usually n=0 or n = 1).
  2. Inductive Step: Show that if the statement holds for some arbitrary natural number k, hen it also holds for k+1

Principle of mathematical induction

For a statement P(n), involving the natural number n, such that:

P(1) is true

Truth of P(k) implies the truth of P(k+1), then P(n) is true for all natural numbers n.

Example (Don't overstress it)

Pasted image 20240610203818.png


Well-Ordering Principle

Using the principle of mathematical induction the well ordering principle states that :

"Every non-empty subset of natural numbers (N) has a smallest element."

Proof :

If S be a non-empty subset of natural numbers then there exists a :

p \in S $$ $$ \forall q \in S $$ A set containing just one element has a smallest number, ==namely the element itself==. Hence the well-ordering principle is true for a set of size 1. Now *let us assume* that the *principle is true for a set of size n*, i.e any set of n natural numbers has a smallest number. Let us now consider a set S of (*n+1*) elements where an element *p* is removed. The remaining *n* (since an element was removed, n+1 - 1 = n) numbers has a smallest element say *q* [*by the induction hypothesis*] (where we assume the statement to be true for some arbitrary integer k, being *q* in this case) The *smaller* of *p* and *q* is the smallest element of S. Hence, by the principle of mathematical induction, the ==well-ordering principle follows that any non-empty infinite set of natural numbers, has a smallest element==. --- # Divisibility Theorem An integer *b* is divisible by an integer a (not equals to zero), if there is an integer x such that : $$ b = ax $$, we write : $$ a | b

i.e (a is divisible by b).

In case a is not divisible by b, we write :

ab

When a divides b, a is called a divisor/ factor of b

and b is called a multiple of a.

If

a/b$$then$$a/b$$since$$b=ax=>b=(a)(x)

Thus $$ a /b = -a/b $$

Some properties of divisibility (don't overstress it)

tn1.jpg


Prime Numbers -- What are they?

A positive integer p>1 is called prime if the only positive factors of p are p itself and 1.

If a positive integer n>1 is not prime then it is called a composite number.

1 is neither prime nor composite.

The only even prime integer is 2, rest all prime integers are odd.

If n is a composite integer then there exists integers a and b such that

n=ab

where 1<a, b, n


Fundamental theorem of arithmetic

The fundamental theorem of arithmetic states that:

"Every integer n can be expressed uniquely as a product of primes".

Proof :

If the integer n > 1 is a prime then the integer itself stands a product of a single factor.

Otherwise, if the integer n is not prime, it can be factored into, let's say :

n=n1.n2

where

1<n1<n

and

1<n2<n

Well obviously the factors are gonna be less than n itself and greater than 1.

Now,

If n1 is a prime :
then let it stand (JoJo reference)
else:

n1 will be factored similarly into, let's say :

n1=n3.n4

where

1<n3<n1

and

1<n4<n1

and the process goes on........

This process of writing each composite number as a product of factors must terminate since the factors are smaller than the composite number itself and greater than 1.

Thus every integer n, such that n > 1 can be written as a product of primes.

This process is called prime decomposition or the prime factorization of n.

Now,

if there be :

ni

prime factors of n, each equal to

ri$$then,ncanbewrittenas$$n=n1r1.n2r2.......nprp

Or in simple terms, see the below example :

tn2.jpg

In the first example, n = 100 which is broken down into n1, n2, n3, n4, further assembled in the form of:

n=n1r1.n2r2.......nprp

where

n=n12.n22

r = 2.


Prime Numbers : Euclid's theorem.

Euclid's theorem states that :

"The number of prime numbers are infinite"

Proof:

If possible, let the number of primes be finite and be equal to n. Let them be arranged in the order of magnitude as :

p1,p2,.....,pn

Then form the number :

n=1+p1,p2,.....,pn

Now, no single p is a divisor of n.

Therefore, n is : either a prime greater than $$ p_n$$or has a prime greater than $$ p_n$$ as a factor.

But this contradicts our assumption that $$ p_n$$ is the greatest prime (fraud).

Therefore, the number of prime numbers is infinite. Proved


The division algorithm

The division algorithm of prime numbers states that :

Given any two integers a and b, with b > 0, there exists unique integers q and r such that

a = bq + r $$ where, $$ 0 \leq r < b $$ Proof : TLDR (Too long don't read), still providing : ![Pasted image 20240610214239.png](/img/user/Images/Pasted%20image%2020240610214239.png) ![Pasted image 20240610214248.png](/img/user/Images/Pasted%20image%2020240610214248.png) ## ==Key Takeaway== of the division algorithm : Read what it implies (not the proof) Read the Note part just above and Just see the examples : ![Pasted image 20240610214326.png](/img/user/Images/Pasted%20image%2020240610214326.png) --- # The Greatest Common Divisor (GCD) ## Definition (Pay attention to this one) The integer d,: $$ d \neq 0

is said to be the common divisor of integers a and b if

d/a $$ and $$ d/b $$, that is if *d divides both a and b* ## Euclidean algorithm of finding GCD Proof : TLDR ![Pasted image 20240610214753.png](/img/user/Images/Pasted%20image%2020240610214753.png) ![Pasted image 20240610214808.png](/img/user/Images/Pasted%20image%2020240610214808.png) ![Pasted image 20240610214834.png](/img/user/Images/Pasted%20image%2020240610214834.png) # Examples (Key takeaway) ![Pasted image 20240610214929.png](/img/user/Images/Pasted%20image%2020240610214929.png) ## Properties of GCD ![Pasted image 20240610215047.png](/img/user/Images/Pasted%20image%2020240610215047.png) ![Pasted image 20240610215056.png](/img/user/Images/Pasted%20image%2020240610215056.png) ![Pasted image 20240610215117.png](/img/user/Images/Pasted%20image%2020240610215117.png) ![Pasted image 20240610215148.png](/img/user/Images/Pasted%20image%2020240610215148.png) *Any integer being m could be negative as well* ![Pasted image 20240610215221.png](/img/user/Images/Pasted%20image%2020240610215221.png) ![Pasted image 20240610215231.png](/img/user/Images/Pasted%20image%2020240610215231.png) ![Pasted image 20240610215247.png](/img/user/Images/Pasted%20image%2020240610215247.png) ![Pasted image 20240610215308.png](/img/user/Images/Pasted%20image%2020240610215308.png) ---