Math 319 Problem Set #3 Solution 21 February 2002



Similar documents
Applications of Fermat s Little Theorem and Congruences

k, then n = p2α 1 1 pα k

mod 10 = mod 10 = 49 mod 10 = 9.

8 Primes and Modular Arithmetic

Quotient Rings and Field Extensions

Every Positive Integer is the Sum of Four Squares! (and other exciting problems)

Computing exponents modulo a number: Repeated squaring

Homework until Test #2

SYSTEMS OF PYTHAGOREAN TRIPLES. Acknowledgements. I would like to thank Professor Laura Schueller for advising and guiding me

Some practice problems for midterm 2

The Fundamental Theorem of Arithmetic

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

Number Theory. Proof. Suppose otherwise. Then there would be a finite number n of primes, which we may

PYTHAGOREAN TRIPLES KEITH CONRAD

Math Workshop October 2010 Fractions and Repeating Decimals

Introduction to Finite Fields (cont.)

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion

Stupid Divisibility Tricks

On the generation of elliptic curves with 16 rational torsion points by Pythagorean triples


On the largest prime factor of x 2 1

Today s Topics. Primes & Greatest Common Divisors

V Quantitative Reasoning: Computers, Number Theory and Cryptography

ALGEBRAIC APPROACH TO COMPOSITE INTEGER FACTORIZATION

26 Ideals and Quotient Rings

Kevin James. MTHSC 412 Section 2.4 Prime Factors and Greatest Comm

2 When is a 2-Digit Number the Sum of the Squares of its Digits?

Handout #1: Mathematical Reasoning

CONTENTS 1. Peter Kahn. Spring 2007

SUM OF TWO SQUARES JAHNAVI BHASKAR

An Overview of Integer Factoring Algorithms. The Problem

Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan

Mathematical Induction

Student Outcomes. Lesson Notes. Classwork. Discussion (10 minutes)

15 Prime and Composite Numbers

8 Divisibility and prime numbers

MATH10040 Chapter 2: Prime and relatively prime numbers

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University

Integer roots of quadratic and cubic polynomials with integer coefficients

3. Mathematical Induction

Discrete Mathematics, Chapter 4: Number Theory and Cryptography

MATH 289 PROBLEM SET 4: NUMBER THEORY

Playing with Numbers

Groups in Cryptography

Just the Factors, Ma am

Chapter 3. if 2 a i then location: = i. Page 40

Factoring Algorithms

Primes in Sequences. Lee 1. By: Jae Young Lee. Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

Revised Version of Chapter 23. We learned long ago how to solve linear congruences. ax c (mod m)

= = 3 4, Now assume that P (k) is true for some fixed k 2. This means that

Chapter 11 Number Theory

RSA Encryption. Tom Davis October 10, 2003

The Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors.

Properties of Real Numbers

3 Some Integer Functions


WRITING PROOFS. Christopher Heil Georgia Institute of Technology

GREATEST COMMON DIVISOR

Chapter 17. Orthogonal Matrices and Symmetries of Space

The application of prime numbers to RSA encryption

Math 55: Discrete Mathematics

Lectures on Number Theory. Lars-Åke Lindahl

MATHEMATICAL INDUCTION. Mathematical Induction. This is a powerful method to prove properties of positive integers.

5544 = = = Now we have to find a divisor of 693. We can try 3, and 693 = 3 231,and we keep dividing by 3 to get: 1

So let us begin our quest to find the holy grail of real analysis.

COMMUTATIVE RINGS. Definition: A domain is a commutative ring R that satisfies the cancellation law for multiplication:

Homework 2 Solutions

CHAPTER SIX IRREDUCIBILITY AND FACTORIZATION 1. BASIC DIVISIBILITY THEORY

Introduction. Appendix D Mathematical Induction D1

Solving Rational Equations

Five fundamental operations. mathematics: addition, subtraction, multiplication, division, and modular forms

Section 4.2: The Division Algorithm and Greatest Common Divisors

MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS

The Chinese Remainder Theorem

THE NUMBER OF REPRESENTATIONS OF n OF THE FORM n = x 2 2 y, x > 0, y 0

6.2 Permutations continued

17 Greatest Common Factors and Least Common Multiples

Lecture 13 - Basic Number Theory.

FACTORING POLYNOMIALS IN THE RING OF FORMAL POWER SERIES OVER Z

Lecture 16 : Relations and Functions DRAFT

26 Integers: Multiplication, Division, and Order

GCDs and Relatively Prime Numbers! CSCI 2824, Fall 2014!

We can express this in decimal notation (in contrast to the underline notation we have been using) as follows: b + 90c = c + 10b

