integers and integers mod n - bookstore.ams.org~freeattachments/stml-82-prev.pdf · 8 1. integers...

10
Chapter 1 Integers and Integers mod n The Fibonacci sequence is the infinite sequence of integers f i for i =1, 2,... defined recursively by f 1 =1,f 2 =1, and f n = f n2 +f n1 for all integers n 2. (1.1) Thus, the initial terms in the Fibonacci sequence are: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, .... The integer f n is called the n-th Fibonacci number. 1.1. Prove the closed formula for the Fibonacci sequence: f n = 1 5 1+ 5 2 n 1 5 15 2 n (1.2) (i) Prove formula (1.2) by mathematical induction. (ii) Prove formula (1.2) by using its generating function: This is the formal power series g = i=1 f i X i = X + X 2 +2X 3 +3X 4 +5X 5 +8X 6 + .... Use the recursive formula for the f i to express g as a quotient of polynomials. Then find a new series expansion for g using its partial fractions decomposition. 7

Upload: vuonglien

Post on 19-Aug-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

Chapter 1

Integers and Integersmod n

The Fibonacci sequence is the infinite sequence of integers fi for

i = 1, 2, . . . defined recursively by

f1 = 1, f2 = 1, and fn = fn−2+fn−1 for all integers n ≥ 2. (1.1)

Thus, the initial terms in the Fibonacci sequence are:

1, 1, 2, 3, 5, 8, 13, 21, 34, 55, . . . .

The integer fn is called the n-th Fibonacci number.

1.1. Prove the closed formula for the Fibonacci sequence:

fn = 1√5

(1+

√5

2

)n

− 1√5

(1−

√5

2

)n

(1.2)

(i) Prove formula (1.2) by mathematical induction.

(ii) Prove formula (1.2) by using its generating function: This

is the formal power series

g =∞∑i=1

fiXi = X +X2 + 2X3 + 3X4 + 5X5 + 8X6 + . . . .

Use the recursive formula for the fi to express g as a quotient

of polynomials. Then find a new series expansion for g using

its partial fractions decomposition.

7

8 1. Integers and Integers mod n

For another proof of the closed formula (1.2) for the Fibonacci

sequence, using linear algebra, see problem 4.44 below. Note that

since∣∣(1 −√

5 )/2∣∣ < 1 and 1√

5

∣∣ 1−√5

2

∣∣ < 0.5 it follows that fn is the

integer nearest 1√5

((1 +

√5 )/2

)n. For example,

f1000 ≈ 1√5

((1 +

√5 )/2

)1000 ≈ 4.34666× 10208,

so f1000 is a 209-digit number.

The Division Algorithm for integers says that for any given inte-

gers a, b with b ≥ 1 there exist unique integers q and r such that

a = qb+ r, with 0 ≤ r ≤ b− 1. (1.3)

Recall that for integers a and b, we say that a divides b (de-

noted a|b) if there is an integer c with b = ca. When a and b are

nonzero, the greatest common divisor of a and b (denoted gcd(a, b)) is

the largest positive integer dividing both a and b. The least common

multiple of a and b (denoted lcm(a, b)) is the smallest positive integer

that is a multiple of both a and b.

Recall the Euclidean Algorithm for computing greatest common

divisors by repeated application of the Division Algorithm: Take

any nonzero integers a, b with b ≥ 1 (and without loss of general-

ity, b ≤ |a|). By the Division Algorithm, we can write successively

a = q1b+ r1 with 0 < r1 ≤ b− 1;

b = q2r1 + r2 with 0 < r2 ≤ r1 − 1;

r1 = q3r2 + r3 with 0 < r3 ≤ r2 − 1;

. . .

rj−2 = qjrj−1 + rj with 0 < rj ≤ rj−1 − 1;

. . .

rn−3 = qn−1rn−2 + rn−1 with 0 < rn−1 ≤ rn−2 − 1;

rn−2 = qnrn−1 + 0.

The repeated division process terminates when the remainder rnhits 0. The process must terminate after finitely many steps because

b > r1 > r2 > . . . ≥ 0. Then,

gcd(a, b) = rn−1, the last nonzero remainder.

1. Integers and Integers mod n 9

The Euclidean Algorithm shows the existence of gcd(a, b) and also

