Fall 2017 Test II review problems

Similar documents
Homework #2 Solutions Due: September 5, for all n N n 3 = n2 (n + 1) 2 4

MAT 243 Test 2 SOLUTIONS, FORM A

Homework #2 solutions Due: June 15, 2012

Math Circle: Recursion and Induction

MATH 215 Final. M4. For all a, b in Z, a b = b a.

Chapter 5.1: Induction

Math 109 HW 9 Solutions

Recitation 7: Existence Proofs and Mathematical Induction

Mathematics 228(Q1), Assignment 2 Solutions

3 - Induction and Recursion

WORKSHEET MATH 215, FALL 15, WHYTE. We begin our course with the natural numbers:

2301 Assignment 1 Due Friday 19th March, 2 pm

This is a recursive algorithm. The procedure is guaranteed to terminate, since the second argument decreases each time.

Math 3000 Section 003 Intro to Abstract Math Homework 6

1 Examples of Weak Induction

Mathematical Fundamentals

Writing Assignment 2 Student Sample Questions

Math 13, Spring 2013, Lecture B: Midterm

1. Consider the conditional E = p q r. Use de Morgan s laws to write simplified versions of the following : The negation of E : 5 points

then the hard copy will not be correct whenever your instructor modifies the assignments.

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}.

Direct Proof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Direct Proof Fall / 24

Cool Results on Primes

Discrete Math, Spring Solutions to Problems V

Induction. Induction. Induction. Induction. Induction. Induction 2/22/2018

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers

12x + 18y = 50. 2x + v = 12. (x, v) = (6 + k, 2k), k Z.

Number Theory Basics Z = {..., 2, 1, 0, 1, 2,...} For, b Z, we say that divides b if z = b for some. Notation: b Fact: for all, b, c Z:

Math 131 notes. Jason Riedy. 6 October, Linear Diophantine equations : Likely delayed 6

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime.

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is

MAT 243 Test 2 SOLUTIONS, FORM A

MATH 501 Discrete Mathematics. Lecture 6: Number theory. German University Cairo, Department of Media Engineering and Technology.

MATH 2200 Final Review

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...}

Table of Contents. 2013, Pearson Education, Inc.

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

Math 016 Lessons Wimayra LUY

Solutions to Problem Set 4 - Fall 2008 Due Tuesday, Oct. 7 at 1:00

1. (16 points) Circle T if the corresponding statement is True or F if it is False.

Discrete Mathematics and Probability Theory Fall 2018 Alistair Sinclair and Yun Song Note 6

Proof Techniques (Review of Math 271)

Name CMSC203 Fall2008 Exam 2 Solution Key Show All Work!!! Page (16 points) Circle T if the corresponding statement is True or F if it is False.

Section 4. Quantitative Aptitude

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

Problem Set 5 Solutions

CHAPTER 4 SOME METHODS OF PROOF

1 Overview and revision

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

MATH 2400: PRACTICE PROBLEMS FOR EXAM 1

PRACTICE PROBLEMS: SET 1

Exam 2 Review Chapters 4-5

The Euclidean Algorithm and Multiplicative Inverses

PROBLEM SET 1 SOLUTIONS 1287 = , 403 = , 78 = 13 6.

Induction 1 = 1(1+1) = 2(2+1) = 3(3+1) 2

Fermat's Little Theorem

201-1A5-MT - Mathematics Summer 2015 HOMEWORK 2 Deadline : Sunday, August 30, 2015 at 12 :30.

Chapter Summary. Mathematical Induction Strong Induction Well-Ordering Recursive Definitions Structural Induction Recursive Algorithms

Wednesday, February 21. Today we will begin Course Notes Chapter 5 (Number Theory).

STEP Support Programme. Hints and Partial Solutions for Assignment 17

Math 3012 Applied Combinatorics Lecture 4

MAT246H1S - Concepts In Abstract Mathematics. Solutions to Term Test 1 - February 1, 2018

MATH10040: Numbers and Functions Homework 1: Solutions

Mat Week 8. Week 8. gcd() Mat Bases. Integers & Computers. Linear Combos. Week 8. Induction Proofs. Fall 2013

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Solutions

CSCE 222 Discrete Structures for Computing. Dr. Hyunyoung Lee

Math 430 Exam 1, Fall 2006

Student Responsibilities Week 8. Mat Section 3.6 Integers and Algorithms. Algorithm to Find gcd()

