MATH 304: MIDTERM EXAM SOLUTIONS

Similar documents
The Structure of Z p when p is Prime

CSE 1400 Applied Discrete Mathematics Number Theory and Proofs

Fermat s Little Theorem. mod 13 = 0, = }{{} mod 13 = 0. = a a a }{{} mod 13 = a 12 mod 13 = 1, mod 13 = a 13 mod 13 = a.

Solutions to Math 347 Practice Problems for the final

MATH 324 Summer 2006 Elementary Number Theory Solutions to Assignment 2 Due: Thursday July 27, 2006

[ 11 ] z of degree 2 as both degree 2 each. The degree of a polynomial in n variables is the maximum of the degrees of its terms.

and each factor on the right is clearly greater than 1. which is a contradiction, so n must be prime.

Homework 3. = k 1. Let S be a set of n elements, and let a, b, c be distinct elements of S. The number of k-subsets of S is

In number theory we will generally be working with integers, though occasionally fractions and irrationals will come into play.

SOLVED EXAMPLES

[ 47 ] then T ( m ) is true for all n a. 2. The greatest integer function : [ ] is defined by selling [ x]

Math 4400/6400 Homework #7 solutions

Seunghee Ye Ma 8: Week 5 Oct 28

The Binomial Theorem

(A sequence also can be thought of as the list of function values attained for a function f :ℵ X, where f (n) = x n for n 1.) x 1 x N +k x N +4 x 3

MATH 112: HOMEWORK 6 SOLUTIONS. Problem 1: Rudin, Chapter 3, Problem s k < s k < 2 + s k+1

1 Generating functions for balls in boxes

Math 155 (Lecture 3)

Math 475, Problem Set #12: Answers

Math 113, Calculus II Winter 2007 Final Exam Solutions

Trial division, Pollard s p 1, Pollard s ρ, and Fermat s method. Christopher Koch 1. April 8, 2014

International Baccalaureate LECTURE NOTES MATHEMATICS HL FURTHER MATHEMATICS HL Christos Nikolaidis TOPIC NUMBER THEORY

Lecture 1. January 8, 2018

MIDTERM 3 CALCULUS 2. Monday, December 3, :15 PM to 6:45 PM. Name PRACTICE EXAM SOLUTIONS

Math 609/597: Cryptography 1

(b) What is the probability that a particle reaches the upper boundary n before the lower boundary m?

Infinite Sequences and Series

Solutions to Problem Set 8

Random Models. Tusheng Zhang. February 14, 2013

11. FINITE FIELDS. Example 1: The following tables define addition and multiplication for a field of order 4.

Bertrand s Postulate

Exam 2 CMSC 203 Fall 2009 Name SOLUTION KEY Show All Work! 1. (16 points) Circle T if the corresponding statement is True or F if it is False.

1. By using truth tables prove that, for all statements P and Q, the statement

Math 451: Euclidean and Non-Euclidean Geometry MWF 3pm, Gasson 204 Homework 3 Solutions

Complex Numbers Solutions

Math 140A Elementary Analysis Homework Questions 1

ANSWERS SOLUTIONS iiii i. and 1. Thus, we have. i i i. i, A.

6 Integers Modulo n. integer k can be written as k = qn + r, with q,r, 0 r b. So any integer.

3. Z Transform. Recall that the Fourier transform (FT) of a DT signal xn [ ] is ( ) [ ] = In order for the FT to exist in the finite magnitude sense,

Essential Question How can you use properties of exponents to simplify products and quotients of radicals?

Math 2112 Solutions Assignment 5

Z ß cos x + si x R du We start with the substitutio u = si(x), so du = cos(x). The itegral becomes but +u we should chage the limits to go with the ew

Math 61CM - Solutions to homework 3

Proof of Fermat s Last Theorem by Algebra Identities and Linear Algebra

A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

De Moivre s Theorem - ALL

Zeros of Polynomials

NAME: ALGEBRA 350 BLOCK 7. Simplifying Radicals Packet PART 1: ROOTS

These Two Weeks. Mathematical Induction Chapter 4 Lecture 10 & Lecture 13. CPRE 310 Discrete Mathematics. Mathematical Induction Problems

Please do NOT write in this box. Multiple Choice. Total

Summary: Congruences. j=1. 1 Here we use the Mathematica syntax for the function. In Maple worksheets, the function

Homework 9. (n + 1)! = 1 1

RADICAL EXPRESSION. If a and x are real numbers and n is a positive integer, then x is an. n th root theorems: Example 1 Simplify

DIVISIBILITY PROPERTIES OF GENERALIZED FIBONACCI POLYNOMIALS

Sequences A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

Recurrence Relations

Problem 4: Evaluate ( k ) by negating (actually un-negating) its upper index. Binomial coefficient

Chapter 4. Fourier Series

a 2 +b 2 +c 2 ab+bc+ca.

Solutions to Tutorial 3 (Week 4)

PROBLEM SET 5 SOLUTIONS 126 = , 37 = , 15 = , 7 = 7 1.

Classroom. We investigate and further explore the problem of dividing x = n + m (m, n are coprime) sheep in

PERIODS OF FIBONACCI SEQUENCES MODULO m. 1. Preliminaries Definition 1. A generalized Fibonacci sequence is an infinite complex sequence (g n ) n Z

PLEASE MARK YOUR ANSWERS WITH AN X, not a circle! 1. (a) (b) (c) (d) (e) 3. (a) (b) (c) (d) (e) 5. (a) (b) (c) (d) (e) 7. (a) (b) (c) (d) (e)

subcaptionfont+=small,labelformat=parens,labelsep=space,skip=6pt,list=0,hypcap=0 subcaption ALGEBRAIC COMBINATORICS LECTURE 8 TUESDAY, 2/16/2016

Basic Sets. Functions. MTH299 - Examples. Example 1. Let S = {1, {2, 3}, 4}. Indicate whether each statement is true or false. (a) S = 4. (e) 2 S.

3.2 Properties of Division 3.3 Zeros of Polynomials 3.4 Complex and Rational Zeros of Polynomials

BINOMIAL COEFFICIENT AND THE GAUSSIAN

Induction: Solutions

Some p-adic congruences for p q -Catalan numbers

SOLUTIONS TO PRISM PROBLEMS Junior Level 2014

CS / MCS 401 Homework 3 grader solutions

6.3 Testing Series With Positive Terms

Polynomial Functions and Their Graphs

1 Approximating Integrals using Taylor Polynomials

= 4 and 4 is the principal cube root of 64.

P1 Chapter 8 :: Binomial Expansion

Bertrand s Postulate. Theorem (Bertrand s Postulate): For every positive integer n, there is a prime p satisfying n < p 2n.

Injections, Surjections, and the Pigeonhole Principle

Math 140A Elementary Analysis Homework Questions 3-1

LESSON 2: SIMPLIFYING RADICALS

Lesson 10: Limits and Continuity

Let us consider the following problem to warm up towards a more general statement.

Objective Mathematics

MAT 271 Project: Partial Fractions for certain rational functions

Essential Question How can you recognize an arithmetic sequence from its graph?

Week 5-6: The Binomial Coefficients

Math 299 Supplement: Real Analysis Nov 2013

Induction proofs - practice! SOLUTIONS

NICK DUFRESNE. 1 1 p(x). To determine some formulas for the generating function of the Schröder numbers, r(x) = a(x) =

10.1 Sequences. n term. We will deal a. a n or a n n. ( 1) n ( 1) n 1 2 ( 1) a =, 0 0,,,,, ln n. n an 2. n term.

3 Gauss map and continued fractions

3.2.4 Integer and Number Theoretical Functions

1. n! = n. tion. For example, (n+1)! working with factorials. = (n+1) n (n 1) 2 1

+ au n+1 + bu n = 0.)

