You are on page 1of 53

Number Theory 1st Edition Róbert

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 ...

Invitation to Number Theory 1st Edition Ore

https://textbookfull.com/product/invitation-to-number-theory-1st-
edition-ore/

Auxiliary polynomials in number theory 1st Edition


Masser

https://textbookfull.com/product/auxiliary-polynomials-in-number-
theory-1st-edition-masser/

Algebraic Number Theory - A Brief Introduction 1st


Edition J.S. Chahal

https://textbookfull.com/product/algebraic-number-theory-a-brief-
introduction-1st-edition-j-s-chahal/

Invitation to Number Theory 2nd Edition Oystein Ore

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/

Math 223a Algebraic Number Theory notes Alison Miller

https://textbookfull.com/product/math-223a-algebraic-number-
theory-notes-alison-miller/

MA257 Introduction to Number Theory J. E. Cremona

https://textbookfull.com/product/ma257-introduction-to-number-
theory-j-e-cremona/

Statistical independence in probability analysis number


theory Kac

https://textbookfull.com/product/statistical-independence-in-
probability-analysis-number-theory-kac/

An Introduction to Number Theory with Cryptography,


Second Edition Kraft

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

2010 Mathematics Subject Classification. Primary 11-00,


11-01, 11A05, 11A07, 11A25, 11A41.

For additional information and updates on this book, visit


www.ams.org/bookpages/amstext-48

Library of Congress Cataloging-in-Publication Data


Names: Freud, Róbert, author.
Title: Number theory / Róbert Freud, Edit Gyarmati.
Description: Providence, Rhode Island: American Mathematical Society, [2020] | Series: Pure and
applied undergraduate texts, 1943-9334; volume 48 | Includes bibliographical references and
index.
Identifiers: LCCN 2020014015 | ISBN 9781470452759 (paperback) | ISBN 9781470456917 (ebook)
Subjects: LCSH: Number theory. | AMS: Number theory – General reference works (handbooks,
dictionaries, bibliographies, etc.). | Number theory – Instructional exposition (textbooks,
tutorial papers, etc.). | Number theory – Elementary number theory – Multiplicative structure;
Euclidean algorithm; greatest common divisors. | Number theory – Elementary number theory
– Congruences; primitive roots; residue systems. | Number theory – Elementary number theory
– Arithmetic functions; related numbers; inversion formulas. | Number theory – Elementary
number theory – Primes.
Classification: LCC QA241 .F74 2020 | DDC 512.7–dc23
LC record available at https://lccn.loc.gov/2020014015

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 1. Basic Notions 7


1.1. Divisibility 7
Exercises 1.1 9
1.2. Division Algorithm 11
Exercises 1.2 13
1.3. Greatest Common Divisor 15
Exercises 1.3 19
1.4. Irreducible and Prime Numbers 21
Exercises 1.4 23
1.5. The Fundamental Theorem of Arithmetic 24
Exercises 1.5 27
1.6. Standard Form 28
Exercises 1.6 33

Chapter 2. Congruences 37
2.1. Elementary Properties 37
Exercises 2.1 40

v
vi Contents

2.2. Residue Systems and Residue Classes 41


Exercises 2.2 44
2.3. Euler’s Function 𝜑 46
Exercises 2.3 49
2.4. The Euler–Fermat Theorem 50
Exercises 2.4 51
2.5. Linear Congruences 52
Exercises 2.5 57
2.6. Simultaneous Systems of Congruences 58
Exercises 2.6 64
2.7. Wilson’s Theorem 66
Exercises 2.7 67
2.8. Operations with Residue Classes 68
Exercises 2.8 70

Chapter 3. Congruences of Higher Degree 73


3.1. Number of Solutions and Reduction 73
Exercises 3.1 75
3.2. Order 76
Exercises 3.2 78
3.3. Primitive Roots 80
Exercises 3.3 84
3.4. Discrete Logarithm (Index) 86
Exercises 3.4 87
3.5. Binomial Congruences 88
Exercises 3.5 90
3.6. Chevalley’s Theorem, Kőnig–Rados Theorem 91
Exercises 3.6 95
3.7. Congruences with Prime Power Moduli 96
Exercises 3.7 98