that gcd(a, b) is expressible as sa + tb for some integers s, t. The

number n of times the Division Algorithm is applied is called the

number of steps needed in computing gcd(a, b).

For example, let f1, f2, . . . be the Fibonacci sequence. For an

integer i ≥ 2, the number of steps needed in computing that

gcd(fi, fi+1) = 1

is i− 1. (The successive remainders rj in the long divisions are

fi−1, fi−2, . . . , f3, f2, 0.)

1.2. Efficiency of the Euclidean Algorithm. Take any nonzero integers

a, b with 1 ≤ b ≤ |a|, and let n be the number of steps needed in

computing gcd(a, b), as defined above. Let fj be the j-th Fibonacci

number. Prove that if b ≤ fj , for j ≥ 2, then n ≤ j − 1.

The preceding example shows that the bound on n in problem 1.2

is the best possible. This problem shows that determination of great-

est common divisors is very efficient from a computational standpoint.

Recall that fn is the integer nearest 1√5

(1+

√5

2

)n. So, if b is a k-digit

number, then the number of divisions required to compute gcd(a, b)

is at most(k + log10(

√5 )

)/log10

((1 +

√5 )/2

)≈ 4.785k + 1.672.

For example, if b is 100-digit number, then gcd(a, b) can be computed

with at most 481 long divisions.

1.3. Let m,n be positive integers with gcd(m,n) = 1. Determine

the least integer k such that every integer � ≥ k is expressible as

� = rm+ sn for some nonnegative integers r, s.

For example, if m = 5 and n = 8, then k = 28. Thus, with a

supply of 5-cent and 8-cent stamps, one can make exact postage for

any amount of 28 cents or more, but not for 27 cents.

Congruence mod n. Fix a positive integer n. For a, b ∈ Z we say

that a and b are congruent modulo n, denoted

a ≡ b (mod n), (1.4)

if n|(b− a), i.e., there is some t ∈ Z with b− a = tn.

10 1. Integers and Integers mod n

Recall the Chinese Remainder Theorem, which says that for all

m,n ∈ N with gcd(m,n) = 1 and any a, b ∈ Z the there is an x ∈ Zsuch that

x ≡ a (mod m) and x ≡ b (mod n). (1.5)

Moreover, any x′ ∈ Z satisfies the same congruence conditions as x

in (1.5) iff x′ ≡ x (mod mn). (See Example 2.19 below for a proof of

the Chinese Remainder Theorem.)

1.4. Take any m,n ∈ N and let d = gcd(m,n). Prove that for any

a, b ∈ Z there is an x ∈ Z with x ≡ a (mod m) and x ≡ b (mod n)

iff a ≡ b (mod d). Moreover, when this holds, any x′ ∈ Z satisfies the

same congruence conditions as x iff x′ ≡ x (mod lcm(a, b)).

Zn. Fix n ∈ N. For a ∈ Z let [a]n denote the congruence class

of a (mod n), i.e.,

[a]n = {c ∈ Z | c ≡ a (mod n)} = {a+ tn | t ∈ Z}. (1.6)

Since [a]n is the equivalence class of a with respect to the equivalence

relation on Z given by congruence (mod n), we have

[a]n = [b]n iff a ≡ b (mod n), (1.7)

and the congruence classes (mod n) form a partition of Z. Let

Zn = {[a]n | a ∈ Z}. (1.8)

The Division Algorithm shows that

Zn = {[0]n, [1]n, . . . , [n− 1]n}

and that the classes [0]n, [1]n, . . . , [n−1]n are distinct. Thus,∣∣Zn

∣∣ = n.

There are operations of addition and multiplication on Zn given by

[a]n + [b]n = [a+ b]n and [a]n · [b]n = [ab]n, (1.9)

for all a, b ∈ Z.

1.5. Well-definition of Zn operations.

(i) The formula for [a]n + [b]n in (1.9) is expressed in terms of

a and b. But the choice of the integer a to describe [a]n is

not unique (see (1.7)). That the sum is well-defined means

that if [a]n = [a′]n and [b]n = [b′]n, then we get the same

congruence class for the sum whether the sum is determined

1. Integers and Integers mod n 11

using a and b or a′ and b′, i.e., [a + b]n = [a′ + b′]n. Prove