α = u v. In other words, Orthogonal Projection

Lecture 3: Finding integer solutions to systems of linear equations

Math 4310 Handout - Quotient Vector Spaces

Grade 6 Math Circles March 10/11, 2015 Prime Time Solutions

CISC - Curriculum & Instruction Steering Committee. California County Superintendents Educational Services Association

Handout NUMBER THEORY

Theorem3.1.1 Thedivisionalgorithm;theorem2.2.1insection2.2 If m, n Z and n is a positive

Solution to Homework 2

Continued Fractions. Darren C. Collins

Math 3000 Section 003 Intro to Abstract Math Homework 2

Stanford Math Circle: Sunday, May 9, 2010 Square-Triangular Numbers, Pell s Equation, and Continued Fractions

Basic Proof Techniques

Math Circle Beginners Group October 18, 2015

Grade 7/8 Math Circles Fall 2012 Factors and Primes

The last three chapters introduced three major proof techniques: direct,

Transcription:

Math 319 Problem Set #3 Solution 21 February 2002 1. ( 2.1, problem 15) Find integers a 1, a 2, a 3, a 4, a 5 such that every integer x satisfies at least one of the congruences x a 1 (mod 2), x a 2 (mod 3), x a 3 (mod 4), x a 4 (mod 6), x a 5 (mod 12). Explain how you know your answer works, and, if applicable, how you found it. Solution: All the given moduli are divisors of 12, so if we can choose the a i so that each of the numbers 0, 1,..., 11 satisfies at least one of the congruences, then we will be finished. (Why? If y is any integer then there exists an x {0, 1, 2,, 11} such that y x (mod 12). If we have chosen the a i as above, then x is congruent some a i modulo 12, and so by transitivity, y a i (mod 12). The mod-12 congruence implies any of the other congruences in this problem.) If we take a 1 = 0, then all of the even numbers satisfy the first congruence. If we take a 2 = 1, then in addition, the numbers 1 and 7 satisfy the second congruence. (Eight down, four remaining.) If we take a 3 = 1, then in addition, the numbers 5 and 9 satisfy the congruence. Only the numbers 8 and 11 remain, and we have two more congruences to play with, so we predict victory in two moves. Let a 4 = 2; that takes care of 8. Let a 5 = 11. 2. (a) Let p and q be primes. Prove that if p 1 (mod q 1), then a p a (mod q) for every integer a. Solution: Case 1: Suppose q a. Then a p 0 (mod q) and a 0 (mod q), so that a p a (mod q). Case 2: Suppose q/ a. Suppose p 1 (mod q 1). Then there is an integer k such that Thus p = k(q 1) + 1. a p = a k(q 1) a (1) = a (a k ) (q 1). (2)

Now since q/ a, we also know that q/ a k, so by Fermat s little theorem, we have Thus from (1) and (2) above, we get as required. (a k ) (q 1) 1 (mod q). a p a (a k ) (q 1) (mod q) a 1 (mod q) a (mod q) (b) ( 2.1, problem 20) Use the result in part (2a) to prove that n 7 n is divisible by 42 for any integer n. Proof: Since 42 = [2, 3, 7], the result will follow if we can show that 2, 3, and 7 all divide n 7 n for every integer n. That is, we need to show n 7 n 0 modulo 2, 3, and 7. We observe that 7 is congruent to 1 modulo (2 1), modulo (3 1), and modulo (7 1), so by the result above, the congruences all hold for every integer n. n 7 n (mod 2) n 7 n (mod 3) n 7 n (mod 7) 3. ( 2.1, problem 27) Prove that n5 5 + n3 3 + 7n is an integer for every integer n. 15 Proof: Rewriting the given expression with a common denominator, we get 3n 5 + 5n 3 + 7n. 15 Our task is thus to prove that 3n 5 + 5n 3 + 7n 0 (mod 15) for every integer n. This will follow if we can establish the two congruences 3n 5 + 5n 3 + 7n 0 (mod 3) 3n 5 + 5n 3 + 7n 0 (mod 5). Using the properties of congruences, we have 3n 5 + 5n 3 + 7n 2n 3 + n (mod 3).

