Midterm practice super-problems

Similar documents
Math 1111 Math Exam Study Guide

Math 1111 Math Exam Study Guide

8.2 Union, Intersection, and Complement of Events; Odds

Counting in Algorithms

CS1800 Discrete Structures Fall 2016 Profs. Aslam, Gold, Ossowski, Pavlu, & Sprague 7 November, CS1800 Discrete Structures Midterm Version C

Section Summary. Finite Probability Probabilities of Complements and Unions of Events Probabilistic Reasoning

Fundamental. If one event can occur m ways and another event can occur n ways, then the number of ways both events can occur is:.

Topics to be covered

Introductory Probability

Multiple Choice Questions for Review

The congruence relation has many similarities to equality. The following theorem says that congruence, like equality, is an equivalence relation.

Fall. Spring. Possible Summer Topics

CSCI 2200 Foundations of Computer Science (FoCS) Solutions for Homework 7

Math 475, Problem Set #3: Solutions

CS1802 Week 3: Counting Next Week : QUIZ 1 (30 min)

Solutions to Exercises on Page 86

Number Theory/Cryptography (part 1 of CSC 282)

HOMEWORK ASSIGNMENT 5

Principle of Inclusion-Exclusion Notes

CS100: DISCRETE STRUCTURES. Lecture 8 Counting - CH6

Solutions for the Practice Questions

Distribution of Primes

Lecture 14. What s to come? Probability. A bag contains:

Block 1 - Sets and Basic Combinatorics. Main Topics in Block 1:

Fermat s little theorem. RSA.

Example Enemy agents are trying to invent a new type of cipher. They decide on the following encryption scheme: Plaintext converts to Ciphertext

MA/CSSE 473 Day 9. The algorithm (modified) N 1

Applications of Fermat s Little Theorem and Congruences

TOURNAMENT ROUND. Round 1

Mathematics Competition Practice Session 6. Hagerstown Community College: STEM Club November 20, :00 pm - 1:00 pm STC-170

2. Nine points are distributed around a circle in such a way that when all ( )

Discrete Mathematics: Logic. Discrete Mathematics: Lecture 15: Counting

UCSD CSE 21, Spring 2014 [Section B00] Mathematics for Algorithm and System Analysis

CSE 312: Foundations of Computing II Quiz Section #2: Inclusion-Exclusion, Pigeonhole, Introduction to Probability

Solutions for the Practice Final

PT. Primarity Tests Given an natural number n, we want to determine if n is a prime number.

Discrete Mathematics and Probability Theory Spring 2018 Ayazifar and Rao Midterm 2 Solutions

Counting Things Solutions

Number Theory - Divisibility Number Theory - Congruences. Number Theory. June 23, Number Theory

CS1800: More Counting. Professor Kevin Gold

