Professional Documents
Culture Documents
Full Chapter Number Theory 1St Edition Robert Freud PDF
Full Chapter Number Theory 1St Edition Robert Freud PDF
Freud
Visit to download the full and correct content document:
https://textbookfull.com/product/number-theory-1st-edition-robert-freud/
More products digital (pdf, epub, mobi) instant
download maybe you interests ...
https://textbookfull.com/product/invitation-to-number-theory-1st-
edition-ore/
https://textbookfull.com/product/auxiliary-polynomials-in-number-
theory-1st-edition-masser/
https://textbookfull.com/product/algebraic-number-theory-a-brief-
introduction-1st-edition-j-s-chahal/
https://textbookfull.com/product/invitation-to-number-theory-2nd-
edition-oystein-ore/
Number Theory Revealed An Introduction Andrew Granville
https://textbookfull.com/product/number-theory-revealed-an-
introduction-andrew-granville/
https://textbookfull.com/product/math-223a-algebraic-number-
theory-notes-alison-miller/
https://textbookfull.com/product/ma257-introduction-to-number-
theory-j-e-cremona/
https://textbookfull.com/product/statistical-independence-in-
probability-analysis-number-theory-kac/
https://textbookfull.com/product/an-introduction-to-number-
theory-with-cryptography-second-edition-kraft/
48
Number
Theory
Róbert Freud
Edit Gyarmati
Number
Theory
UNDERGRADUATE TEXTS • 48
Number
Theory
Róbert Freud
Edit Gyarmati
EDITORIAL COMMITTEE
Gerald B. Folland (Chair) Steven J. Miller
Jamie Pommersheim Maria Cristina Pereyra
Copying and reprinting. Individual readers of this publication, and nonprofit libraries acting
for them, are permitted to make fair use of the material, such as to copy select pages for use
in teaching or research. Permission is granted to quote brief passages from this publication in
reviews, provided the customary acknowledgment of the source is given.
Republication, systematic copying, or multiple reproduction of any material in this publication
is permitted only under license from the American Mathematical Society. Requests for permission
to reuse portions of AMS publication content are handled by the Copyright Clearance Center. For
more information, please visit www.ams.org/publications/pubpermissions.
Send requests for translation rights and licensed reprints to reprint-permission@ams.org.
c 2020 by the authors. All rights reserved.
Printed in the United States of America.
∞ The paper used in this book is acid-free and falls within the guidelines
established to ensure permanence and durability.
Visit the AMS home page at https://www.ams.org/
10 9 8 7 6 5 4 3 2 1 25 24 23 22 21 20
Contents
Introduction 1
Structure of the book 1
Exercises 2
Short overview of the individual chapters 2
Technical details 4
Commemoration 4
Acknowledgements 5
Chapter 2. Congruences 37
2.1. Elementary Properties 37
Exercises 2.1 40
v
vi Contents
Tables 537
Primes 2–1733 538
Primes 1741–3907 539
Prime Factorization 540
Mersenne Numbers 541
Fermat Numbers 542
Index 543
Introduction
(A) Theoretical textbook for teaching number theory at universities and colleges,
mostly for majors in mathematics, applied mathematics, mathematics education,
and computer science.
(C) Handbook for those interested in more detail in some chapters of number theory
beyond the compulsory and elective courses and/or writing a thesis in this subject.
(D) Manual summarizing the most important chapters of (elementary) number the-
ory for mathematicians and mathematics teachers.
1
2 Introduction
The book is structured to systemize the material and to provide a close relation
between the individual chapters as much as possible.
As a general guideline, the notions and statements are thoroughly illuminated
from various aspects beyond the formal phrasing, they are illustrated by examples and
connections to the previous material. Their essential features are strongly emphasized
pointing out the complications and analyzing the motives for introducing a given no-
tion. Careful attention is paid to start from the concrete where possible and to proceed
towards the general only afterwards. We try to give a broad perspective about the strong
and colorful relations of number theory to other branches of mathematics.
Exercises
Each section in every chapter is followed by exercises. They serve several purposes:
some of them check the comprehension of the notions, theorems, and methods, and
give a deeper understanding; others present new examples, relations, and applications;
again others study further problems related to the topic. They often include also theo-
rems disguised as exercises revealing some interesting aspects or more remote connec-
tions not treated in the text in detail.
Exercises vary in quantity and in difficulty within fairly large limits depending on
the topic, size, and depth of the material. The hard and extra-hard exercises (in our
judgement) are marked with one and two asterisks, resp. (The difficulty of an exercise
is always relative, of course: besides the abilities, interests, and preliminary general
knowledge of the solver, it depends strongly also on the exercises already solved.)
Answers and/or some hints to nearly all exercises can be found in the chapter An-
swers and Hints. To some (mostly harder) problems detailed solutions are presented
in an online chapter available at www.ams.org/bookpages/amstext-48. These exer-
cises are marked with a letter S in the text.
The reader is advised to consult a hint or solution only if an exercise turns out to
be absolutely unmanageable, or to return to the same problem later, or to solve first
some special case of it.
It is important to unravel the message and background of an exercise, its position
and role in the mathematical environment. Also a generalization or raising new prob-
lems are very useful (even if it is not clear how to solve them).
Chapter 5 deals with prime numbers. This simply defined set is one of the most
mysterious objects in mathematics. We discuss Euclid’s theorems (more than two thou-
sand years old) and the sensational discovery of the last decades, the public key cryp-
tosystems based on the contrast of quick primality testing and awfully slow prime fac-
torization. In this chapter we rely both on previously acquired knowledge in number
theory and the results and methods of elementary analysis.
In Chapter 6 we study arithmetic functions. Besides investigating some concrete
important functions, we present several general constructions and applications.
Chapter 7 is about Diophantine equations. After discussing the simplest types (lin-
ear equations, Pythagorean triples), we look at Waring’s problem and prove the special
cases of Fermat’s Last Theorem for exponents three and four. The methods require
the theory of Gaussian and Eulerian integers that will be generalized in Chapters 10
and 11.
The topic of Chapter 8 is Diophantine approximation that is important for certain
applications. We briefly consider also the connection with the geometry of numbers
and continued fractions.
Chapters 9–11 are closely related to each other. The basic properties of algebraic
numbers and algebraic integers from Chapter 9 are essential for understanding the next
two chapters. Chapter 10 studies field extensions, focusing on the arithmetic properties
of algebraic integers in a simple extension of the rational field by an algebraic number.
Here, an intensive use is made of the notions and theorems of elementary linear al-
gebra. Finally, in Chapter 11 the arithmetic aspects of ideals are investigated. On the
one hand, ideals constitute a fine tool for exhibiting some necessary and sufficient, or
useful sufficient, conditions for the validity of unique prime factorization in general
rings, and on the other hand, the validity of unique prime factorization for ideals of
algebraic integers (though in general not for the algebraic integers themselves) plays
an important role in studying algebraic number fields.
In Chapter 12 several interesting problems from combinatorial number theory are
presented. Some of these can be discussed even at a high school study circle, whereas
others require deeper methods from various branches of mathematics. We hope that
the selection gives an idea also about the fundamental role of Paul Erdős in the progress
of this field with thrilling questions and ingenious proofs.
Throughout the text, we often refer to interesting aspects of the history of number
theory and this purpose is served also by the short Historical Notes at the end of the
book.
As is clear also from the above description, the different subfields of number the-
ory are closely interrelated to each other and to other branches of mathematics. This
causes a serious difficulty since, on the one hand, it is important to emphasize this
tight connection during the discussion of the individual topics, but, on the other hand,
it is desirable that every chapter be self-contained and complete. We tried to achieve a
balance that makes it possible to get a gradually growing full picture of a mathematical
field rich in problems and ideas for continuous readers, but allows those who just pick
a few chapters to acquire interesting, substantial, and useful knowledge.
4 Introduction
Technical details
The chapters are divided into sections. Definitions, theorems, and formulas are num-
bered as 𝑘.𝑚.𝑛 where 𝑘 refers to the chapter, 𝑚 to the section, and 𝑛 is the serial num-
ber within the given section. Definitions and theorems have a common list, thus, for
example, Definition 6.2.1 is followed by Theorem 6.2.2. Examples, exercises, etc. are
numbered with a single number restarting in each section. The statement of a defini-
tion or theorem is closed by a ♣ sign and the end of a proof is denoted by .
The search for notations, notions, and theorems can be facilitated by the very de-
tailed Index at the end of the book.
We distinguish the floor and ceiling of (real) numbers, denoted by ⌊ ⌋ and ⌈ ⌉, resp.,
thus e.g. ⌊𝜋⌋ = 3, ⌈𝜋⌉ = 4 (we do not use the notation [𝜋]). The fractional part is de-
noted by { }, i.e. {𝑐} = 𝑐 − ⌊𝑐⌋. Divisibility, greatest common divisor, and least common
multiple are denoted as usual, so e.g. 7 ∣ 42, (9, 15) = 3, and [9, 15] = 45. Square brack-
ets [ ] can mean a least common multiple, a closed interval, or just a replacement for
(round) parentheses (this latter function occurs frequently in Chapter 11 where round
parentheses ( ) stand for an ideal; to avoid confusion, the greatest common divisor is
denoted here by gcd{𝑎, 𝑏}).
Polynomials and functions are denoted generally without indicating the argument:
𝑓, 𝑔, etc. but sometimes also 𝑓(𝑥), 𝑔(𝑥), etc. can occur. The degree of a polynomial is
denoted by “deg,” so e.g., deg(𝑥3 + 𝑥) = 3. As usual, 𝐐, 𝐑, and 𝐂 stand for the rational,
real, and complex numbers. 𝐙, 𝐙𝑚 , and 𝐹[𝑥] mean the integers, the modulo 𝑚 residue
classes, and the polynomials over 𝐹. At field extensions, 𝐐(𝜗) and 𝐼(𝜗) denote the
simple extension of the rationals by 𝜗 and (in case 𝜗 is algebraic) the ring of algebraic
integers in this extension. The letter 𝑝 denotes nearly exclusively a (positive) prime
and the log (without a lower index) stands for natural logarithm (of base 𝑒). For (finite
and infinite) products and sums we often use the signs ∏ and ∑, e.g.
𝑟
𝛼 1
∏ 𝑝𝑖 𝑖 , ∏ 𝑝, ∑
𝑖=1 𝑝≤𝑛 𝑝
𝑝2
𝛼 𝛼
mean the product 𝑝1 1 . . . 𝑝𝑟 𝑟 , the product of primes not greater than 𝑛, and the sum of
reciprocals of squares of primes.
Commemoration
The book is dedicated to the memory of Paul Turán, Paul Erdős, and Tibor Gallai (who
were close friends and collaborators).
Both authors enjoyed the privilege to be in touch with two giants of 20th century
number theory, Paul Turán and Paul Erdős.
We were educated in Paul Turán’s legendary seminars where we learned how to
explore, elaborate, and explain to others the essential components of a mathematical
problem. Turán taught us that connecting seemingly remote areas can often result in
new, efficient methods.
Acknowledgements 5
Edit Gyarmati wrote a number theory textbook (in Hungarian) some fifty years
ago using Turán’s lectures among several other sources that can be considered as a
predecessor of this book in a certain sense. The experiences of our lectures, the stu-
dents’ broadening preliminary knowledge (e.g. in linear algebra), and the new scien-
tific achievements in this field during the past decades necessitated the creation of a
new book instead of a long-due revision. The spirit and structure of the two books show
several similar features, of course.
Both of us were largely influenced by the mathematical and human greatness of
Paul Erdős sharing his enthusiastic devotion towards “nice” mathematical problems
and proofs, talking about these (and many more things) equally naturally and openly
with great scientists or just interested beginners. Róbert Freud owes many adventures
in doing joint mathematics and a great deal of his professional progress to Erdős.
Edit Gyarmati’s choosing mathematics as a profession is mostly due to her unfor-
gettable high school teacher, Tibor Gallai, who was a world-famous expert in graph
theory. Gallai was a brilliant personality whose wonderful classes both in high school
and at universities helped to start mathematical research for the best students, and
offered the joy of understanding and creation for all pupils.
Acknowledgements
We are very thankful for the great job the reviewers Imre Ruzsa (Chapter 12), András
Sárközy (Chapters 1–12), and Mihály Szalay (Chapters 1–11) did. All three of them
checked the manuscript with extreme thoroughness and suggested many general, con-
crete, and stylistic improvements nearly all of which were accepted by us. The concep-
tual remarks of András Sárközy helped us in unifying some notions, homogenizing the
structure, and mentioning several further results. Mihály Szalay checked every tiny de-
tail carefully, solved all the exercises without a solution given in the book, noted even
the smallest inaccuracies, and his concretely worded suggestions made it possible to
correct many lesser or greater errors and discrepancies. Imre Ruzsa added many valu-
able observations on Chapter 12.
In spite of all the efforts of the authors (and reviewers) there probably remain errors
and imperfections in the book. Any comments or suggestions are gratefully accepted.
The book in its present form is an English translation and an improved and cor-
rected version of the two Hungarian editions used by all universities of science in Hun-
gary. Edit Gyarmati, who was not only my coauthor but also my wonderful wife for
many decades, passed away in 2014, and could not participate in preparing this manu-
script. I devote this work to her memory.
Basic Notions
In this chapter, we survey some basic notions, theorems, and methods about the divisi-
bility of integers. When introducing the concepts, we mostly rely on general divisibility
properties only and keep the special features of the integers to a minimum. Using the
even numbers and some other examples, we point out that certain well known facts,
including the unique factorization into primes (the Fundamental Theorem of Arith-
metic), are by no means obvious.
To prove the Fundamental Theorem, we start from the division algorithm, then
describe the Euclidean algorithm yielding the special property of the greatest common
divisor, which is the key to verify the equivalence of the irreducible and prime elements
among the integers. We provide also a direct proof for the Fundamental Theorem us-
ing induction, that does not rely on the division algorithm. Finally, we discuss some
important consequences.
1.1. Divisibility
If 𝑎 and 𝑏 are rational numbers, where 𝑏 ≠ 0, then dividing 𝑎 by 𝑏, we get a rational
number again. A similar statement does not hold for integers, hence the following
definition makes sense:
7
8 1. Basic Notions
Proof. 1 and −1 are units, since for any integer 𝑎, we have 𝑎 = (±1)(±𝑎). Hence
±1 ∣ 𝑎.
Conversely, if 𝜀 is a unit, then 𝜀 divides 1, i.e. 1 = 𝜀𝑞 for some 𝑞. Since |𝜀| ≥ 1 and
|𝑞| ≥ 1, therefore only
|𝜀| = 1, i.e. 𝜀 = ±1
is possible. □
Remark: Divisibility can be introduced also in other sets of numbers (moreover, in any
integral domain, see Exercise 1.1.23). Consider, for example, the even numbers. Here
𝑏 ∣ 𝑎 means that there exists an even number 𝑞 satisfying 𝑎 = 𝑏𝑞. Hence, here 2 ∣ 20,
but 2 ∤ 10, and 10 has no divisors at all. This implies that there are no units among the
even numbers. On the other hand, there are infinitely many units among the (special
real) numbers 𝑐 + 𝑑√2 where 𝑐 and 𝑑 are arbitrary integers (see Exercise 1.1.22). This
means that the units may show very different forms and are related not (only) to the
sign changes as Theorem 1.1.3 could suggest falsely.
Theorem 1.1.4. If 𝜀 and 𝛿 are units and 𝑏 ∣ 𝑎, then also 𝜀𝑏 ∣ 𝛿𝑎 holds. ♣
By Theorem 1.1.4, a number and its associates behave identically concerning divis-
ibility, i.e. the units “do not count” in this respect. This makes possible to deal (later)
only with non-negative or (after clarifying the special role of 0) with positive integers
in divisibility investigations.
The next theorem summarizes some simple but important properties of divisibility
of integers.
Theorem 1.1.5. (i) For every 𝑎, we have 𝑎 ∣ 𝑎.
(ii) If 𝑐 ∣ 𝑏 and 𝑏 ∣ 𝑎, then 𝑐 ∣ 𝑎.
(iii) Both 𝑎 ∣ 𝑏 and 𝑏 ∣ 𝑎 hold simultaneously if and only if 𝑎 is an associate of 𝑏.
(iv) If 𝑐 ∣ 𝑎 and 𝑐 ∣ 𝑏, then 𝑐 ∣ 𝑎 + 𝑏, 𝑐 ∣ 𝑎 − 𝑏, 𝑐 ∣ 𝑘𝑎 for any (integer) 𝑘, and 𝑐 ∣ 𝑟𝑎 + 𝑠𝑏
for any (integers) 𝑟 and 𝑠. ♣
Proof. We verify only (iii). The others can be easily proven using just the definition of
divisibility.
If 𝑎 = 𝜀𝑏 where 𝜀 is a unit, then 𝑏 ∣ 𝑎 is straightforward. Also, 1 = 𝜀𝑟 implies
𝑟𝑎 = 𝑏, hence 𝑎 ∣ 𝑏 is valid as well.
Conversely, if 𝑎 ∣ 𝑏 and 𝑏 ∣ 𝑎, i.e. 𝑏 = 𝑎𝑞 and 𝑎 = 𝑏𝑠 with suitable integers 𝑞 and
𝑠, then 𝑏 = 𝑏(𝑞𝑠). If 𝑏 = 0, then necessarily 𝑎 = 0, thus 𝑎 = 𝜀𝑏. If 𝑏 ≠ 0, then 𝑞𝑠 = 1,
hence 𝑠 is a unit (and so is 𝑞), yielding 𝑎 = 𝜀𝑏. □
Exercises 1.1
(Unless stated otherwise, all numbers are integers, the exponents are non-negative in-
tegers, and the digits are understood to be in decimal representation.)
1. Write a three-digit number twice as one string. Show that the resulting six-digit
number is divisible by 91.
2. Verify that 8 always divides the difference of the squares of two odd numbers.
3. Assume that the three digit number 𝑎𝑏𝑐 (having digits 𝑎, 𝑏, and 𝑐 in this order) is
a multiple of 37. Prove that the number 𝑏𝑐𝑎 is also divisible by 37.
4. Show that if 5𝑎 + 9𝑏 is divisible by 23, then 3𝑎 + 10𝑏 is also divisible by 23.
5. True or false?
(a) 𝑐 ∣ 𝑎 + 𝑏 ⟹ 𝑐 ∣ 𝑎, 𝑐 ∣ 𝑏
(b) 𝑐 ∣ 𝑎 + 𝑏, 𝑐 ∣ 𝑎 ⟹ 𝑐 ∣ 𝑏
(c) 𝑐 ∣ 𝑎 + 𝑏, 𝑐 ∣ 𝑎 − 𝑏 ⟹ 𝑐 ∣ 𝑎, 𝑐 ∣ 𝑏
(d) 𝑐 ∣ 2𝑎 + 5𝑏, 𝑐 ∣ 3𝑎 + 7𝑏 ⟹ 𝑐 ∣ 𝑎, 𝑐 ∣ 𝑏
(e) 𝑐 ∣ 𝑎𝑏 ⟹ 𝑐 ∣ 𝑎 or 𝑐 ∣ 𝑏
(f) 𝑐 ∣ 𝑎, 𝑑 ∣ 𝑏 ⟹ 𝑐𝑑 ∣ 𝑎𝑏
(g) 𝑐 ∣ 𝑎, 𝑑 ∣ 𝑎 ⟹ 𝑐𝑑 ∣ 𝑎.
6. Verify the following:
(i) 𝑎 − 𝑏 ∣ 𝑎𝑛 − 𝑏𝑛
(ii) 𝑎 + 𝑏 ∣ 𝑎2𝑘+1 + 𝑏2𝑘+1
(iii) 𝑎 + 𝑏 ∣ 𝑎2𝑘 − 𝑏2𝑘 .
7. Determine all integers 𝑐 for which (𝑐6 − 3)/(𝑐2 + 2) is an integer.
8. Prove that 133 ∣ 11𝑛+2 + 122𝑛+1 for every 𝑛.
9. Find infinitely many 𝑛 satisfying 29 ∣ 2𝑛 + 5𝑛 .
10. Show that (𝑏 − 1)2 ∣ 𝑏𝑘 − 1 holds if and only if 𝑏 − 1 ∣ 𝑘.
* 11. Assume 2𝑏 − 1 ∣ 2𝑎 + 1. Prove that 𝑏 = 1 or 2.
10 1. Basic Notions
which again holds for exactly one integer 𝑞 (then 𝑞 is the “ceiling” (or upper integer
part) of 𝑎/𝑏: 𝑞 = ⌈𝑎/𝑏⌉, i.e. the smallest integer that is still greater than or equal to
𝑎/𝑏). □
The number 𝑞 is called the quotient and 𝑟 is called the (least non-negative) remain-
der (or residue) of the division algorithm. The divisibility 𝑏 ∣ 𝑎 holds (for 𝑏 ≠ 0) if and
only if the remainder is 0.
It is often more convenient to allow also negative remainders. The following vari-
ant of Theorem 1.2.1 refers to this situation and can be proven similarly.
Theorem 1.2.1A. To any integers 𝑎 and 𝑏 ≠ 0, there exist some uniquely determined
integers 𝑞 and 𝑟 satisfying
|𝑏| |𝑏|
𝑎 = 𝑏𝑞 + 𝑟 and − <𝑟≤ . ♣
2 2
In this case 𝑟 is called the remainder of least absolute value.
Example. Take 𝑎 = 30, 𝑏 = −8, then
30 = (−8)(−3) + 6 = (−8)(−4) − 2,
thus the least non-negative remainder is 6 and the remainder of least absolute value
is −2.
The proof of the next theorem shows how the division algorithm provides the rep-
resentation of positive integers in a number system.
Theorem 1.2.2. Let 𝑡 > 1 be a fixed integer. Then any positive integer 𝐴 has a unique
representation as
𝐴 = 𝑎𝑛 𝑡𝑛 + 𝑎𝑛−1 𝑡𝑛−1 + ⋯ + 𝑎1 𝑡 + 𝑎0 , where 0 ≤ 𝑎𝑖 < 𝑡 and 𝑎𝑛 ≠ 0. ♣
In this representation
𝐴 = 𝑎𝑛 𝑡𝑛 + 𝑎𝑛−1 𝑡𝑛−1 + ⋯ + 𝑎1 𝑡 + 𝑎0 ,
the numbers 𝑎𝑖 are the digits of 𝐴 in the number system of base 𝑡 (if 𝑡 > 10, then we have
to extend 0, 1, . . . , 9 with further digits). The above representation is denoted by
𝐴 = 𝑎𝑛 𝑎𝑛−1 . . . 𝑎1 𝑎0 [𝑡] or 𝐴 = 𝑎𝑛 𝑎𝑛−1 . . . 𝑎1 𝑎0 [𝑡]
(the overline may be needed to avoid ambiguity, i.e. not to confuse the string of digits
with a product). If 𝑡 = 10, then we generally omit the notation of the base of the
number system.
Exercises 1.2 13
In everyday life, we generally use the decimal system, but e.g. the binary system
can often be more useful in computers, among others. In the binary system we have
only two digits, 0 and 1, and to perform addition and multiplication we need only the
following simple tables (however, the representation of a number requires many more
digits than in the decimal case):
⊕ 0 1 ⊙ 0 1
0 0 1 0 0 0
1 1 10 1 0 1
Despite its simplicity, the division algorithm (independently of the least non-
negative or least absolute value character of the remainder) has a great significance
both from the practical and theoretical points of view. It can be efficiently used for
divisibility problems since only “the remainder counts” in many cases. Its most impor-
tant application is perhaps the Euclidean algorithm, which consists of a sequence of
division algorithms and will be treated in the next section.
Exercises 1.2
23. Write a positive integer in base 𝑏1 = 2. Then subtract 1 and consider the string as
a number in a larger base 𝑏2 . Subtract 1 again (in base 𝑏2 ) and read the string as a
number in a base 𝑏3 > 𝑏2 , etc. For example, we start with 23[10] = 10111[2] , then
subtracting 1 and switching to 𝑏2 = 5, we obtain 10110[5] = 655[10] . Subtracting
1 again (in base 5) and introducing 𝑏3 = 9, we get 10104[9] = 6646[10] , etc. What
happens if we continue this process indefinitely?
We often abbreviate the expression greatest common divisor as gcd using its ini-
tials. The notation is: 𝑑 = (𝑎, 𝑏), or 𝑑 = gcd(𝑎, 𝑏), or 𝑑 = gcd{𝑎, 𝑏}.
There is no greatest common divisor of 0 and 0 since every integer is a common
divisor and there is no maximal number among these.
In any other case, however, exactly one 𝑑 satisfies Definition 1.3.1 (for given 𝑎
and 𝑏), namely the maximal element of the set 𝐷 of common divisors; 𝐷 is not empty
since 1 is always a common divisor and 𝐷 is finite since a non-zero integer has only
finitely many divisors (see Exercise 1.1.12b).
Definition 1.3.2. A special common divisor of 𝑎 and 𝑏 is 𝛿, if
(i′ ) 𝛿 ∣ 𝑎, 𝛿 ∣ 𝑏
(ii′ ) if 𝑐 satisfies 𝑐 ∣ 𝑎 and 𝑐 ∣ 𝑏, then 𝑐 ∣ 𝛿. ♣
It is not at all straightforward, however, to show that the greatest common divi-
sor satisfies also the special property (ii′ ), i.e. that any two integers possess a special
common divisor.
Proof. We prove the existence of a special common divisor via the Euclidean algo-
rithm, which is one of the most ancient procedures in mathematics. We divide the first
number by the second one, then we divide the second number by the remainder, etc.,
and continue to divide the actual divisor by the actual remainder till we obtain 0 as a
remainder. We show that the procedure terminates and the last non-zero remainder is
a special common divisor of the two numbers.
Let us see the details. Assume that (e.g.) 𝑏 ≠ 0. If 𝑏 ∣ 𝑎, then 𝛿 = 𝑏.
If 𝑏 ∤ 𝑎, then we obtain for suitable integers 𝑞𝑖 and 𝑟 𝑖
𝑎 = 𝑏𝑞1 + 𝑟1 where 0 < 𝑟1 < |𝑏|
𝑏 = 𝑟1 𝑞2 + 𝑟2 where 0 < 𝑟2 < 𝑟1
𝑟1 = 𝑟2 𝑞3 + 𝑟3 where 0 < 𝑟3 < 𝑟2
⋯
𝑟𝑛−2 = 𝑟𝑛−1 𝑞𝑛 + 𝑟𝑛 where 0 < 𝑟𝑛 < 𝑟𝑛−1
𝑟𝑛−1 = 𝑟𝑛 𝑞𝑛+1 (𝑟𝑛+1 = 0).
The procedure terminates in finitely many steps since the remainders form a
strictly decreasing sequence of non-negative integers:
|𝑏| > 𝑟1 > 𝑟2 > . . . .
Now we verify that 𝑟𝑛 is a special common divisor of 𝑎 and 𝑏, indeed.
Proceeding through the equalities of the algorithm upwards, first we establish that
𝑟𝑛 is a common divisor of 𝑎 and 𝑏. The last equality implies 𝑟𝑛 ∣ 𝑟𝑛−1 . Using the next to
last equality, we get
𝑟𝑛 ∣ 𝑟𝑛−1 , 𝑟𝑛 ∣ 𝑟𝑛 ⟹ 𝑟𝑛 ∣ 𝑟𝑛−1 𝑞𝑛 + 𝑟𝑛 = 𝑟𝑛−2 .
Continuing upwards similarly, finally we arrive at 𝑟𝑛 ∣ 𝑏 and (from the first equality)
𝑟𝑛 ∣ 𝑎.
To show the special property, we proceed now downwards. Let 𝑐 ∣ 𝑎 and 𝑐 ∣ 𝑏,
then we have 𝑐 ∣ 𝑎 − 𝑏𝑞 = 𝑟1 from the first equality. Turning to the second equality, we
obtain
𝑐 ∣ 𝑏, 𝑐 ∣ 𝑟1 ⟹ 𝑐 ∣ 𝑏 − 𝑟1 𝑞2 = 𝑟2 .
Continuing downwards similarly, the next to last equality implies 𝑐 ∣ 𝑟𝑛 . □
Remarks: (1) Instead of least non-negative remainders, we can perform the Euclidean
algorithm also with remainders of least absolute value; then the absolute values
of the remainders form a strictly decreasing sequence of non-negative integers,
hence the procedure terminates in finitely many steps in this case, too.
1.3. Greatest Common Divisor 17
(2) As an integer and its negative behave equivalently concerning divisibility, we can
restrict ourselves to the positive value of the special common divisor which is (as
we have seen) equal to the greatest common divisor. Hence the notations (𝑎, 𝑏)
and gcd(𝑎, 𝑏) will mean this uniquely determined positive integer, and we shall
(generally) use the greatest common divisor name also for the special common
divisor.
(3) For a practical computation of the greatest common divisor, it is often more con-
venient to use the variant
(𝑎, 𝑏) = (𝑏, 𝑟1 ) = (𝑟1 , 𝑟2 ) = ⋯ = (𝑟𝑛−1 , 𝑟𝑛 ) = (𝑟𝑛 , 0) = 𝑟𝑛
of the Euclidean algorithm that is based on the simple relation (𝑎, 𝑏) = (𝑏, 𝑎−𝑘𝑏).
(4) At first sight, Definition 1.3.2, including the special property (ii′ ), might seem
artificial and unnecessary, but it is justified by the fact that it relies on divisibil-
ity relations only in contrast to Definition 1.3.1 which uses also ordering relations
(greater-smaller). Therefore, it is not surprising that—as it will soon turn out—we
can apply rather the special property (ii′ ) instead, both for theoretical and prac-
tical purposes. A further advantage of building the notion purely on divisibility
is that in certain sets of numbers (or more generally in most integral domains)
Definition 1.3.1 does not even make sense. An obvious reason for this is if we
cannot define an order (satisfying the usual “good” properties) in the set as, for
example, in certain subsets of the complex numbers. But we can run into a prob-
lem with Definition 1.3.1 also in sets that can be ordered, e.g., among the num-
bers 𝑐 + 𝑑√2 (where 𝑐 and 𝑑 are integers). Here we have infinitely many units
(see Exercise 1.1.22) and there is no maximal one among them. (If we consider
only common divisors where no two are associates, Definition 1.3.1 still makes
no sense since taking any two common divisors we can multiply the first one by a
unit so that the resulting associate will exceed the second one.) Therefore, in the
further chapters of number theory we shall always define the greatest common
divisor according to Definition 1.3.2.
Now we prove some important properties of the greatest common divisor (among
the integers).
Theorem 1.3.4. If 𝑐 > 0, then (𝑐𝑎, 𝑐𝑏) = 𝑐(𝑎, 𝑏). ♣
Proof. Consider the Euclidean algorithm determining (𝑎, 𝑏) and let 𝑟𝑛 = (𝑎, 𝑏) be the
last non-zero residue. Multiplying each equality by 𝑐, we obtain the Euclidean algo-
rithm producing (𝑐𝑎, 𝑐𝑏). Hence, here the last non-zero residue is (𝑐𝑎, 𝑐𝑏) = 𝑐𝑟𝑛 =
𝑐(𝑎, 𝑏). □
Proof. From the first equality of the Euclidean algorithm, we can express 𝑟1 as
𝑟1 = 𝑎 − 𝑏𝑞1 .
Another random document with
no related content on Scribd:
The Project Gutenberg eBook of Peck's Bad Boy in
an airship
This ebook is for the use of anyone anywhere in the United States
and most other parts of the world at no cost and with almost no
restrictions whatsoever. You may copy it, give it away or re-use it
under the terms of the Project Gutenberg License included with this
ebook or online at www.gutenberg.org. If you are not located in the
United States, you will have to check the laws of the country where
you are located before using this eBook.
Language: English
Copyright, 1908
By THOMPSON & THOMAS
CONTENTS.
CHAPTER I.
The Bad Boy Wants to Be an Orphan—The Bad Boy Goes to an Orphan
Asylum—The Government Gives the Bad Boy’s Pa an Appointment to
Travel Over the World and Get Information About Airships, Dirigible
Balloons and Everything to Help Our Government Know What Other
Governments are Doing in Case of War 15
CHAPTER II.
No Encouragement for Inventive Genius in Orphan Home—The Boy Uses
His New Invention, a Patent Clothes Wringer, in Milking 28
CHAPTER III.
The Boy Escapes from Orphan Asylum—The Boy and His Chum Had Red
Letter Days—The Boy is Adopted by New Friends 42
CHAPTER IV.
A Bad Railroad Wreck—The Boy Contrasts Their Ride to One in a Parlor
Car—The Lawyer is the Greatest Man on Earth—The Boy Settles His
Claim for $20 55
CHAPTER V.
The Bad Boy Leaves St. Louis in a Balloon—The Boy Makes a Trip to San
Francisco and Joins Evans’ Fleet—The Police Arrest Boy and Tie Up
Balloon 67
CHAPTER VI.
The Balloon Lands in Delaware—The Boy Visits the Battleships—They 78
Scour the Boy With a Piece of Brick and Some Laundry Soap—The Boy
Investigates the Mechanism of the Battleships—The Boy Goes With the
Ships as a Mascot
CHAPTER VII.
A Storm Comes from the Coast of Cuba—Everyone Goes to Sleep on the
Ship Except the Watchman and Pilot—The Bad Boy is Put in the
Dungeon—The Captain Says to Throw the Boy Overboard to Feed the
Sharks 91
CHAPTER VIII.
The Boy Dresses Up in His Sunday Clothes and Tells the Captain He is
Ready to Die—The Crew Throw a Steer Overboard to Feed a School of
Sharks—The Boy Produces His New Electric Battery—The Bad Boy
Makes a Trip to France to Meet His Pa 104
CHAPTER IX.
The Bad Boy Arrives in France—The Boy’s Pa is Suspected of Being an
Anarchist—The Boy Finds Pa Seated at a Large Table Bragging About
America—He Told Them the Men in America Were All Millionaires and
Unmarried 131
CHAPTER X.
Pa Had the Hardest Time of His Life in Paris—Pa Drinks Some Goat Milk
Which Gives Him Ptomaine Poison in His Inside Works—Pa Attends the
Airship Club in the Country—Pa Draws on American Government for
$10,000 145
CHAPTER XI.
The Boy and His Pa Leave France and Go to Germany, Where They Buy
an Airship—They Get the Airship Safely Landed—Pa and the Boy With
the Airship Start for South Africa—Pa Shows the Men What Power He
Has Over the Animal Kingdom 157
CHAPTER XII.
All Kinds of Climates in South Africa—Pa Hires Men to Capture Wild
Animals—The Boy and His Pa Capture Some Tigers and a Big Lion—
They Have a Narrow Escape from a Rhinoceros 170
CHAPTER XIII.
Pa Was a Hero After Capturing Two Tigers and a Lion—Pa Had an Old
Negro With Sixty Wives Working for Him—Pa Makes His Escape in
Safety—Pa Goes to Catch Hippopotamusses 181
CHAPTER XIV.
Pa Was Blackmailed and Scared Out of Lots of Money—Pa Teaching the
Natives to Speak English—Pa Said the Natives Acted Like Human
Beings—Pa Buys Some Animals in the Jungle 194
CHAPTER XV.
The Idea of Airships is All Right in Theory, but They are Never Going to Be
a Reliable Success—Pa Drowns the Lions Out With Gas—The Bad Boy
and His Pa Capture a Couple of Lions—Pa Moves Camp to Hunt Gorillas 207
CHAPTER XVI.
The Boy’s Pa Shows Bravery in the Jungles in Africa—Four Gorillas Chase
Pa—The Boy and His Pa Don’t Sleep Much at Night—The Boy
Discovers a Marsh Full of Wild Buffaloes 220
CHAPTER XVII.
The Boy’s Experience With an African Buffalo—The Boy’s Pa Shoots
Roman Candles to Scare the Buffaloes—The Boy’s Pa Tames the Wild
Animals 234
CHAPTER XVIII.
The Boy and His Pa Start for the Coast in an Airship—Pa Saluted the
Crowd as We Passed Over Them—The Airship Lands Amid a Savage
Tribe—The King of the Tribe Escorts Pa and the Boy to the Palace 246
CHAPTER XIX.
The Boy’s Pa Becomes King over the Negroes—Pa Shows the Natives
How to Dig Wells—Pa Teaches the Natives to become Soldiers—The
Boy Uses a Dozen Nigger Chasers and Some Roman Candles—The
Boy, His Pa and the Natives Assist at the 4th of July Celebration 258
ILLUSTRATIONS.
The private took me by the wrist and gave me a jerk and landed me
in the laundry, and told me to strip off, and when I had removed my
clothes and folded them and laid them on a table, he took the clothes
away from me, and then told me to climb into a laundry tub, and he
turned cold water on me and gave me a bar of yellow laundry soap,
and after I had lathered myself he took a scrubbing brush, such as
floors are scrubbed with, and proceeded in one full swoop to peel the
hide off of me with a rough crash towel till you could see my veins
and arteries, and inside works as well as though you had used X-
rays, and when I was ready to die and wanted to, I yelled murder,
and he put his hand over my mouth so hard that he loosened my
front teeth, and I guess I died right there or fainted, for when I came
to, and thought the resurrection morning, that they used to tell me
about in the Sunday School, had come. I found myself dressed in a
sort of combination shirt and drawers, like a bunny nightie, made of
old saddle blankets, and he told me that was the uniform of the
orphanage and that I could go out and play for fifteen minutes, after
which the bell would ring and I could go from play to work. Gosh, but
I was glad to get out doors, but when I began to breathe the fresh air,
and scratch myself where the saddle blanket clothes pricked me,
about fifty boys, who were evidently sophomores in the orphanage,
came along, and made a rush for me, to haze me as a freshman.
Well, they didn’t do a thing to me. They tied a rope around one
ankle, and threw the rope over a limb, and pulled me off the ground,
and danced a war dance around me and run thistles up my trouser’s
legs, and spanked me with a board with slivers in it, and let me down
and walked over me in a procession, singing “There’ll be a hot time
in the old town to-night.” I laughed all the time, because that is the
way freshmen do in college when they are being murdered, and I
thought my new associates would like me better if I died game. Just
before I died game the bell rang, and the one eyed pirate and his
chief of staff came out and said we would go to work, and the boys
were divided into squads and put to work, some husking corn, others
sweeping up dead leaves, others milking cows, and doing everything
necessary around a farm.
Before I was set to work I had a few minutes of silent reflection, and I
thought of my changed condition from my porcelain lined bath tub
with warm water and soft towels, to that bath in the laundry, and the
skinning process of preparing a boy for a better life.
Then what do you suppose they set me to work at? Skinning bull
heads and taking out the insides. It seems the boys catch bull heads
in a pond, and the bull heads are used for human food, and the
freshest boys were to dress them. Well, I wasn’t going to kick on
anything they gave me for a stunt, so I put on an apron, and for four
hours I skinned and cut open bull heads in a crude sort of way, until I
was so sick I couldn’t protect myself from the assaults of the live bull
heads, and the cook said I done the job so well that she would ask to