NOTES ON SIMPLE NUMBER THEORY

Homework 7 Solutions, Math 55

8. Given a rational number r, prove that there exist coprime integers p and q, with q 0, so that r = p q. . For all n N, f n = an b n 2

All variables a, b, n, etc are integers unless otherwise stated. Each part of a problem is worth 5 points.

(e) Commutativity: a b = b a. (f) Distributivity of times over plus: a (b + c) = a b + a c and (b + c) a = b a + c a.

Section 4.1: Sequences and Series

Senior Math Circles Cryptography and Number Theory Week 2

Introduction to Induction (LAMC, 10/14/07)

2 Elementary number theory

MATH 324 Summer 2011 Elementary Number Theory. Notes on Mathematical Induction. Recall the following axiom for the set of integers.

Induction and Recursion

Mathematical Induction

Algebra for error control codes

Induction and recursion. Chapter 5

Number Theory Math 420 Silverman Exam #1 February 27, 2018

Math 261 Spring 2014 Final Exam May 5, 2014

MATH 2200 Final LC Review

Contribution of Problems

Finding Divisors, Number of Divisors and Summation of Divisors. Jane Alam Jan

Solutions to Tutorial 4 (Week 5)

Every subset of {1, 2,...,n 1} can be extended to a subset of {1, 2, 3,...,n} by either adding or not adding the element n.

Discrete Mathematics and Probability Theory Summer 2014 James Cook Note 5

Fibonacci mod k. In this section, we examine the question of which terms of the Fibonacci sequence have a given divisor k.

Chapter 5. Number Theory. 5.1 Base b representations

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers

M381 Number Theory 2004 Page 1

INTEGERS. In this section we aim to show the following: Goal. Every natural number can be written uniquely as a product of primes.

Solutions for October Problems

D-MATH Algebra I HS18 Prof. Rahul Pandharipande. Solution 1. Arithmetic, Zorn s Lemma.

Arithmetic Algorithms, Part 1

Number theory (Chapter 4)

Transcription:

Fall 2017 Test II review problems Dr. Holmes October 18, 2017 This is a quite miscellaneous grab bag of relevant problems from old tests. Some are certainly repeated. 1. Give the complete addition and multiplication tables for mod 4 arithmetic. + 0 1 2 3 0 0 1 2 3 1 1 2 3 0 2 2 3 0 1 3 3 0 1 2 0 1 2 3 0 0 0 0 0 1 0 1 2 3 2 0 2 0 2 3 0 3 2 1 Give the complete addition and multiplication tables for base 4. + 0 1 2 3 0 0 1 2 3 1 1 2 3 10 2 2 3 10 11 3 3 10 11 12 1

0 1 2 3 0 0 0 0 0 1 0 1 2 3 2 0 2 10 12 3 0 3 12 21 Notice that these are not the same thing! Convert 27 and 45 to base 4. Carry out the calculations 27+45 and (27)(45) in base 4. Convert your results back to base 10 and check that you have the right answers. 27 = 16+8+3 = 123 4 45 = 32+12+1 = 231 4 adding: 1 1 1 2 3 2 3 1 1 0 2 0 and you can check that 24+45=72 = 1020 4. 1 2 3 2 3 1 1 2 3 1 1 2 0 2 1 3 1 1 1 2 1 0 2 3 3 3 and 102333 4 = 1215 ten = (27 ten ) (45 ten ). Fall 2017 comment: We will not be doing actual calculations in bases, just conversions. 2