SEQUENCE AND SERIES NCERT

x x x Using a second Taylor polynomial with remainder, find the best constant C so that for x 0,

CALCULATION OF FIBONACCI VECTORS

Worksheet on Generating Functions

Mathematical Foundations -1- Sets and Sequences. Sets and Sequences

Transcription:

MATH 304: MIDTERM EXAM SOLUTIONS [The problems are each worth five poits, except for problem 8, which is worth 8 poits. Thus there are 43 possible poits.] 1. Use the Euclidea algorithm to fid the greatest commo divisor of 746 ad 464. 746 3 464 + 70 464 35 70 + 14 70 5 14 + 0 The last ozero remaider is the greatest commo divisor of the iitial pair, so GCD746, 46) 14.. How may of the itegers betwee 0 ad 600 are relatively prime to 600? By defiitio, the Euler φ-fuctio of is the umber of umbers betwee 0 ad that are relatively prime to. Usig the fact that φm ) φm)φ) wheever GCDm, ) 1, ad that for prime powers φp e ) p e p e 1, we compute that: φ600) φ 3 3 5 ) φ 3 )φ3)φ5 ) 3 )3 3 0 )5 5) 4 0 160. Therefore there are 160 umbers betwee 0 ad 600 that are relatively prime to 600. 3. Fid the remaider whe 3 39 is divided by 1. By Fermat s little theorem with p 7, we have the cogruece: 3 39 3 6 6+3 3 6 ) 6 3 3 1 6 3 3 6 mod 7). O the other had, 3 clearly divides the differece 3 39 6 as well. product 1 3 7 also divides the differece, so we have: Therefore the 3 39 6 mod 1). It follows that whe you divide 3 39 by 1 the remaider is 6. 4. Suppose that a 4 1 mod 19). What are the possible orders of a modulo 19? By the order divisibility property, if a k 1 mod 19), the the order of a modulo 19 must divide k. I our situatio where k 4, this meas that the order of a must be oe of the followig umbers: e p a) 1,, 3, 4, 6, 1, 4.

