Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Number Theory: Divisibility, Congruences, and Representations of Integers, Lecture notes of Engineering

This document delves into key concepts of number theory, focusing on divisibility, primality of integers, representations such as binary and hexadecimal, and congruences. It covers the division property, properties of divisibility, congruence relation, congruences of sums and products, and algorithms for base conversion and integer operations. The document also discusses the chinese remainder theorem and fermat's little theorem.

Typology: Lecture notes

2023/2024

Uploaded on 03/26/2024

basmalah-mohamed
basmalah-mohamed ๐Ÿ‡น๐Ÿ‡ท

1 document

1 / 48

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Chapter 4
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30

Partial preview of the text

Download Number Theory: Divisibility, Congruences, and Representations of Integers and more Lecture notes Engineering in PDF only on Docsity!

Chapter Motivation

๏‚— Number theory is the part of mathematics devoted to the study of the integers and their properties. ๏‚— Key ideas in number theory include divisibility and the primality of integers. ๏‚— Representations of integers, including binary and hexadecimal representations, are part of number theory. ๏‚— Number theory has long been studied because of the beauty of its ideas, its accessibility, and its wealth of open questions. ๏‚— Weโ€™ll use many ideas about proof methods and proof strategy in our exploration of number theory. ๏‚— Mathematicians have long considered number theory to be pure mathematics, but it has important applications to computer science and cryptography.

Division

Definition : If a and b are integers with a โ‰  0 , then

a divides b if there exists an integer c such that b = ac.

๏‚— When a divides b we say that a is a factor or divisor of b and that b is a multiple of a. ๏‚— The notation a | b denotes that a divides b. ๏‚— If a | b , then b / a is an integer. ๏‚— If a does not divide b , we write a โˆค b.

Example : Determine whether 3 | 7 and whether 3 | 12.

Properties of Divisibility

Theorem 1 : Let a , b , and c be integers, where a โ‰ 0. i. If a | b and a | c , then a | ( b + c ); ii. If a | b, then a | b c for all integers c ; iii. If a | b and b | c , then a | c. Proof : (i) Suppose a | b and a | c , then it follows that there are integers s and t with b = as and c = at. Hence, b + c = as + at = a ( s + t ). Hence, a | ( b + c )

Corollary : If a , b , and c be integers, where a โ‰ 0, such that a | b and a | c, then a | mb + nc whenever m and n are integers.

Congruence Relation

Definition : If a and b are integers and m is a positive integer, then a is congruent to b modulo m if m divides a โ€“ b. ๏‚— The notation a โ‰ก b (mod m ) says that a is congruent to b modulo m. ๏‚— We say that a โ‰ก b (mod m ) is a congruence and that m is its modulus. ๏‚— Two integers are congruent mod m if and only if they have the same remainder when divided by m. ๏‚— If a is not congruent to b modulo m , we write a โ‰ข b (mod m ) Example : Determine whether 17 is congruent to 5 modulo 6 and whether 24 and 14 are congruent modulo 6. Solution : ๏‚— 17 โ‰ก 5 (mod 6) because 6 divides 17 โˆ’ 5 = 12. ๏‚— 24 โ‰ข 14 (mod 6) since 24 โˆ’ 14 = 10 is not divisible by 6.

The Relationship between

(mod m ) and mod m Notations

๏‚— Theorem 3 : Let a and b be integers, and let m be a

positive integer.

Then a โ‰ก b (mod m ) if and only if a mod m = b mod m.

Congruences of Sums and Products

Theorem 5 : Let m be a positive integer. If a โ‰ก b (mod m ) and c โ‰ก d (mod m ), then a + c โ‰ก b + d (mod m ) and ac โ‰ก bd (mod m ) Proof : ๏‚— Because a โ‰ก b (mod m ) and c โ‰ก d (mod m ), by Theorem 4 there are integers s and t with b = a + sm and d = c + tm. ๏‚— Therefore, ๏‚— b + d = ( a + sm ) + ( c + tm ) = ( a + c ) + m ( s + t ) and ๏‚— b d = ( a + sm ) ( c + tm ) = ac + m ( at + cs + stm ). ๏‚— Hence, a + c โ‰ก b + d (mod m ) and ac โ‰ก bd (mod m ). Example : Because 7 โ‰ก 2 (mod 5 ) and 11 โ‰ก 1 (mod 5 ) , it follows from Theorem 5 that 18 = 7 + 11 โ‰ก 2 + 1 = 3 (mod 5 ) 77 = 7 โˆ™ 11 โ‰ก 2 โˆ™ 1 = 2 (mod 5 )