Chapter 4. Legendre and Jacobi Symbols 101


4.1. Quadratic Congruences 101
Exercises 4.1 103
4.2. Quadratic Reciprocity 104
Exercises 4.2 108
4.3. Jacobi Symbol 109
Exercises 4.3 111
Contents vii

Chapter 5. Prime Numbers 113


5.1. Classical Problems 113
Exercises 5.1 117
5.2. Fermat and Mersenne Primes 118
Exercises 5.2 124
5.3. Primes in Arithmetic Progressions 125
Exercises 5.3 127
5.4. How Big Is 𝜋(𝑥)? 128
Exercises 5.4 133
5.5. Gaps between Consecutive Primes 134
Exercises 5.5 139
5.6. The Sum of Reciprocals of Primes 140
Exercises 5.6 147
5.7. Primality Tests 149
Exercises 5.7 157
5.8. Cryptography 160
Exercises 5.8 163

Chapter 6. Arithmetic Functions 165


6.1. Multiplicative and Additive Functions 165
Exercises 6.1 167
6.2. Some Important Functions 170
Exercises 6.2 173
6.3. Perfect Numbers 175
Exercises 6.3 177
6.4. Behavior of 𝑑(𝑛) 178
Exercises 6.4 185
6.5. Summation and Inversion Functions 186
Exercises 6.5 189
6.6. Convolution 190
Exercises 6.6 193
6.7. Mean Value 195
Exercises 6.7 206
6.8. Characterization of Additive Functions 207
Exercises 6.8 209

Chapter 7. Diophantine Equations 211


7.1. Linear Diophantine Equation 212
Exercises 7.1 214
viii Contents

7.2. Pythagorean Triples 215


Exercises 7.2 217
7.3. Some Elementary Methods 218
Exercises 7.3 221
7.4. Gaussian Integers 223
Exercises 7.4 229
7.5. Sums of Squares 230
Exercises 7.5 235
7.6. Waring’s Problem 236
Exercises 7.6 240
7.7. Fermat’s Last Theorem 241
Exercises 7.7 249
7.8. Pell’s Equation 251
Exercises 7.8 255
7.9. Partitions 256
Exercises 7.9 261

Chapter 8. Diophantine Approximation 263


8.1. Approximation of Irrational Numbers 263
Exercises 8.1 268
8.2. Minkowski’s Theorem 270
Exercises 8.2 274
8.3. Continued Fractions 275
Exercises 8.3 280
8.4. Distribution of Fractional Parts 281
Exercises 8.4 283

Chapter 9. Algebraic and Transcendental Numbers 285


9.1. Algebraic Numbers 285
Exercises 9.1 288
9.2. Minimal Polynomial and Degree 288
Exercises 9.2 290
9.3. Operations with Algebraic Numbers 291
Exercises 9.3 294
9.4. Approximation of Algebraic Numbers 296
Exercises 9.4 300
9.5. Transcendence of 𝑒 301
Exercises 9.5 306
9.6. Algebraic Integers 306
Contents ix

Exercises 9.6 308

Chapter 10. Algebraic Number Fields 311


10.1. Field Extensions 311
Exercises 10.1 314
10.2. Simple Algebraic Extensions 315
Exercises 10.2 319
10.3. Quadratic Fields 320
Exercises 10.3 330
10.4. Norm 331
Exercises 10.4 334
10.5. Integral Basis 335
Exercises 10.5 340

Chapter 11. Ideals 341


11.1. Ideals and Factor Rings 341
Exercises 11.1 345
11.2. Elementary Connections to Number Theory 347
Exercises 11.2 350
11.3. Unique Factorization, Principal Ideal Domains, and Euclidean Rings 350
Exercises 11.3 355
11.4. Divisibility of Ideals 357
Exercises 11.4 361
11.5. Dedekind Rings 363
Exercises 11.5 372
11.6. Class Number 373
Exercises 11.6 376