O the other had, by Fermat s little theorem a 18 1 mod 19). Thus by the order divisibility property agai, the order of a modulo 19 must divide 18, ad thus must be oe of the followig umbers: e p a) 1,, 3, 6, 9, 18. The umbers that occur i both lists are the possible values for the order of a modulo 19: e p a) 1,, 3, 6. 5. Do there exist iteger solutios x, y to the equatio 36x + 56y 1? Explai your reasoig. Recall that the smallest positive iteger that ca be writte as a liear combiatio ax + by of a ad b is the greatest commo divisor GCDa, b). I our situatio, we have GCD36, 56) 4, so there exist itegers x 0 ad y 0 such that 36x 0 + 56y 0 4. Multiplyig by 3, we see that x, y) 3x 0, 3y 0 ) is a iteger solutio to the give equatio: 363x 0 ) + 563y 0 ) 3 4 1. I fact, x 0, y 0 ) 11, 7) are solutios to the first equatio, so x, y) 33, 1) are solutios to the desired equatio. But you DON T eed to fid a solutio to aswer the give questio!) 6. Let p be a prime umber ad let x ad y be itegers. Prove that x + y) p x p + y p Let z be a iteger. If p divides z, the z p z mod p) is true because p divides both sides. O the other had, if p does ot divide z, the z p z mod p) holds by Fermat s little theorem. This shows that z p z mod p) is is always true. Applyig this fact i the cases z x + y, z x ad z y, we see that: x + y) p x + y x p + y p Remark: we proved this fact affectioately called the freshma s dream because the equatio x + y) x + y is a commo bit of wishful thikig amog the youg) usig Fermat s little theorem. But i fact, we could have doe thigs i the opposite order! That is, there is a proof that does ot rely o Fermat s little theorem, ad the we ca prove Fermat s little theorem usig this fact. Here s how this goes.

The biomial coefficiet proouced choose k ) is the umber of ways of choosig k uordered) objects from a collectio of objects. Oe ca show that: )! k k!!. So i particular this fractio is a iteger!) Cosider the expressio x + y). I the fial product, the coefficiet of y k is exactly the umber of ways to choose k of the differet terms x + y) to take a factor of y from. It follows that: ) ) ) ) x + y) x + x 1 y + x y + x y + xy 1 + y 1 1 i0 i ) x i y i. Notice that by the symmetry of this expressio i x ad y, this argumet shows that, a fact which is also apparet from the formula ) k!.) k!! Now, we wish to use this formula i the case where p is a prime umber. The key fact is that p divides p whe 1 k p 1. To prove this, otice that p does ot divide either k! or p!, sice each term i these products is less tha p ad hece relatively prime to p. It follows that i the fractio ) p p! k k!p!, there is o factor of p i the deomiator. Sice there is a factor of p i the umerator, it follows that p divides the whole expressio. This proves that p divides p whe 1 k p 1. It follows that i the biomial expasio x + y) p p i0 ) p x p i y i, i all terms are divisible by p except for the summads correspodig to i 0 ad i p. Therefore, x + y) p x p + y p mod p) as claimed. Here is the proof of Fermat s little theorem startig from the freshma s dream. We will prove that a p a mod p) for all positive itegers a by iductio o a. It is clearly true for a 1. Assume iductively that the statemet holds for the iteger a 1. By the freshma s dream, a p a 1) + 1) p a 1) p + 1 p a 1) p + 1 O the other had, a 1) p a 1 by the iductive hypothesis. It follows that a p a 1) + 1 a

Havig proved the geeral statemet, we ca derive Fermat s little theorem by takig a relatively prime to p. I this case, we may divide p from both sides of the cogruece, yieldig a p 1 1 Thus cocludes our alterative proof of Fermat s little theorem. 7. Let p be a odd prime umber ad suppose that g ad g are both primitive roots modulo p. Prove that their product gg is ot a primitive root modulo p. Sice p is odd, the fractio p 1 is a iteger. I claim that for a primitive root g, g p 1)/ 1 To see this, write x g p 1)/, ad otice that x g p 1)/ ) g p 1) 1 Therefore, x ±1 Sice g is a primitive root, it caot be the case that x g p 1)/ 1 It follows that g p 1)/ 1 Applyig this argumet for both of the primitive roots g ad g, we see that: gg ) p 1)/ g p 1)/ g p 1)/ 1) 1) 1 This is a istace of a cogruece g k 1 mod p) with k < p 1, which shows that gg is ot a primitive root. 8. a) Let p be a prime umber ad let g be a primitive root mod p. Show that p 1)! g pp 1)/ Sice g is a primitive root, the residue classes g, g, g 3,..., g p 1 mod p) are all distict. Hece the above list of residue classes is the same as the list 1,,..., p 1 mod p), but i a differet order. Takig the product of all residue classes i the list, we see that: p 1)! g g g p 1 g 1++3+ +p 1) Usig the idetity 1 + + 3 + + k k i i1 k + 1)k

with k p 1, we coclude that: as desired. b) Use part a) to deduce that p 1)! g 1++3+ +p 1) g pp 1) mod p), p 1)! 1 [Note: to receive credit o this problem, you must prove the result usig part a). It is ot fair to just quote the HW where you proved this i a differet way!] If p, the so the cogruece holds. p 1)! 1! 1 1 mod ), Now assume that p is odd. By the proof give i problem 7, we kow that g p 1)/ 1 Applyig part a), we have: p 1)! g pp 1) g p 1)/) p 1) p We kow that 1) p 1 because p is odd. Therefore, p 1)! 1