Professional Documents
Culture Documents
1
Introduction to Number Theory
Number theory is about integers ( ) and their properties.
• divisibility
• division algorithm
• modular arithmetic
• congruence relation
• some problem solving using these principles
2
Properties of Congruence relation:
i) a + c b + d (mod m) and
ii) ac bd (mod m).
3
Properties of Modular arithmetic:
Solution : We could find their sum, which is 8221 and conclude that the units
,
digit is 1 However, we could find the units digit with far less calculation.
.
So,
Problem 2: Find the remainder when the difference
between 60002 and 601 is divided by 6.
Solution :
Problem 3:
Analyze the pattern here. The last digit of powers of 7 repeats in the pattern [7,9,3,1],
[7,9,3,1].. So, we can generalize this as:
last digit of 74m+1 is 7, last digit of 74m+2 is 9 ,
last digit of 74m+3 is 3, and last digit of 74m is 1.
• Now, in modular arithmetic, 7 = (1)4 + 3
3 = (0)4 + 3
7 ___ mod 4 -1 = (-1)4 + 3
7 3 mod 4 -5 = (-2)4 + 3
7 -1 mod 4 Also, 7 -5 mod 4
Hence,
71000 (-1)1000 (mod 4)
(1) (mod 4)
1 (mod 4) (remainder is 1 when divided by 4)
That is, 71000 = 4m + 1
From prev slide,
the last digit of 7 4m+1 is 7,
the last digit of 7 4m+2 is 9
the last digit of 7 4m+3 is 3, and
the last digit of 7 4m is 1.
7
= the last digit of 74m+1 = .
Hence, the last digit of
Problem 4: What are the tens and units digits of
• Solution: We begin by writing down the first few powers of 7 (mod 100)
• Which means,
• 74m+1 (mod 100) = 07 and 74m+2 (mod 100) = 49
• 74m+3 (mod 100) = 43 and 74m+0 (mod 100) = 01
• It is also true for ISBN-10 that the sum of all the ten digits, each multiplied by its weight
in ascending order from 1 to 10, is also a multiple of 11
Alternatively,
Note : The value of the check digit (x10) required to satisfy this condition might be 10; if
so, an 'X' should be used
ISBN-13 check digit calculation
• The ISBN-13 check digit, which is the last digit of the ISBN, must range from
0 to 9
• Procedure : Each digit of the ISBN, from left to right, is alternately multiplied
by 1 or 3, then those products are summed modulo 10 to give a value
ranging from 0 to 9
• Formally, using modular arithmetic, we can say that
ISBN-10 to ISBN-13 conversion
Hence x = 3
End of slide
Components of ISBN
• for a 13-digit ISBN, a prefix element – so far 978 or 979 have
been made available by GS1,
• the registration group element (language-sharing country
group, individual country or territory),
• the registrant element,
• the publication element, and
• A checksum character or a check digit
GS-1
• GS1 is a non profit organisation that develops and maintains global standards for
business communication.
• The best known of these standards is the barcode, a symbol printed on products that
can be scanned electronically
• making it easier for products to be tracked, processed, and stored.