








































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
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
1 / 48
This page cannot be seen from the preview
Don't miss anything!
๏ 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
๏ 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.
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.
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.
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
Representations of Integers
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
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
๏ 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 โ