Lecture 32. Handout or Document Camera or Class Exercise. Which of the following is equal to [53] [5] 1 in Z 7? (Do not use a calculator.

Calculators will not be permitted on the exam. The numbers on the exam will be suitable for calculating by hand.

Advanced Intermediate Algebra Chapter 12 Summary INTRO TO PROBABILITY

1. Counting. 2. Tree 3. Rules of Counting 4. Sample with/without replacement where order does/doesn t matter.

Math is Cool Masters

About Permutations and Combinations: Examples

CSE 21 Mathematics for Algorithm and System Analysis

Final Exam, Math 6105

BMT 2018 Combinatorics Test Solutions March 18, 2018

Problems from 9th edition of Probability and Statistical Inference by Hogg, Tanis and Zimmerman:

3 The multiplication rule/miscellaneous counting problems

1999 Mathcounts National Sprint Round Solutions

DISCUSSION #8 FRIDAY MAY 25 TH Sophie Engle (Teacher Assistant) ECS20: Discrete Mathematics

Calculators will not be permitted on the exam. The numbers on the exam will be suitable for calculating by hand.

L29&30 - RSA Cryptography

CSE 312: Foundations of Computing II Quiz Section #2: Inclusion-Exclusion, Pigeonhole, Introduction to Probability (solutions)

Cryptography Math 1580 Silverman First Hour Exam Mon Oct 2, 2017

SMT 2013 Advanced Topics Test Solutions February 2, 2013

Algebra II- Chapter 12- Test Review

Introduction to Modular Arithmetic

Reading 14 : Counting

Honors Precalculus Chapter 9 Summary Basic Combinatorics

Chapter 2. Permutations and Combinations

elements in S. It can tricky counting up the numbers of

Multiples and Divisibility

CS1802 Week 6: Sets Operations, Product Sum Rule Pigeon Hole Principle (Ch )

Primitive Roots. Chapter Orders and Primitive Roots

Week 3 Classical Probability, Part I

Discrete Mathematics & Mathematical Reasoning Multiplicative Inverses and Some Cryptography

Combinatorial Proofs

Section Introduction to Sets

CS70: Lecture Review. 2. Stars/Bars. 3. Balls in Bins. 4. Addition Rules. 5. Combinatorial Proofs. 6. Inclusion/Exclusion

CSC/MATA67 Tutorial, Week 12

Xor. Isomorphisms. CS70: Lecture 9. Outline. Is public key crypto possible? Cryptography... Public key crypography.

Combinatorics. PIE and Binomial Coefficients. Misha Lavrov. ARML Practice 10/20/2013

MAT 243 Final Exam SOLUTIONS, FORM A

Linear Congruences. The solutions to a linear congruence ax b (mod m) are all integers x that satisfy the congruence.

Outcome 7 Review. *Recall that -1 (-5) means

Final exam. Question Points Score. Total: 150

Mathematics Explorers Club Fall 2012 Number Theory and Cryptography

Cryptography. 2. decoding is extremely difficult (for protection against eavesdroppers);

MTH 103 H Final Exam. 1. I study and I pass the course is an example of a. (a) conjunction (b) disjunction. (c) conditional (d) connective

Classical Cryptography

CMath 55 PROFESSOR KENNETH A. RIBET. Final Examination May 11, :30AM 2:30PM, 100 Lewis Hall

Counting Things. Tom Davis March 17, 2006

Massachusetts Institute of Technology 6.042J/18.062J, Spring 04: Mathematics for Computer Science April 16 Prof. Albert R. Meyer and Dr.

#0 Theta Ciphering MA National Convention 2015 The two lines with equations 17x 8y 159 and intersect at the point, the least common multiple of

Combinatorics: The Fine Art of Counting

Permutations and Combinations Section

Discrete Math Class 4 ( )

1 = 3 2 = 3 ( ) = = = 33( ) 98 = = =

PUTNAM PROBLEMS FINITE MATHEMATICS, COMBINATORICS

Solutions for the 2nd Practice Midterm

3 The multiplication rule/miscellaneous counting problems

MAT104: Fundamentals of Mathematics II Summary of Counting Techniques and Probability. Preliminary Concepts, Formulas, and Terminology

Elementary Combinatorics

Contents 2.1 Basic Concepts of Probability Methods of Assigning Probabilities Principle of Counting - Permutation and Combination 39

Strings. A string is a list of symbols in a particular order.

IB HL Mathematics Homework 2014

2017 FHSPS Playoff February 25, 2017 Timber Creek High School

Transcription:

Midterm practice super-problems These problems are definitely harder than the midterm (even the ones without ), so if you solve them you should have no problem at all with the exam. However be aware that not all concepts are covered in these problems, so make sure to recap: binary/hex/octal representations and tranformations, powers of 2, fast multiplication logic operators, truth tables, dnf/cnf and logic rules, logic gates, circuits modulo/number theory: all items in the summary from notes sets operations, power set, cartesian products, inclusion-exclusion product rule, permutations, combinations, balls in bins, binomial theorem, Pascal triangle EC 1. n=143=11*13 compute 12 2403 mod n compute 10 2403 mod n EC 2. Show that any natural number whose binary representation has the 1 bits organized in pairs (011, 0110000, 11011000, 110001100000110, etc) is a multiple of 3. EC 3. How many natural numbers smaller than 100 are the sum of 4 different powers of 2? (i.e. like 83 = 2 0 + 2 1 + 2 4 + 2 6 ) 1

EC 4. 3 sets are given A={naturals multiples of 2, no more than 300} B={naturals multiples of 3, no more than 300} C={naturals multiples of 5, no more than 300} Compute the size of the union of these three sets Compute the size of the intersection of these three sets EC 5 (difficulty ). We have 100 red balls and 150 blue balls, and 20 bins; each bin must contain at least as many blue balls as red ones. In how many ways we can arrange all 250 balls into these 20 bins? EC 6. In how many ways 20 husband-wife couples can sit at a round table with 40 seats unnumbered, such that every husband sits next to his wife? EC 7 (difficulty ). What is the probability of 20 husband-wife couples sitting randomly at a round table with 40 seats unnumbered, that no husband sits next to his wife? EC 8 (difficulty ). Show that picking a random positive integer (say int 4 bytes), the chance of getting a prime is smaller than 5%. EC 9 (difficulty ). Show that one cannot cut three 3x3 squares and six 2x3 rectangles from a sheet of paper 8x8 square. EC 10. A is a set with 21 elements. How many subsets of A have size multiple of 4? EC 11 (difficulty ). Given any 7 integers, show that there are 2 of them 2

with either sum or difference or product = multiple of 15. EC 12. Given any 5 integers a,b,c,d,e show that there is a nonempty subset of them that with +,- operands gives a multiple of 31 (i.e. at least one of these is multiple of 31: +a; +a+b ; -a+c-d ; -b-d; -c ; c-b-d+e, etc) EC 13 (difficulty ). At bridge card game, the 52 cards in the deck (4 suits each with numerals 2-10 and JQKA) are evaluated as numerals=0points; J=1 point; Q=2points; K=3points; A=4points. A bridge hand is a subset of 13 cards. How many different hands have at least 12 points? EC 14. Linear cipher modulo 26, cipher = a*message + b mod 26 uses unknown a, b. You intercept two of your own messages encrypted, so for these you know both the message and the cipher: message =10 cipher =5 message =4 cipher =1 Find a and b. EC 15. Two sorted sequences lengths 20 and 7 are given: (1,2,3,...20) and (a,b,c,d,e,f,g). We want to interleave them into a sequence of length 27 such that numbers 1-20 remain in relative order, and also literals a-g remain in relative order. How many ways to do so? EC 16 (difficulty ). Valid passwords of length 6 can use the 10 digits and the 26 capital letters in any order, with the condition that two digits cannot be next to each other. How many passwords? EC 17 (difficulty ). In how many ways can we parenthesize (orders of operations) the multiplication of 10 values abcdefghij? To be clear, there are 5 ways to multiply 4 numbers abcd: 3

((ab)c)d ; (a(bc))d ; (ab)(cd) ; a((bc)d) ; a(b(cd)) EC 18 (difficulty ). Show that ( 22 11) is a multiple of 12 EC 19. Show that the number obtained by concatenating 337 with itself 5 times 337337337337337 is not prime. EC 20. Is the GCD transitive in the following way? Hypothesis: gcd(a, b) = gcd(b, c) = d gcd(a, c) = d EC 21. A group of 11 students is such that everyone has exactly 10 friends in the group (including himself/herself; friends are reciprocal). Thats impossible. EC 22. Show that 5 is not a ratio of two integers EC 23. Two positive integers a, b have both the sum and the difference a power of 2. Show that neither of them is a power of two, but their gcd is. EC 24 (difficulty ). Evil Search Engine finds for a query 15 relevant URL results, and while keeping them ranked in a given score-relevance order, it is mixing them together with other 15 random ads; then serves them as a ranked list of 30. How many arrangements of 30 are there (order among ads doesnt matter) so that when served as 3 pages each with 10 links, each page contains at least 3 relevant and at least 3 ads? EC 25 (difficulty ). A = {1,2,3,4,5,6,7}. What is the max number of 4-element-subsets we can select, such that intersection of any 3 of them is empty? 4

EC 26 (difficulty ). A = {1,2,3,4,5,6,7}. How many sequences of length 20 with elements from A are never decreasing? 5