Chapter 12. Combinatorial Number Theory 377


12.1. All Sums Are Distinct 377
Exercises 12.1 384
12.2. Sidon Sets 386
Exercises 12.2 393
12.3. Sumsets 394
Exercises 12.3 402
12.4. Schur’s Theorem 403
Exercises 12.4 407
12.5. Covering Congruences 408
Exercises 12.5 412
x Contents

12.6. Additive Complements 412


Exercises 12.6 418

Answers and Hints 421


A.1. Basic Notions 421
A.2. Congruences 431
A.3. Congruences of Higher Degree 442
A.4. Legendre and Jacobi Symbols 452
A.5. Prime Numbers 455
A.6. Arithmetic Functions 467
A.7. Diophantine Equations 483
A.8. Diophantine Approximation 501
A.9. Algebraic and Transcendental Numbers 505
A.10. Algebraic Number Fields 510
A.11. Ideals 516
A.12. Combinatorial Number Theory 521

Historical Notes 531

Tables 537
Primes 2–1733 538
Primes 1741–3907 539
Prime Factorization 540
Mersenne Numbers 541
Fermat Numbers 542

Index 543
Introduction

The book is intended to serve several purposes; being a

(A) Theoretical textbook for teaching number theory at universities and colleges,
mostly for majors in mathematics, applied mathematics, mathematics education,
and computer science.

(B) Collection of exercises and problems for the above audience.

(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.

Structure of the book


To achieve the above goals, the discussion starts at an absolutely basic level and the
first two chapters are based solely on high school mathematics. This part uses elemen-
tary and non-abstract tools, and instead of overly compact reasoning, detailed expla-
nations facilitate better understanding for beginners. On the other hand, we lay stress
on presenting theorems illustrating the deeper coherence of the material and on proofs
containing nice and difficult ideas.
The subsequent chapters enter more and more deeply into the discussion of vari-
ous topics in number theory. We strive to present a wide panorama of this extremely
multi-colored world (including many old but still unsolved problems) and to discuss
many methods elaborated through many centuries to treat these questions. Where pos-
sible, the newest results of number theory are inserted. Several parts apply some results
and methods from other fields of mathematics too, mostly from (classical, linear, and
abstract) algebra, analysis, and combinatorics.

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).

Short overview of the individual chapters


The first two chapters are introductory, discussing the divisibility of integers, the great-
est common divisor, unique prime factorization, and elementary facts about congru-
ences. A firm mastery of this material is indispensable for understanding the later
chapters.
In Chapters 3 and 4 we continue to develop the theory of congruences.
Short overview of the individual chapters 3

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.

Budapest, February 2019


Róbert Freud
Institute of Mathematics, University Eötvös Loránd
1117 Budapest, Pázmány Péter sétány 1c, Hungary
freud@caesar.elte.hu
Chapter 1

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:

Definition 1.1.1. An integer 𝑏 is called a divisor of an integer 𝑎 if there exists some


integer 𝑞 satisfying 𝑎 = 𝑏𝑞. ♣

Notation: 𝑏 ∣ 𝑎. This relation can be expressed also saying that 𝑎 is divisible by 𝑏,


or 𝑎 is a multiple of 𝑏. If there is no integer 𝑞 satisfying 𝑎 = 𝑏𝑞, then 𝑏 is not a divisor
of 𝑎, which is denoted by 𝑏 ∤ 𝑎.
In the following, we shall use the words “integer” and “number” as synonyms
unless stated otherwise.

7
8 1. Basic Notions

The number 0 is divisible by every integer (including 0 itself!) as 0 = 𝑏 ⋅ 0 for any


integer 𝑏. The other extreme contains those numbers which divide every integer:
Definition 1.1.2. A number dividing every integer is called a unit. Multiplying an
integer 𝑐 by a unit, we get an associate of 𝑐. ♣
Theorem 1.1.3. There are two units among the integers: 1 and −1. ♣

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. ♣