Algebraic Manipulation of Congruences

๏‚— Multiplying both sides of a valid congruence by an integer preserves validity. If a โ‰ก b (mod m ) holds then c โˆ™ a โ‰ก c โˆ™ b (mod m ), where c is any integer, holds by Theorem 5 with d = c. ๏‚— Adding an integer to both sides of a valid congruence preserves validity. If a โ‰ก b (mod m ) holds then c + a โ‰ก c + b (mod m ), where c is any integer, holds by Theorem 5 with d = c. ๏‚— Dividing a congruence by an integer does not always produce a valid congruence. Example : The congruence 14 โ‰ก 8 (mod 6 ) holds. But dividing both sides by 2 does not produce a valid congruence since 14/2 = 7 and 8/2 = 4, but 7 โ‰ข4 (mod 6).

Arithmetic Modulo m

Definitions : Let Z m be the set of nonnegative integers less than m : { 0 , 1 , โ€ฆ., m โˆ’1} ๏‚— The operation + m is defined as a + m b = ( a + b ) mod m. This is addition modulo m. ๏‚— The operation โˆ™ m is defined as a โˆ™ m b = ( a โˆ™ b ) mod m. This is multiplication modulo m. ๏‚— Using these operations is said to be doing arithmetic modulo m. Example : Find 7 + 11 9 and 7 โˆ™ 11 9. Solution : Using the definitions above: ๏‚— 7 + 11 9 = (7 + 9) mod 11 = 16 mod 11 = 5 ๏‚— 7 โˆ™ 11 9 = (7 โˆ™ 9) mod 11 = 63 mod 11 = 8

  • Chapter
  • Section 4.
  • Section 4.

Representations of Integers

๏‚— In the modern world, we use decimal, or base 10,

notation to represent integers. For example when we

write 965, we mean 9 โˆ™10^2 + 6โˆ™10^1 + 5โˆ™10^0.

๏‚— We can represent numbers using any base b , where b

is a positive integer greater than 1.

๏‚— The bases b = 2 ( binary ), b = 8 ( octal ) , and b = 16

( hexadecimal ) are important for computing and

communications

๏‚— The ancient Mayans used base 20 and the ancient

Babylonians used base 60.

Binary Expansions

Most computers represent integers and do arithmetic with binary (base 2 ) expansions of integers. In these expansions, the only digits used are 0 and 1.

Example : What is the decimal expansion of the integer that has (1 0101 1111) 2 as its binary expansion?

Solution :

(1 0101 1111) 2 = 1โˆ™2^8 + 0โˆ™2^7 + 1โˆ™2^6 + 0โˆ™2^5 + 1โˆ™2^4 + 1โˆ™2^3

  • 1โˆ™2^2 + 1โˆ™2^1 + 1โˆ™2^0 =351.

Example : What is the decimal expansion of the integer that has ( 11011 ) 2 as its binary expansion?

Solution : ( 11011 ) 2 = 1 โˆ™2^4 + 1โˆ™2^3 + 0โˆ™2^2 + 1โˆ™2^1 + 1โˆ™2^0 =27.

Hexadecimal Expansions

The hexadecimal expansion needs 16 digits, but our decimal system provides only 10. So letters are used for the additional symbols. The hexadecimal system uses the digits {0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F}. The letters A through F represent the decimal numbers 10 through 15. Example : What is the decimal expansion of the number with hexadecimal expansion (2AE0B) 16? Solution : 2 โˆ™16^4 + 10โˆ™16^3 + 14โˆ™16^2 + 0โˆ™16^1 + 11โˆ™16^0 =

Example : What is the decimal expansion of the number with hexadecimal expansion (E 5 ) 16? Solution : 14 โˆ™16^1 + 5โˆ™16^0 = 224 + 5 = 229

Base Conversion

To construct the base b expansion of an integer n :

๏‚— Divide n by b to obtain a quotient and remainder. n = bq 0 + a 0 0 โ‰ค a 0 โ‰ค b ๏‚— The remainder, a 0 , is the rightmost digit in the base b expansion of n. Next, divide q 0 by b. q 0 = bq 1 + a 1 0 โ‰ค a 1 โ‰ค b ๏‚— The remainder, a 1 , is the second digit from the right in the base b expansion of n. ๏‚— Continue by successively dividing the quotients by b , obtaining the additional base b digits as the remainder. The process terminates when the quotient is 0.

continued โ†’