By Theorem 2.8, for any integer n, n 3 n (mod 3), from which it follows that 2n 3 + n 2n + n 3n 0 (mod 3), and we have shown that 3n 5 + 5n 3 + 7n 0 (mod 3). Similarly, 3n 5 + 5n 3 + 7n 3n 5 + 2n (mod 5), and again by Theorem 2.8, n 5 n (mod 5) for any n, so that 3n 2 + 2n 3n + 2n 5n 0 (mod 5). We have shown that for any integer n, 3n 5 + 5n 3 + 7n 0 (mod 5). Since 3n 5 + 5n 3 + 7n is a multiple of both 3 and 5, it must also be a multiple of [3, 5], and since (3, 5) = 1, we know that [3, 5] = 15. Thus 3n 5 + 5n 3 + 7n is divisible by 15 for any integer n, and the proof is complete. 4. ( 2.1, problem 46) Show that for any prime p, if a p b p (mod p), then a p b p (mod p 2 ). Proof: Suppose a p b p (mod p). From Theorem 2.8, we know that a p a (mod p) and b p b (mod p), even if p happens to divide a or b. From this it follows that a b p (a b). Now we have the factorization (mod p), that is (a b)(a p 1 + a p 2 b + a p 3 b 2 + + ab p 2 + b p 1 ) = a p b p. Since p (a b), to show that p 2 (a p b p ), we need to show that p (a p 1 + a p 2 b + a p 3 b 2 + + ab p 2 + b p 1 ). Since a b (mod p), we have, for each i with 1 i p, a p i b i 1 a (p i)+(i 1) a p 1 (mod p). That is, every term in (a p 1 + a p 2 b + a p 3 b 2 + + ab p 2 + b p 1 ) is congruent to a p 1 modulo p. Since there are p terms in the sum, we have (a p 1 + a p 2 b + a p 3 b 2 + + ab p 2 + b p 1 ) pa p 1 (mod p).

But clearly pa p 1 0 (mod p), because p 0 (mod p). It follows that p divides (a p 1 + a p 2 b + a p 3 b 2 + + ab p 2 + b p 1 ), and since p divides (a b) as well, the product (a b)(a p 1 + a p 2 b + a p 3 b 2 + + ab p 2 + b p 1 ) = a p b p is divisible by p 2. Thus and the proof is complete. a p b p (mod p) Alternate Proof: Suppose a p b p (mod p). By Theorem 2.8, we know a a p (mod p) and b b p (mod p). It follows that a b (mod p). Write a = pα + r 1 b = pβ + r 2 where α, β, r 1, and r 2 are integers, and 0 r 1, r 2 p. Then because p (a b), it follows that p (r 1 r 2 ), and since r 1 r 2 < p, we must have r 1 = r 2. Let r denote their common value. Then a p = (pα + r) p p 1 ( ) = (pα) p + p (pα) p i r i + r p. i i=1 Since p 2, we know p 2 divides (pα) p. ( ) p Moreover, by an earlier problem, we know p divides for each i with 1 i p 1, i and certainly p divides (pα) p i for each i less than p. Thus p 2 divides each term of the sum p 1 i=1 ( ) p (pα) p i r i, i

and so p 2 divides the entire sum. From this it follows that p 2 divides a p r p, so we get By an analogous argument, a p r p (mod p 2 ). b p r p (mod p 2 ), and so by Theorem 2.1(1) and (2), we get as required. a p b p (mod p 2 ), 5. ( 2.1, problem 50) For every positive integer n, prove that there exists a (non-zero) multiple m of n whose base-ten representation contains only the digits 0 and 1. Prove that the same holds for the digits 0 and 2, for 0 and 3, and so on up to the digits 0 and 9, but for no other pair of digits. Proof: If n = 1, then n 1, and if n = 2, then n 10. Now suppose n > 2. Suppose first that 2/ n and 5/ n. Then (10, n) = 1, and by Theorem 2.8, we get 10 ϕ(n) 1 (mod n). Then (10 ϕ(n) ) k 1 (mod n) for every positive integer k, and since ϕ(n) 2, all the numbers kϕ(n) are different, so that each of the numbers 10 kϕ(n) is a distinct power of ten, and each is congruent to 1 modulo n. n Let N = 10 kϕ(n). Then the base-ten representation of N contains exactly n ones k=1 and all the other digits are zero. Furthermore, so that N is a non-zero multiple of N. n n N 10 kϕ(n) 1 n (mod n), k=1 k=1 (Note: If n is a large prime, do not try this at home.) Now suppose n = 2 a 5 b m, where m is relatively prime to 5 and 2. Then we find a number M made up of ones and zeros such that m divides M. Let c = max{a, b}, and let N = 10 c M.

Then n = 2 a 5 b m divides 2 c 5 c m = 10 c m, which divides 10 c M = N (by Theorem 1.1(6)), so by Theorem 1.1(2), n divides N. Furthermore, since M is made up of ones and zeros, so is N. The numbers 2N, 3N, 4N, and so on satisfy the requirements of the second sentence above. Since every multiple of 10 has at least one zero in its base-ten representation, there is no way to satisfy the requirements of this claim with any pair of digits that does not contain a zero.