Proof. As 𝜀 divides also 1, therefore 1 = 𝜀𝑟 with a suitable 𝑟. If 𝑎 = 𝑏𝑞, then 𝛿𝑎 =


(𝜀𝑏)(𝛿𝑞𝑟), hence 𝜀𝑏 ∣ 𝛿𝑎, as claimed. □

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 𝑠. ♣

Properties (i)–(iii) express that divisibility of integers is a reflexive and transitive


relation that is not symmetric (in fact, it is nearly antisymmetric). From (iv), we mostly
use the first three implications, each of which is a special case of the last one (𝑟 = 𝑠 = 1;
𝑟 = 1, 𝑠 = −1; and 𝑟 = 𝑘, 𝑠 = 0, respectively).
Exercises 1.1 9

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

12. Prove the following propositions.


(a) If 𝑏 ∣ 𝑎 and 𝑎 ≠ 0, then |𝑏| ≤ |𝑎|.
(b) Every non-zero integer has only finitely many divisors.
13. Which numbers are equal to the sum of their (a) two; (b) three (not necessarily
distinct) positive divisors?
14. Verify the following divisibility laws. A number is divisible by
(a) 3 or 9 if and only if the sum of its digits is divisible by 3 or 9, respectively;
(b) 4 or 25 if and only if the number formed of its last two digits is divisible by 4
or 25, respectively;
(c) 8 or 125 if and only if the number formed of its last three digits is divisible by
8 or 125, respectively;
(d) 11 if and only if the sum of its digits with alternating signs is divisible by 11.
15. Does there exist a power of 2 (with a positive integer exponent) containing all the
ten digits with the same multiplicity?
* 16. Does there exist a multiple of 21000 having only the digits 1 and 2?
17. Show that
(a) the product of any three consecutive integers is divisible by 6
* (b) the product of any 𝑘 consecutive integers is divisible by 𝑘!.
S 18. Let 𝑛 > 1 be an arbitrary integer. Romeo picks one of the positive divisors of 𝑛, let
it be 𝑑1 . Then Juliet chooses a positive divisor 𝑑2 that does not divide 𝑑1 . Again,
Romeo takes 𝑑3 that divides neither 𝑑1 , nor 𝑑2 , etc. Whoever must pick 𝑛 itself
loses the game. Who has a winning strategy if 𝑛 is
(a) 16
(b) 31111
(c) 10
(d) 50
** (e) 123456789101112131415?
* 19. Prove that taking any 𝑛 + 1 elements from 1, 2, . . . , 2𝑛, one of the numbers will
divide another one.
20. Though the divisibility 0 ∣ 0 holds, why does the division 0/0 make no sense?
21. Restricting ourselves to the set of even numbers, characterize those elements that
have
(a) no divisors at all
(b) exactly two (positive or negative) divisors?
22. We investigate divisibility relations among the (special real) numbers 𝑐 + 𝑑√2
where 𝑐 and 𝑑 are arbitrary integers.
(a) Determine whether or not 12 − 7√2 is divisible by 3 + 4√2.
1.2. Division Algorithm 11

(b) Verify that 1 + √2 is a unit.


(c) Demonstrate that there are infinitely many units.
(d) What is the number of divisors of any element?
(e) Prove that 𝑐 + 𝑑√2 is a unit if and only if |𝑐2 − 2𝑑 2 | = 1.
S* (f) Show that the units are exactly the elements ±(1+ √2)𝑘 where 𝑘 is an arbitrary
integer.
(g) How many times does it occur among the integers that the double of a square
number is bigger or smaller by one, than another square?
23. An integral domain is a commutative ring without zero divisors (containing at least
two elements), i.e. where addition and multiplication are commutative and asso-
ciative, there exists a zero element, every element has a negative (an additive in-
verse), the distributive law is valid, and the product of two non-zero elements is
never zero. (Roughly speaking, we have the usual “nice” properties seen in the in-
tegers.) We can define divisibility and unit according to Definitions 1.1.1 and 1.1.2.
Prove the following propositions (a)-(c).
S (a) There exists a unit if and only if multiplication has an identity element (i.e. an
element 𝑒 satisfying 𝑒𝑎 = 𝑎 for every 𝑎).
(b) The units are exactly the divisors of the identity element, or, stated otherwise,
the units are those elements that have a multiplicative inverse.
(c) Any divisor of a unit and the product or quotient of two units are units.
(d) Investigate the statements of Theorem 1.1.5.