this.

(ii) Prove that the product operation given in (1.9) is well-

defined.

1.6. Fix n ∈ N and take any k ∈ Z with gcd(k, n) = 1. Prove that for

any congruence class [a]n in Zn there is a unique congruence class [b]nsuch that [k]n · [b]n = [a]n.

1.7.

(i) Prove Wilson’s Theorem: If p is a prime number, then

(p− 1)! ≡ −1 (mod p).

(ii) Prove that if n ∈ N is not a prime number, then

(n− 1)! ≡ 0 (mod n).

Euler’s ϕ-function (also called Euler’s totient function) is the map

ϕ : N → N given by

ϕ(n) =∣∣{k ∈ N | 1 ≤ k ≤ n and gcd(k, n) = 1}

∣∣. (1.10)

Note that for any prime number p and any r ∈ N, ϕ(p) = p − 1 and

ϕ(pr) = pr− pr−1. Since ϕ(mn) = ϕ(m)ϕ(n) whenever gcd(m,n) = 1

(see problem 1.9 below), it follows that for distinct prime numbers

p1, . . . , pk and positive integers r1, . . . , rk if n = pr11 . . . prkk , then

ϕ(n) =k∏

j=1

(prjj − p

rj−1j

)= n ·

(1− 1

p1

). . .

(1− 1

pk

). (1.11)

1.8. Take any m,n ∈ N with gcd(m,n) = 1. Prove that for k ∈ Z,gcd(k,mn) = 1 iff gcd(k,m) = 1 and gcd(k, n) = 1.

1.9. Prove that for m,n ∈ N,

if gcd(m,n) = 1, then ϕ(mn) = ϕ(m)ϕ(n). (1.12)

(For a proof of this formula using groups, see (2.16) below.)

1.10. Prove that for any n ∈ N,∑d|n

ϕ(d) = n. (1.13)

The sum is taken over all the divisors d of n with 1 ≤ d ≤ n. (See

Example 2.18 below for a group-theoretic approach to this formula.)

12 1. Integers and Integers mod n

Recall that for integers n, k with 0 ≤ k ≤ n the binomial coeffi-

cient(nk

)is defined by(

nk

)= n!

k!(n−k)! = n(n−1)(n−2)...(n−k+1)k(k−1)(k−2)...1 . (1.14)

An easy calculation from the definition yields Pascal’s Identity:(nk

)=

(n−1k−1

)+

(n−1k

)for all n, k ∈ N with 1 ≤ k < n. (1.15)

It follows by induction on n that(nk

)is always an integer. Note that

if p is a prime number and 1 ≤ k ≤ p− 1, then p |(pk

). (1.16)

For p |p(p−1k

)= (p − k)

(pk

). Since p is prime and p � (p − k), p must

divide(pk

).

1.11. Prove Fermat’s Theorem: If p is a prime number, then

ap ≡ a (mod p) for any a ∈ Z.

(Hint: Prove this by induction on a using the binomial expansion.)

See problem 2.4(ii) below for another proof of Fermat’s Theorem.

Suggestions for FurtherReading

Here are some suggestions for collateral reading or deeper study

in various areas of abstract algebra.

There are a number of very good texts in abstract algebra. These

include Artin [1], Dummit & Foote [5], Hungerford [9], Jacobson [10],

Knapp [13], and Lang [16]. Dummit & Foote and Hungerford have

particularly extensive problem sets. For more on group theory, see

Rotman [20] or Hall [7].

In ring and module theory, for commutative rings see Atiyah &

MacDonald [2], and for noncommutative rings, see Lam [15].

For linear algebra, see Hoffman & Kunze [8].

Two outstanding texts on Galois theory are the books by Cox [4]

and by Tignol [23]. Each has interesting historical commentary on

the work of Galois and his predecessors.

For algebraic number theory, there are many good texts, e.g.,

Marcus [17] and Weiss [24]. Marcus’s book has an outstanding se-

lection of problems.

Two important more advanced areas of algebra not treated here

are homological algebra and algebraic geometry. See Rotman [22] for

a good introduction to homological algebra. The book by Reid [19]

provides a gentle introduction to algebraic geometry; see the refer-

ences provided there for further reading.

257

Bibliography

When available, Mathematical Reviews reference numbers are in-