2. Compute gcd(6105, 21390). 21390 divided by 6105 is 3 remainder 3075. 6105 divided by 3075 is 1, remainder 3030. 3075 divided by 3030 is 1, remainder 45. 3030 divided by 45 is 67, remainder 15. 45 divided by 15 is 3 remainder 0. So the gcd is 15. Determine integers m and n such that 6105m+21390n = gcd(6105, 21390). 21390 - (3)(6105) = 3075. 3030 = 6105-3075 = 6105 - (21390 - (3)(6105)) = (4)(6105) - 21390 45 = 3075-3030 = (21390 - (3)(6105)) - ((4)(6105) - 21390) = (2)(21390) - (7)(6105) 15 = 3030 - (67)(45) = ((4)(6105) - 21390) - (67)((2)(21390) - (7)(6105)) = (4 + (67(7))(6105) - (1 + (67(2)))(21390) = (473)(6105) - (135)(21390) So gcd(21390,6105) = 15 = 473*6105-135*21390. Fall 2017 comment: Put this in table format. 3

3. Do one of the two induction proofs. (a) Prove by mathematical induction that the sum n 3 n = 1 + 3 + 9 +... + 3 n i=0 is equal to 3n+1 1 2, for each natural number n 0. Be sure to clearly identify the basis step and the induction step. In the induction step, identify the inductive hypothesis and the goal to be proved, and indicate where in your proof the inductive hypothesis is used. A significant amount of credit will be based on setting up the proof correctly. 4

(b) Prove by mathematical induction that 10 n 1 is divisible by 3 for each natural number n 0. Be sure to clearly identify the basis step and the induction step. In the induction step, identify the inductive hypothesis and the goal to be proved, and indicate where in your proof the inductive hypothesis is used. A significant amount of credit will be based on setting up the proof correctly. 5

4. Do two of the three following proofs (two are induction, one is proof by contradiction (omitted). In the math induction proofs, clearly identify the basis step, induction step, and induction hypothesis, and show me where the induction hypothesis is used in your proof. If you do all parts your best two will count and extra credit is possible. (a) Prove by mathematical induction that the sum of the first n odd numbers is equal to n 2. This sum can be written in the form ni=1 (2i 1) or the form 1 + 3 + 5 +... + (2n 1) 6

(b) Prove by mathematical induction that for any natural number n, n 3 + 5n is divisible by 3. 7

5. The sequence G n is defined by the recurrence relation G 1 = 2; G 2 = 3; G n = 2G n 1 + 8G n 2 for n > 1 Compute the next four terms of the sequence using the recurrence relation. A closed form expression for G n, believe it or not, is ( 7 24 )(4n ) 5 12 ( 2)n. Check that the first few values are correct. If you feel up to the algebra, try proving by induction that the formula is correct (the algebra is a bit too unpleasant for a test). 8

6. Compute the greatest common divisor of 2701 and 629. Show all steps. Clearly identify the number which you claim is the gcd! Use your gcd calculation to find integers x and y such that 2701x + 629y = gcd(2701,629) (and include a check that they work). 9

7. Prove by mathematical induction that the sum of the first n odd numbers is n 2 : 1 + 3 + 5 +... + (2n 3) + (2n 1) = n 2. As part of your setup, write this statement in summation (Σ) notation: you do not have to use this notation in your proof, though. Be sure that the basis step, induction step, inductive hypothesis and any use of the inductive hypothesis in the proof are clearly identified. Make sure that you clearly distinguish between what you are assuming and what you are trying to prove. 10

8. Prove by mathematical induction that n 3 + 5n is divisible by 3 for each natural number n. Be sure that the basis step, induction step, inductive hypothesis and any use of the inductive hypothesis in the proof are clearly identified. Make sure that you clearly distinguish between what you are assuming and what you are trying to prove. 11

9. Compute the first six terms of the sequence defined by the equations a 1 = 1; a 2 = 3; a n+2 = 6a n+1 8a n. A formula for a n is 1 8 (4n ) + 1 4 (2n ). Check that this works for the first few terms. Use the formula to compute a n. Prove that the formula is correct by induction. 12

10. Compute 38 div 10 and 38 mod 10. (div is integer division and mod is remainder.) That was easy! Compute -38 div 10 and -38 mod 10. obvious. That should be slightly less 13

11. Present the multiplication table for mod 5 arithmetic. 14

12. (a) Compute gcd(11, 37). Express gcd(11,37) in the form 37x + 11y. (b) Compute the gcd of 30 and 74 using the Euclidean algorithm (and clearly indicate that you know what the answer is: gcd(30, 74) =...). Find integers x and y such that 30x + 74y = gcd(30, 74). 15

13. Prove by mathematical induction that for any nonnegative integer n, the sum Σ n i=03 i = 1 + 3 + 9 +... + 3 i 1 + 3 i = 3n+1 1 2. 16

14. Use the Euclidean algorithm to find the greatest common denominator of 23 and 37, showing all work and clearly indicating to me that you know what the answer is: gcd(23, 37) =.... Determine x and y such that 23x + 37y = 1: this should come out of your gcd calculation. Show all work. 17

15. Prove by mathematical induction that the sum 2 + 4 + 6 +... + 2n of the first n even numbers is n(n + 1). Be sure to clearly identify the basis step, induction hypothesis and induction goal and clearly label the place(s) where the induction hypothesis is used. 18

16. The Fibonacci numbers are defined by the following conditions: F 0 = 1; F 1 = 1; F n+2 = F n+1 + F n. Prove the following statement by mathematical induction: for each natural number n, F 3n is odd, F 3n+1 is odd, and F 3n+2 is even (notice that this completely describes the pattern determining what Fibonacci numbers are even and what Fibonacci numbers are odd). Hint: this is an ordinary induction (you need just one basis step and just one induction hypothesis). If you write out correctly exactly what you assume and exactly what you need to show, it is not hard. Write English sentences! 19

17. Compute the first six terms of the sequence defined by the equations 18. A sequence is defined by a 0 = 1; a 1 = 3; a n+2 = 6a n+1 8a n. Compute its first five terms. a 0 = 3; a 1 = 1; a n+2 = 2a n+1 + 3a n 19. A sequence a n is defined by the recursive definition a 1 = 3; a 2 = 5; a k+2 = 2a k+1 a k Compute the first ten terms of this sequence. You should recognize this sequence! Give a closed form formula for a n. Prove this to be correct by math induction. 20

20. Prove by mathematical induction that the sum of the first n integers, is equal to n i = 1 + 2 + 3 +... + n i=1 n(n + 1) 2 21. Compute the first six terms of the sequence defined by a 0 = 2; a 1 = 3; a n+2 = 3a n+1 2a n. 22. Determine the gcd of 123 and 111 and numbers x and y such that 123x + 111y = gcd(123, 111) 23. Compute the first six terms of the sequence defined by a 0 = 4; a 1 = 7; a n+2 = 3a n+1 2a n. 21

24. Write out the multiplication table for mod 7 arithmetic. 25. Compute gcd(38, 71) using the Euclidean algorithm. Express gcd(38, 71) in the form 38x + 71y where x and y are integers. 22

26. Do two of the three mathematical induction problems. These count as two separate problems on the test, not as two parts of one question. If you do all three, your best two problems will count, and success on all three may yield some extra credit (don t try for a third until you have completed the rest of the test!) (a) Prove by mathematical induction that the sum of the first n numbers is n(n+1) 2. 23

(b) Prove by mathematical induction that for each natural number n, 4 n 1 is divisible by 3. You may use the fact that the sum or difference of two numbers both divisible by 3 is also divisible by 3. 24

(c) Prove by mathematical induction that the sequence defined by a 0 = 3; a 1 = 7; a n+2 = 5a n+1 6a n satisfies a n = 2 n+1 + 3 n for each natural number n. 25

27. Do both of the math induction problems. The one on which you do better will count twice as much as the other. In each problem, clearly label the basis step, the induction hypothesis, and the goal of the induction step. Indicate clearly where the induction hypothesis is used in the proof of the induction step. (a) Prove by induction that the sum of the first n odd numbers is n 2, for any positive integer n. 26

(b) Prove by induction that 10 n 1 is divisible by 9 for each natural number n. 27

28. Compute the first six terms of the sequence with the recursive definition a 0 = 1; a 1 = 2; a n+2 = 4a n+1 3a n. 29. Use the Euclidean algorithm to compute gcd(180, 125); further, use the Euclidean algorithm computation to find integers x and y such that 180x + 125y = gcd(180, 125). Use the table format used in class examples and show all work. Your answer must clearly show that you know what gcd(180, 125) is, what x is, and what y is. 28

30. Prove by mathematical induction that n 3 + 2n is divisible by 3 for each natural number n. The basis step, induction step and the place where you use the induction hypothesis should all be clearly identified. 29

31. A sequence a n is defined by the recursive definition a 1 = 3; a 2 = 5; a k+2 = 2a k+1 a k Compute the first ten terms of this sequence. You should recognize this sequence! Give a closed form formula for a n. For extra credit, or to replace one of the two previous problems, prove this to be correct by math induction. 30

32. Multiplication table for mod 5 arithmetic: 0 1 2 3 4 0 0 0 0 0 0 1 0 1 2 3 4 2 0 2 4 1 3 3 0 3 1 4 2 4 0 4 3 2 1 Find a solution to 137x + 7y = 1 in integers. Here s the Euclidean algorithm calculation: 7x + 137y x y q 137 0 1 7 1 0 4 19 1 19 3 20 1 1 1 39 2 1 31