1.2. Division Algorithm


Theorem 1.2.1. To any integers 𝑎 and 𝑏 ≠ 0, there exist some uniquely determined
integers 𝑞 and 𝑟 satisfying
𝑎 = 𝑏𝑞 + 𝑟 and 0 ≤ 𝑟 < |𝑏|. ♣

Proof. Assume first 𝑏 > 0. The condition


0 ≤ 𝑟 = 𝑎 − 𝑏𝑞 < 𝑏
holds if and only if
𝑏𝑞 ≤ 𝑎 < 𝑏(𝑞 + 1),
i.e.
𝑞 ≤ 𝑎/𝑏 < 𝑞 + 1.
Clearly, there exists exactly one such integer 𝑞 namely the floor (or lower integer part)
of 𝑎/𝑏, i.e. the biggest integer that is not greater than 𝑎/𝑏: 𝑞 = ⌊𝑎/𝑏⌋.
If 𝑏 < 0, then the condition
0 ≤ 𝑟 = 𝑎 − 𝑏𝑞 < |𝑏| = −𝑏
is equivalent to
𝑞 ≥ 𝑎/𝑏 > 𝑞 − 1
12 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. ♣

Proof. From 0 ≤ 𝑎0 < 𝑡 and 𝑡 ∣ 𝐴 − 𝑎0 , we have that 𝑎0 is the least non-negative


remainder when 𝐴 is divided by 𝑡 in the division algorithm, hence there exists exactly
one appropriate 𝑎0 . Denoting the quotient by 𝑞0 , we get
𝐴 − 𝑎0
𝑞0 = = 𝑎𝑛 𝑡𝑛−1 + 𝑎𝑛−1 𝑡𝑛−2 + ⋯ + 𝑎2 𝑡 + 𝑎1 .
𝑡
As in the previous situation, we find 𝑎1 as the least non-negative remainder when 𝑞0 is
divided by 𝑡. Continuing the process, we obtain the existence and uniqueness of every
other 𝑎𝑖 , as well. □

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

Example. 38 = 38 [10] = 123[5] since 38 = 1 ⋅ 52 + 2 ⋅ 5 + 3 ⋅ 1.

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

(Unless stated otherwise, all numbers are in decimal representation.)


1. Dividing 10849 and 11873 by the same three digit positive integer, we obtain the
same (non-negative) remainder. What is this remainder?
2. Show that to every 𝑚, there exist infinitely many powers of 2 such that the differ-
ence of any two of them is divisible by 𝑚.
3. Prove that given 𝑛 integers, we can always select some of them (one, or more, or
all) so that their sum is divisible by 𝑛.
4. Show that every positive integer has a non-zero multiple consisting of digits 0 and 1
only.
* 5. The sequence of Fibonacci numbers is defined by the recursion
𝜑0 = 0, 𝜑1 = 1, 𝜑𝑗+1 = 𝜑𝑗 + 𝜑𝑗−1 , 𝑗 = 1, 2, . . . .
The first few elements are
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, . . . .
Prove that every 𝑚 has infinitely many multiples among the Fibonacci numbers.
(Remark: Some books do not consider 0 as a Fibonacci number and define the se-
quence by the above recursion starting with 𝜑1 = 𝜑2 = 1. This causes no confusion
if we agree that by the “𝑛th Fibonacci number” we always mean 𝜑𝑛 .)
6. What are the possible remainders of a square when divided by (a) 3 (b) 4 (c) 5 and
(d) 8?
7. Show that the sum of squares of 12 consecutive integers is never a square.
14 1. Basic Notions