dicated at the end of each bibliographic entry as MR∗∗∗∗∗∗∗. Seewww.ams.org/mathscinet.

1. Artin, Michael, Algebra, second ed., Prentice Hall, Boston, MA, 2011.

2. Atiyah, Michael F. and Macdonald, Ian G., Introduction to commuta-tive algebra, Addison-Wesley Publishing Co., Reading, Mass.-London-Don Mills, Ont., 1969. MR0242802

3. Borevich, Zenon I. and Shafarevich, Igor R., Number theory, Pure andApplied Mathematics, Vol. 20, Academic Press, New York-London,1966. MR0195803

4. Cox, David A., Galois theory, second ed., Pure and Applied Math-ematics (Hoboken), John Wiley & Sons, Inc., Hoboken, NJ, 2012.MR2919975

5. Dummit, David S. and Foote, Richard M., Abstract algebra, third ed.,John Wiley & Sons, Inc., Hoboken, NJ, 2004. MR2286236

6. Ebbinghaus, Heinz-Dieter; Hermes, Hans; Hirzebruch, Friedrich;Koecher, Max; Mainzer, Klaus; Neukirch, Jurgen; Prestel, Alexander;and Remmert, Reinhold, Numbers, Graduate Texts in Mathematics,vol. 123, Springer-Verlag, New York, 1990, Readings in Mathematics.MR1066206

7. Hall, Jr., Marshall, The theory of groups, Chelsea Publishing Co., NewYork, 1976, Reprint of the 1968 edition. MR0414669

8. Hoffman, Kenneth and Kunze, Ray, Linear algebra, Second edition,Prentice-Hall, Inc., Englewood Cliffs, N.J., 1971. MR0276251

259

260 Bibliography

9. Hungerford, Thomas W., Algebra, Graduate Texts in Mathematics,vol. 73, Springer-Verlag, New York-Berlin, 1980, Reprint of the 1974original. MR600654

10. Jacobson, Nathan, Basic algebra. I, second ed., W. H. Freeman andCompany, New York, 1985. MR780184

11. Janusz, Gerald J., Algebraic number fields, second ed., Graduate Stud-ies in Mathematics, vol. 7, American Mathematical Society, Provi-dence, RI, 1996. MR1362545

12. Kaplansky, Irving, Set theory and metric spaces, second ed., ChelseaPublishing Co., New York, 1977. MR0446980

13. Knapp, Anthony W., Basic algebra, Birkhauser Boston, Inc., Boston,MA, 2006. MR2257570

14. Lam, Tsit Yuen and Leep, David B., Combinatorial structure on theautomorphism group of S6, Exposition. Math. 11 (1993), no. 4, 289–308. MR1240362

15. Lam, Tsit Yuen, A first course in noncommutative rings, second ed.,Graduate Texts in Mathematics, vol. 131, Springer-Verlag, New York,2001. MR1838439

16. Lang, Serge, Algebra, third ed., Graduate Texts in Mathematics, vol.211, Springer-Verlag, New York, 2002. MR1878556

17. Marcus, Daniel A., Number fields, Springer-Verlag, New York-Heidelberg, 1977, Universitext. MR0457396

18. Prestel, Alexander, Lectures on formally real fields, Lecture Notes inMathematics, vol. 1093, Springer-Verlag, Berlin, 1984. MR769847

19. Reid, Miles, Undergraduate algebraic geometry, London Mathemati-cal Society Student Texts, vol. 12, Cambridge University Press, Cam-bridge, 1988. MR982494

20. Rotman, Joseph J., An introduction to the theory of groups, third ed.,Allyn and Bacon, Inc., Boston, MA, 1984. MR745804

21. , Advanced modern algebra, Prentice Hall, Inc., Upper SaddleRiver, NJ, 2002. MR2043445

22. , An introduction to homological algebra, second ed., Universi-text, Springer, New York, 2009. MR2455920

23. Tignol, Jean-Pierre, Galois’ theory of algebraic equations, second ed.,World Scientific Publishing Co. Pte. Ltd., Hackensack, NJ, 2016.MR3444922

24. Weiss, Edwin, Algebraic number theory, Dover Publications, Inc., Mi-neola, NY, 1998, Reprint of the 1963 original. MR1635455