Professional Documents
Culture Documents
Chapter 1-3 2023
Chapter 1-3 2023
MathEd 222
Workbook
GRADUATE SCHOOL
University of Southern Mindanao
Kabacan, Cotabato
SY 2022 - 2023
PREFACE
It is hoped that students, both in college and graduate levels, and teachers
as well will find this book valuable in their study and teaching of mathematics.
The Author
Chapter 2: Divisibility 9
Definition 9
Properties of Divisibility 12
Divisibility Tests 16
Divisibility Test for Large Integers 17
Chapter 7. Congruences 60
Definition and Examples 62
Residue System 62
Applications 63
Properties on Congruences 68
Special Congruences 70
Polynomial and Linear Congruences 72
Inverses 75
The Chinese Remainder Theorem 78
Introduction
The ancient civilization as early as 5000 years ago had developed ways of
doing arithmetic with numbers. The ancient Greeks for instance used counting
numbers (1, 2, …) and unfolded several amazing properties of these numbers.
Greeks idea of numbers however is linked with geometry and hence their concept
of numbers was attached with geometric figures thus the concept of triangular,
square and rectangular numbers. For instance the integer 6 was associated with a
rectangle which dimension is 2 by 3. During those ancient times equations like 5
+ x = 5 and 7 + x = 3 were not solvable obviously because the concept of zero and
negative numbers were non-existent as Greeks had difficulty associating negative
numbers and zero with geometric figures. The concept of zero and negative
numbers flourished with the Eastern civilization, particularly in India whose
concept of numbers is detached from geometry.
In general, number theory is the study of numbers and their properties and
include broad such as elementary number theory and algebraic number theory.
This course will primarily deal with elementary number theory - the study of
integers. We will study amazing properties of integers and some tools by which
we can unfold and prove these properties.
n, n2 =
2. Triangular Numbers
1
1+2=
1+2+3=
1+2+3+4=
:
.
1+2+3+…+n=
Practice: Determine the number of steps that your birth year will fall to 6174.
We shall begin our formal study of number theory with important tools
useful in proving properties of the set of integers.
1. The statement one is trying to prove true for the smallest positive integer
for which the theorem is to hold (verification for a specific value);
2. The statement is true for the positive integer n + 1 whenever it is true for
the positive integer n.
Examples:
1. Let us prove one property we derived from a number pattern in the previous
section:
1 + 3 + 5 + … + 2n – 1 = n2 n +
For n = 1, 2n – 1 = 1 = n2//
ii. Suppose the statement is true for n, we will show that the statement
is true for n+1. In particular , we must show that
1 + 3 + 5 + … + 2n – 1 + 2(n+1) = (n+1)2 n +
Now we assume that we know the fact that
1 + 3 + 5 + … + 2n – 1 = n2
Since we have shown i and ii, we can conclude that the statement holds for all
positive integers n.
For n = 3, 23 = 8 > 3 + 4 = 7 //
ii. Suppose the statement is true for n, that is, 2 n > n + 4 for n >
2. We will show that the statement is true for n+1. In
particular, we must show that
2n+1 > (n + 1) + 4 = n + 5 for n > 2
Since we have shown i and ii, we can conclude that the statement holds for all
positive integers n > 2.
Exercises
9 | lctandog_Number Theory Workbook
Prove by mathematical induction:
4. j2 =
5. j3 = [ ]2
If a and b are integers such that b > 0, then there are unique integers q and
r such that a = bq + r with 0 < r < b.
Examples:
1. a = 1 493; b = 17
2. a = -578 ; b = 25
Examples:
1. [ 3.8 ] = 3
2. [ 7 ] = 7
3. [ - 2.5 ] = -3
A survey question that asks the respondent of his/her age in years as of last
birthday is an example of the greatest integer function. Hence a respondent
whose age is 39.25 years (39 years and 3 months) will indicate the age 39 in the
questionnaire so with the respondent whose age is 39.75 years (39 years and 9
months).
Divisibility
An integer a is divisible by another integer b if the quotient of a and b is also
an integer.
Examples:
Non-examples:
Definition: The factors of a number m are two or more numbers whose product is
m. For instance, the factors of 6 are 2 and 3, 6 and 1.
Example: 3 3, 3 0 and 1 3.
3. If a b then c Z a bc.
Example: Since 3 6 then 3 6(-21)
Proof:
a b b = ax for some x Z.
By multiplication property for equality, c Z,
bc = axc, xc Z
a bc
1. If a b and a b + c then a c
2. If a b and a c then a b + c
3. If a b and a c then a bx + cy
II. Modified True or False. Write True if the statement is true and explain by
citing a property or a theorem. If the statement is false, write False and explain
or disprove by a counterexample.
1. 8 divides 2.
3.
Example: 1. 266
Procedure: a. double the last digit: 2(6) = 12
b. Subtract the result from the remaining digit: 2612
= 14
and it is divisible by 7. Therefore, 266 is divisible
by 7.
2. 7 448
Divisibility by 8:
A number is divisible by 8 if the last three digits is divisible by 8.
Practice: Determine which of the numbers 12 474 and 214 133 is divisible by 9
Practice: Determine which of the numbers 5 324 and 278 131 is divisible by 11.
2. 1 521
More Practice:
1. For each number below, determine which numbers from 2 to 13 are
divisors.
a. 1 716
b. 63 071
a. 3 | 7 20a 456
b. 5 | 3 49a
c. 8 | 1 347 06a
I. For each number below, determine which numbers from 2 to 11, and 13 are
divisors. Write the divisors to the right of each number.
1. 443
2. 15 926
3. 195 518
4. 433 692
5. 2 865 716
A. 2014 C. 2012
B. 2000 D. 2008
Let M = P1P2P3 … Pk, Pis are pairwise relatively prime (that is, the common
divisor between any pair of factors of M is 1). Then M | N iff P i | N.
Examples:
1. since 8 | 1 656 and 9 | 1 656, then 72 | 1 656. Note that 8 and 9 are
relatively prime factors of 72.
2. 24 | N iff 3 | N and 8 | N.
1. 55| 8 195.
1. 9 | a42 791
2. 72 | 6a7 17b
3. 24 | a2 03m
The study of prime is central in number theory since primes are considered
the building block of numbers.
Remarks:
Divisibility tests are useful in determining if the given whole number is prime
or composite.
Examples:
1. 3 118
2. 324
3. 519
4. 645
5. 183
1. Sieve of Eratosthenes
To generate prime numbers less than 100, the Sieve of Eratosthenes is one
interesting method to use. The procedure involves encircling prime numbers
from the smallest ( i.e. 2) up to 7 and then canceling all multiples of these
numbers. Numbers that remained uncancelled or not crossed out are all
primes. Skip 1 since it is neither prime nor composite.
Identify all prime numbers less 100 than using the following Sieve of
Eratosthenes.
1 7 13 19 25 31 37 43 49 55 61 67 73 79 85 91 97
2 8 14 20 26 32 38 44 50 56 62 68 74 80 86 92 98
3 9 15 21 27 33 39 45 51 57 63 69 75 81 87 93 99
4 10 16 22 28 34 40 46 52 58 64 70 76 82 88 94 100
5 11 17 23 29 35 41 47 53 59 65 71 77 83 89 95
6 12 18 24 30 36 42 48 54 60 66 72 78 84 90 96
a. x2 + x + 17
Complete the following table for the set of primes generated by the formula.
x 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Primes 17
b. x2 + x + 41
24 | lctandog_Number Theory Workbook
This is Euler’s formula of prime number generator. It also produces a limited
number of primes for a sequence of integer x up to 40. Clearly x = 40 produces a
composite number since
Complete the following table for the primes generated by the formula.
x 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Primes
x 15 16 17 18 19 20 21 22 23 24 25 26 25 26 27
Primes
x 28 29 30 31 32 33 34 35 36 37 38 39
Primes
Definition
If p is prime and Mp = 2p – 1 is also prime, then Mp is called a Mersenne prime.
Mp = 2p – 1
Mp + 1 = 2p.
Claim: Mp and Mp + 1 have the same digits since if Mp + 1 = 2p have more
than 1 digit than Mp , it must end in zero but not possible since any power
of 2 never ends in 0. Thus we can use M p + 1 = 2p to determine the number
The largest reigning prime in 1985 was M 216 091. Using the above formula, the
number of digits of M216 091 is
The digits of M216 091 can fill up two pages of a standard newspaper. In July 21,
2006, a Mersenne prime for p = 30 402 457 was discovered and M 30 402 457 has over 9
million digits.
Computer search for largest primes still continues as the process requires
trillion of calculations and is used to test computer speed and accuracy. Try to
look up in the internet this year’s reigning largest prime and calculate the number
of its digits.
Examples:
F0 = (22)0 + 1 = 20 + 1 = 2
F1 = (22)1 + 1 = 22 + 1 = 5
F2 = (22)2 + 1 = 24 + 1 = 17
F3 =
F4 =
Proof by contradiction
Suppose there is a positive integer with no prime divisors. Let M be of
positive integers with no prime divisors. M therefore is non-empty. By
well-ordering property, M must contain a least integer m with no prime
divisor. Since m has no prime divisors and m|m, m is composite. Hence
we can write m = ab, 1 < a < m and 1 < b < m. Because a < m, a must have
a prime divisor, say p. Since p | a and a | m, then p | m which contradicts
the assumption that m has no prime divisor//
Euclid’s Proof
Let p1 = 2, p2 = 3, p3 = 5, p4 = 2, … be the primes in ascending order, and
suppose that there is a last prime, say, p n. Now consider the integer P =
p1p2…pn + 1. Since P > 1, by theorem 1, has a prime divisor p. But p 1, p2, …,
pn are the only primes so p must be equal to one of the p 1, p2, …, pn . Since
p| p1p2…pn with p|P, by divisibility property, p|P-p 1p2…pn or equivalently,
p|1. The only divisor of 1 is 1 that makes p = 1 and contradicts the fact
that p > 1.//
Theorem3.
If n is composite number than n has a prime divisor not exceeding .
Proof
Since n is composite, we can write n = ab, 1 < a < b < n. We must have a < since
otherwise b > a > and ab > =n, a contradiction.
Examples:
Analysis: If 113 is composite, it has a prime divisor not exceeding 10. These
prime divisors are 2, 3, 5, and 7. Since none of these prime numbers divide
113, it is a prime number.
2. Is 1 101 prime? If 1 101 is prime, it must have a prime divisor not exceeding
33. Since 3 | 1 101, it is composite.
1. 487
2. 157
3. 121
4. 107
5. 293
The following proposition tells us that for any integer m > 2, we can find a
sequence of m consecutive integers that does not contain any prime number.
Proposition: For every positive integer m > 2, there are at least m consecutive
composite positive integers;
Proof by construction:
Goldbach’s Conjecture
Every even positive integer greater than 2 can be written as the sum of two
primes.
Examples:
4=2+2
10 = 3 + 7
24 = 5 + 19
Exercises
3. 17 is a Mersenne prime.
7. The largest prime divisor of any number less than or equal to 200 is 13.
II. One of the theorem of Fermat states that every prime integer of the form 4x +
1 is the sum of two squares. List the primes less that 50 of the form 4x + 1, x a
whole number. Express each of these primes as the sum of two squares.
I. Listing Method – done by listing the factors of a number and continue factoring
until all factors are prime then writing the same factors as
powers.
Examples: 1. 24 = 3 x 8 = 3 x 2 x 4 = 3 x 2 x 2x 2 = 2 x 2 x 2 x 3 = 23 x 3.
2. 60 = 2 x 30 = 2 x 3 x 10 = 2 x 3 x 2 x 5 = 2 x 2 x 3 x 5 = 22 x 3 x 5
Examples
1. 36
2| 36
2|18
3| 9
3 Therefore, 36 = 2 x 2 x 3 x 3 = 22 x 32
48
Example: 48
6 8
2 3 2 4
2 2
Therefore 48 = 2 x 3 x 2 x 2 x 2 = 2 x 2 x 2 x 2 x 3 = 24 x 3
Practice: Give the prime factorization of the following numbers using any
method:
1. 429
2. 1 296
3. 748
4. 4 105
1. Choose a game partner and toss a coin to determine who will be the first
player.
2. Player 1 chooses a number and this number is his score. Cross out this
number in the game chart below. Player 2 gains points by identifying the
uncrossed out factors of the number chosen by Player 1. Cross out all
factors identified in the game chart. Each player takes turns to choose a
number from the chart. Continue playing the game until no number in
chart remains uncrossed. The player with the highest score becomes the
winner.
3. Keep a record of your game and answer the questions below the game
chart.
Factor Me Out Game Chart
1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 18 20
21 22 23 24 25 26 27 28 29 30
31 32 33 34 35 36 37 38 39 40
41 42 43 44 45 46 47 48 49 50
Questions:
1. What number did you choose first and why?
2. In the succeeding moves, which numbers did you choose and why?
3. If you are to play the game again, which numbers will you choose and why?
- 2, being a divisor of even numbers automatically wipes out half of the entire set
of integers from the list of primes.
-yet, the set of prime number still remains infinite (this is proven!)
-the number line remains studded with primes since all integers can be expressed
as product of primes (the Fundamental Theorem of Arithmetic)
- prime have very special properties for factorization that makes it relevant in
other fields (computer science, abstract algebra, topology)
-prime becomes less frequent and difficult to find as the numbers gets bigger and
bigger.
-the task of finding the next prime has continuously challenged mathematicians
and computer capacity.
-the search for the larges primes requires trillion of calculations that has been
used to test computer speed and literacy.
-however, the task of finding large prime is relatively easier than factoring large
numbers back to primes (12 can be easily prime factored, what about 21 486
643 947? what about a number with 50 digits?)
-factoring large numbers has challenged mathematicians for centuries but there
seems no efficient way to prime factor large number.
-A file is encrypted using large number then made publicly known and available
(public key cryptography as used in bit coin mining and trading)
- the prime factors of the large number can be used to decrypt (or decode)
-finding the prime factors of a large number requires much much time that as of
this time is said cannot be done in one’s lifetime.
Source: Graham Templeton (2020). Why Should We Care About Prime Numbers?
Mashable SE Asia by REV Media Group
The search for largest reigning prime continues. With the advent of computers,
the reign of largest prime becomes shorter. But 2 continues to reign as the
smallest and the only even prime number. HURRAY
So how big is this number? A full 23,249,425 digits long — nearly 1 million digits
longer than the previous record holder. If someone started writing it down,
1,000 digits a day, today (Jan. 8), they would finish on Sept. 19, 2081, according
to some back-of-the-napkin calculations at Live Science.
(If someone discovers a prime number of 100 million digits, the prize
is $150,000 from the Electronic Frontiers Foundation. The first 1 billion-digit prime is
worth $250,000.)Jan 8, 2018
Example: M2 = 22 – 1 = 3 is prime
M3 = 23 – 1 = 7
In general, if Mn = 2n – 1 is prime
M77232917= 277 232 917 − 1, a number which has 24,862,048 digits - nearly
1 million digits longer than the previous record holder. It was found
via a computer volunteered by Patrick Laroche of the Great Internet
Mersenne Prime Search (GIMPS) in December 2017. If someone
started writing the prime number down at 1,000 digits a day say
starting Jan. 8, 2018, it would be finished on Sept. 19, 2081,
according to some back-of-the-napkin calculations at Live Science.
Twin Primes
Twin primes are pairs of prime numbers that have just one number
between them: 5 and 7, 11 and 13, and 29 and 31.
Zhang (2013) invented a novel technique that showed that there are
infinitely many pairs of prime numbers with no more than 70,000,000
numbers between them. That's a huge number, but it was the first
such finite limit on distances between primes that had ever been
discovered. On the same year, a large group of mathematicians built
on Zhang's work and similar results and collaboratively found smaller
and smaller bounds, eventually proving that there are infinitely many
pairs of primes with at most 246 numbers between them.
2. Goldbach's Conjecture
Goldbach's Conjecture says that every even number larger than two
can be written as the sum of two prime numbers.
Example 4 = 2 + 2, 8 = 5 + 3, 20 = 13 + 7
Palindromic Primes