8. (a) Can all digits of a square (greater than 9) be the same?


* (b) Find all squares greater than 81 having an even number of digits where all
digits of the first half are the same and also all digits of the second half are the
same.
9. Verify that the sum of three odd powers of an integer is always divisible by 3.
* 10. Take eight arbitrary distinct integers and form the product of their pairwise differ-
ences. What is the largest 𝑘 for which this product is divisible by 2𝑘 in any case?
11. How many positive integers with at most 10 digits are divisible by the floor of their
square root? (E.g. 12 has this property since ⌊√12⌋ = 3 divides 12, but 22 does not
because 22 is not a multiple of ⌊√22⌋ = 4.)
12. What is the connection between ⌊𝑎 + 𝑏⌋ and ⌊𝑎⌋ + ⌊𝑏⌋?
13. Can we perform the division algorithm among the even numbers (i.e. are the
analogs of Theorems 1.2.1–1.2.1A valid)?
14. Show that by rephrasing the rules in Exercise 1.1.14 suitably, we can determine
also the remainder (and not just check divisibility). How do these laws generalize
for number systems of other bases?
15. We find that 23 + 46 + 12 + 18 = 99 and 99 divides 23461218, obtained by joining
the above terms into a string. Is this just a fortunate coincidence?
16. Form the sum of digits of 12231001 , then the sum of digits of the number obtained,
etc. till we arrive at a one digit number. What is this final integer?
17. How can we transform quickly the representations of an integer between number
systems of base 3 and 9 into each other? Between which other pairs of number
systems can we establish similar quick conversions?
18. A positive integer 𝑛 has four digits in some number system and two digits in the
number system of base one larger. Determine 𝑛.
19. Converting 740 into a number system of base 𝑡, we obtain a four digit integer whose
last digit is 5. Determine 𝑡.
20. We want to devise ten weights by which a two-armed balance can measure all in-
teger grams up to a limit as large as possible. How should we choose these weights
if we can put them
(a) only onto one of the pans of the balance
* (b) onto both pans?
21. Examine roughly how many more digits are needed to represent a large integer in
base 2 than in base 10. The precise formulation of the problem is: Let 𝐵(𝑛) and
𝐷(𝑛) be the number of digits of 𝑛 in binary and decimal representations. Show
that the sequence 𝐵(𝑛)/𝐷(𝑛) tends to a limit as 𝑛 → ∞ and determine its value.
22. Number systems with varying base. Let 𝑡1 , 𝑡2 , . . . be arbitrary integers greater than 1.
Show that every positive integer 𝐴 has a unique representation as
𝐴 = 𝑎𝑛 𝑡𝑛 𝑡𝑛−1 . . . 𝑡1 + 𝑎𝑛−1 𝑡𝑛−1 . . . 𝑡1 + ⋯ + 𝑎1 𝑡1 + 𝑎0
where 0 ≤ 𝑎𝑖 < 𝑡 𝑖+1 and 𝑎𝑛 ≠ 0.
1.3. Greatest Common Divisor 15

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?

1.3. Greatest Common Divisor


Definition 1.3.1. The greatest common divisor of 𝑎 and 𝑏 is 𝑑 if
(i) 𝑑 ∣ 𝑎, 𝑑 ∣ 𝑏
(ii) if 𝑐 satisfies 𝑐 ∣ 𝑎 and 𝑐 ∣ 𝑏, then 𝑐 ≤ 𝑑. ♣

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 𝑐 ∣ 𝛿. ♣

Thus, a special common divisor is a common divisor which is a multiple of all


common divisors.
The definition implies that if two integers possess a special common divisor, then
it is unique apart from a unit factor. This means that on the one hand, any associate of a
special common divisor is a special common divisor again, and on the other hand, two
special common divisors must be associates. Exercise 1.3.10 requires the verification
of this fact.
For 𝑎 = 𝑏 = 0, the special common divisor is 0 by definition.
In what follows, we disregard this case and assume that at least one of 𝑎 and 𝑏
differs from zero.
Now we show that if there exists a special common divisor 𝛿, then it can only be
an associate of the greatest common divisor 𝑑. By (ii) we have
|𝛿| ≤ 𝑑,
but (ii′ ) implies 𝑑 ∣ 𝛿, hence
𝑑 ≤ |𝛿|.
Combining the two inequalities, we get 𝑑 = |𝛿|, so 𝛿 = ±𝑑.
16 1. Basic Notions

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.

Theorem 1.3.3. Any two integers have 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 (𝑐𝑎, 𝑐𝑏) = 𝑐𝑟𝑛 =
𝑐(𝑎, 𝑏). □

For another proof of Theorem 1.3.4, see Exercise 1.3.11.


Theorem 1.3.5. The greatest common divisor of integers 𝑎 and 𝑏 can be expressed as
(𝑎, 𝑏) = 𝑎𝑢 + 𝑏𝑣 with suitable integers 𝑢 and 𝑣. ♣

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.

Title: Peck's Bad Boy in an airship

Author: George W. Peck

Illustrator: Charles Lederer

Release date: November 27, 2023 [eBook #72237]

Language: English

Original publication: Chicago: Stanton and Van Vliet Co, 1908

Credits: Stephen Hutcheson, Gísli Valgeirsson, Rod Crawford, Dave


Morgan and the Online Distributed Proofreading Team at
https://www.pgdp.net

*** START OF THE PROJECT GUTENBERG EBOOK PECK'S BAD


BOY IN AN AIRSHIP ***
PECK’S BAD BOY IN AN
AIRSHIP
“Take That from Your Little Hennery.”
Peck’s Bad Boy
in an Airship
By Hon. Geo. W. Peck
Author of Peck’s Bad Boy, Peck’s Bad Boy Abroad, Peck’s Bad Boy
With the Circus, Peck’s Bad Boy With the Cowboys, Etc.

Humorous and Interesting


A story relating the adventures of Peck’s Bad Boy and
His Pa who are sent to Europe to investigate airships
with an idea of using them in the United States Navy.
Tells of their adventures in Europe also in South Africa
where the airship is used in hunting wild animals.

Illustrated by Charles Lederer


The Celebrated Illustrator and Cartoonist
Copyright, 1908
By W. G. CHAPMAN

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.

Gee, My Ideas of an Orphan Home Got a Shock.


The Way Freshmen Do in College When They’re Being
Murdered.
Gosh, But I Never Had Such an Excursion.
Grabbed the Balloon Rope and Gave it a Hitch Around the
Pole.
Any Man That Lays Hands on the Government Mail Can
Be Imprisoned for Life for Treason.
Hit the Chief of Police With a Bottle.
They Pulled Me Through the Forty-Foot Gun to Swab it
Out.
When it Exploded the Jap Was the Scaredest Person I
Ever Saw.
The Boss of the Boat Ordered Me Pulled Out With a Boat
Hook.
I Am Thy Father’s Ghost—Come on in, the Water’s Fine.
The Captain Got Upon a Chair and Pulled a Revolver and
Was Going to Shoot.
I Gave Him a Squeeze That Sent a Shock Through Him
That Loosened His Teeth.
Pa’s Face Was Scratched So They Sent Him to the Pest
House.
After Pa Had Been Ducked in the Fountain They Charged
for Two Ducks He Killed by Falling on Them.
The Fireworks Went Off. The Woman Threw a Fit and Pa
Raised Out of the Smoke.
Up She Went With the Inventor Steering and Pa Hanging
on for Dear Life.
Pa Gave a Honk Honk Like an Auto, But the Lion Wasn’t
Frightened So You Would Notice.
When Pa Found the Snake Coiled Up on His Blanket He
Threw a Fit.
Looking Him Square in the Face I began to Chant, Ene-
Mene-Miny-Mo.
Pa Astride of a Zebra, Has Frightened the Elephants Into a
Stampede by Playing “A Hot Time” on a Mouth Organ.
Pa Made a Lunge and Fell on Top of the Little Elephant,
Which Began to Make a Noise Like a Baby.
“There’s Your Lions, About a Dozen, Captured Down in
That Hole; Help Yourselves,” Said Pa.
“Get in There, You Measly Cur Dog,” Said Pa, Kicking the
Big Lion at Every Jump.
Pa Stopped the Music and Repeated an Old Democratic
Speech of His, and They Acted Just Like a Caucus.
All He Had to Do Was Play “Supper is Now Ready in the
Dining Car.”
Some of Those Negroes are Running Yet, and Will, No
Doubt, Come Out at Cairo, Egypt.
Pa Had to Put His Foot on Their Necks and Acknowledge
Him Their King and Protector.
Peck’s Bad Boy in an Airship.
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.

I have always wanted to be an orphan and I guess now I have got


my wish.
I have watched orphans a whole lot and they have seemed to me to
have the easiest job outside of politics.
To see a good mess of orphans at an Orphan Asylum, with no
parents to butt in and interfere with your enjoyment has seemed to
me to be an ideal existence.
When a boy has a father that he has to watch constantly to keep him
from going wrong he has no time to have any fun, but to belong to a
syndicate of orphans, with an easy old maid matron to look after the
whole bunch, an individual orphan who has ginger in him can have
the time of his young life. At least that is the way it has always
seemed to me.
They set on the food at an orphanage, and if you have a pretty good
reach, you can get enough corralled around your plate to keep the
wolf from the door, and when it comes to clothes, you don’t have to
go to a tailor, or a hand me down store, and take something you
don’t want because it is cheap, but you take any clothes that are
sent in by charitable people, which have been worn enough so there
is no style about them, and no newness to wear off by rolling in the
grass, and you put them on and let it go at that, if they do smell of
moth balls.
Pa has skipped and I am left alone and I shall enter as a freshman in
an Orphan Asylum, and later go out into the world and travel on my
shape.
Pa took me to Washington and for a week he was visiting the
different Departments, and nights he would talk in his sleep about air
ships and balloons, and forts and battleships, and about going
abroad, until I thought he was getting nutty.
One day he called me up to our room in the hotel and after locking
the door, and plugging up the keyhole with chewed paper he said:
“Now, Hennery, I want you to listen right out loud. The government
has given me an appointment to travel over the world and get
information about air ships, divagable balloons, and everything that
will help our government to know what other governments are doing
in inventing things to be used in case of war. I am to be the Billy
Pinkerton of the War Department and shall have to spy in other
governments, and I am to be the traveling diplomat of the
government, and jolly all nations, and find out how things are running
everywhere.
“You will have to stay home this time because you would be a dead
give away, so I will send you to a nice orphan home where you will
be taught to work, and where guards will keep you on the inside of
the fence, and put you to bed in a straight jacket if you play any of
your jokes, see?” and Pa gave me a ticket to an orphans’ home, and
a letter of introduction to the matron and the next day I was an
inmate, with all the degrees coming to me. What do you think of that,
and Pa on the ocean, with a government commission in his pocket?
Gee, but my ideas of an orphans’ home got a shock when I arrived
at the station where the orphans’ home was located. I thought there
would be a carriage at the train to meet me, and a nice lady dressed
in white with a cap on her head, to take me in her arms and hug me,
and say, “Poor little boy, I will be a sister to you,” but there was no
reception committee, and I had to walk a mile with my telescope
valise, and when I found the place and went in the door, to present
my letter to the matron, a man with a scar on his face, and one eye
gone, met me and looked over my papers, and went, one eye on me,
and called an assistant private and told him to take me and give me
the first or entered apprentice degree.

Gee, My Ideas of an Orphan Home Got a Shock.

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.

The Way Freshmen Do in College When They’re Being


Murdered.

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

You might also like