ΤΜΗΜΑ ΗΛΕΚΤΡΟΛΟΓΩΝ ΜΗΧΑΝΙΚΩΝ ΚΑΙ ΜΗΧΑΝΙΚΩΝ ΥΠΟΛΟΓΙΣΤΩΝ

Σχετικά έγγραφα
Oscillatory integrals

Section 8.3 Trigonometric Equations

Section 7.6 Double and Half Angle Formulas

EE512: Error Control Coding

Matrices and Determinants

Solutions 3. February 2, Apply composite Simpson s rule with m = 1, 2, 4 panels to approximate the integrals:

2 Composition. Invertible Mappings

Solutions_3. 1 Exercise Exercise January 26, 2017

Finite Field Problems: Solutions

Σχολή Εφαρμοσμένων Μαθηματικών και Φυσικών Επιστημών. Εθνικό Μετσόβιο Πολυτεχνείο. Thales Workshop, 1-3 July 2015.

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 19/5/2007

3.4 SUM AND DIFFERENCE FORMULAS. NOTE: cos(α+β) cos α + cos β cos(α-β) cos α -cos β

Areas and Lengths in Polar Coordinates

Homework 3 Solutions

Trigonometric Formula Sheet

HOMEWORK 4 = G. In order to plot the stress versus the stretch we define a normalized stretch:

AMS 212B Perturbation Methods Lecture 14 Copyright by Hongyun Wang, UCSC. Example: Eigenvalue problem with a turning point inside the interval

Math221: HW# 1 solutions

2. THEORY OF EQUATIONS. PREVIOUS EAMCET Bits.

Areas and Lengths in Polar Coordinates

Ordinal Arithmetic: Addition, Multiplication, Exponentiation and Limit

Inverse trigonometric functions & General Solution of Trigonometric Equations

w o = R 1 p. (1) R = p =. = 1

Quadratic Expressions

( ) 2 and compare to M.

ST5224: Advanced Statistical Theory II

SOLUTIONS TO PROBLEMS IN LIE ALGEBRAS IN PARTICLE PHYSICS BY HOWARD GEORGI STEPHEN HANCOCK

Example Sheet 3 Solutions

CHAPTER 25 SOLVING EQUATIONS BY ITERATIVE METHODS

PARTIAL NOTES for 6.1 Trigonometric Identities

Solutions to Exercise Sheet 5

To find the relationships between the coefficients in the original equation and the roots, we have to use a different technique.

Econ 2110: Fall 2008 Suggested Solutions to Problem Set 8 questions or comments to Dan Fetter 1

9.09. # 1. Area inside the oval limaçon r = cos θ. To graph, start with θ = 0 so r = 6. Compute dr

Phys460.nb Solution for the t-dependent Schrodinger s equation How did we find the solution? (not required)

Tridiagonal matrices. Gérard MEURANT. October, 2008

Lecture 15 - Root System Axiomatics

ANSWERSHEET (TOPIC = DIFFERENTIAL CALCULUS) COLLECTION #2. h 0 h h 0 h h 0 ( ) g k = g 0 + g 1 + g g 2009 =?

Practice Exam 2. Conceptual Questions. 1. State a Basic identity and then verify it. (a) Identity: Solution: One identity is csc(θ) = 1

Section 9.2 Polar Equations and Graphs

Fourier Series. MATH 211, Calculus II. J. Robert Buchanan. Spring Department of Mathematics

Nowhere-zero flows Let be a digraph, Abelian group. A Γ-circulation in is a mapping : such that, where, and : tail in X, head in

If ABC is any oblique triangle with sides a, b, and c, the following equations are valid. 2bc. (a) a 2 b 2 c 2 2bc cos A or cos A b2 c 2 a 2.

Econ Spring 2004 Instructor: Prof. Kiefer Solution to Problem set # 5. γ (0)

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 6/5/2006

Differentiation exercise show differential equation

forms This gives Remark 1. How to remember the above formulas: Substituting these into the equation we obtain with

Approximation of distance between locations on earth given by latitude and longitude

Math 446 Homework 3 Solutions. (1). (i): Reverse triangle inequality for metrics: Let (X, d) be a metric space and let x, y, z X.

Similarly, we may define hyperbolic functions cosh α and sinh α from the unit hyperbola

Jesse Maassen and Mark Lundstrom Purdue University November 25, 2013

6.1. Dirac Equation. Hamiltonian. Dirac Eq.

Srednicki Chapter 55

DESIGN OF MACHINERY SOLUTION MANUAL h in h 4 0.

C.S. 430 Assignment 6, Sample Solutions

Reminders: linear functions

SCHOOL OF MATHEMATICAL SCIENCES G11LMA Linear Mathematics Examination Solutions

Partial Differential Equations in Biology The boundary element method. March 26, 2013

Notes on the Open Economy

The Simply Typed Lambda Calculus

Second Order RLC Filters

b. Use the parametrization from (a) to compute the area of S a as S a ds. Be sure to substitute for ds!

k A = [k, k]( )[a 1, a 2 ] = [ka 1,ka 2 ] 4For the division of two intervals of confidence in R +

Lecture 10 - Representation Theory III: Theory of Weights

CRASH COURSE IN PRECALCULUS

D Alembert s Solution to the Wave Equation

( )( ) La Salle College Form Six Mock Examination 2013 Mathematics Compulsory Part Paper 2 Solution

SCITECH Volume 13, Issue 2 RESEARCH ORGANISATION Published online: March 29, 2018

( y) Partial Differential Equations

Problem Set 3: Solutions

19 η ΒΑΛΚΑΝΙΚΗ ΜΑΘΗΜΑΤΙΚΗ ΟΛΥΜΠΙΑΔΑ ΝΕΩΝ Ιουνίου, 2015, Βελιγράδι, Σερβία

6.3 Forecasting ARMA processes

Problem Set 9 Solutions. θ + 1. θ 2 + cotθ ( ) sinθ e iφ is an eigenfunction of the ˆ L 2 operator. / θ 2. φ 2. sin 2 θ φ 2. ( ) = e iφ. = e iφ cosθ.

SOLVING CUBICS AND QUARTICS BY RADICALS

MATHEMATICS. 1. If A and B are square matrices of order 3 such that A = -1, B =3, then 3AB = 1) -9 2) -27 3) -81 4) 81

Lecture 2. Soundness and completeness of propositional logic

2. Let H 1 and H 2 be Hilbert spaces and let T : H 1 H 2 be a bounded linear operator. Prove that [T (H 1 )] = N (T ). (6p)

Exercises 10. Find a fundamental matrix of the given system of equations. Also find the fundamental matrix Φ(t) satisfying Φ(0) = I. 1.

Numerical Analysis FMN011

ΚΥΠΡΙΑΚΟΣ ΣΥΝΔΕΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY 21 ος ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ Δεύτερος Γύρος - 30 Μαρτίου 2011

MA 342N Assignment 1 Due 24 February 2016

Μηχανική Μάθηση Hypothesis Testing

(a,b) Let s review the general definitions of trig functions first. (See back cover of your book) sin θ = b/r cos θ = a/r tan θ = b/a, a 0

Second Order Partial Differential Equations

Απόκριση σε Μοναδιαία Ωστική Δύναμη (Unit Impulse) Απόκριση σε Δυνάμεις Αυθαίρετα Μεταβαλλόμενες με το Χρόνο. Απόστολος Σ.

Congruence Classes of Invertible Matrices of Order 3 over F 2

Mock Exam 7. 1 Hong Kong Educational Publishing Company. Section A 1. Reference: HKDSE Math M Q2 (a) (1 + kx) n 1M + 1A = (1) =

INTEGRAL INEQUALITY REGARDING r-convex AND

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 24/3/2007

On a four-dimensional hyperbolic manifold with finite volume

Συστήματα Διαχείρισης Βάσεων Δεδομένων

Lecture 13 - Root Space Decomposition II

derivation of the Laplacian from rectangular to spherical coordinates

Trigonometry 1.TRIGONOMETRIC RATIOS

Statistical Inference I Locally most powerful tests

CHAPTER 48 APPLICATIONS OF MATRICES AND DETERMINANTS

TMA4115 Matematikk 3

Differential equations

Αλγόριθμοι και πολυπλοκότητα NP-Completeness (2)

Lecture 2: Dirac notation and a review of linear algebra Read Sakurai chapter 1, Baym chatper 3

Transcript:

ΗΜΥ ΔΙΑΚΡΙΤΗ ΑΝΑΛΥΣΗ ΚΑΙ ΔΟΜΕΣ ΤΜΗΜΑ ΗΛΕΚΤΡΟΛΟΓΩΝ ΜΗΧΑΝΙΚΩΝ ΚΑΙ ΜΗΧΑΝΙΚΩΝ ΥΠΟΛΟΓΙΣΤΩΝ ΗΜΥ Διακριτή Ανάλυση και Δομές Χειμερινό Εξάμηνο 6 Σειρά Ασκήσεων Ακέραιοι και Διαίρεση, Πρώτοι Αριθμοί, GCD/LC, Συστήματα Ταύτισης Eercise Problem..7 The given condition mens tht bc= (c)t for some integer t. Since c, we cn divide both sides b c to obtin b = t. This is the definition of b, s desired. Problem.. (optionl) In ech cse we merel hve to compute the epression on the right mod. This mens dividing it b nd ting the (nonnegtive) reminder. ) 9 mod = 6 mod = b) b) 9 mod = 99 mod = 8 c) + 9 mod = mod = d) + 9 mod = 5 mod = 9 e) + 9 mod = 97 mod = 6 f) - 9 mod = -665 mod = (becuse -665 = -5 + ) Problem..7 ) To show tht this conditionl sttement does not necessril hold, we need to find n emple in which c =bc (mod m), but b (mod m). Let m = nd c = (wht is importnt in constructing this emple is tht m nd c hve nontrivil common fctor). Let = nd b =. Then c = nd bc =, so c =bc (mod ), but (mod ).

ΗΜΥ ΔΙΑΚΡΙΤΗ ΑΝΑΛΥΣΗ ΚΑΙ ΔΟΜΕΣ b) To show tht this conditionl sttement does not necessril hold, we need to find n emple in which = b (mod m) nd c = d (mod m), but c b d (mod m). If we tr few rndoml chosen positive integers, we will esil find counteremple. Let m = 5, =, b =, c =, nd d = 6. Then c = nd b d = 79 = (mod 5), so 6 (mod 5), even though = (mod 5) nd = 6 (mod 5). Problem..5 (optionl) In ech cse we follow the ide of converting ech octl digit to its binr equivlent (including leding 's where necessr). Note tht b convention we then group the binr digits into groups of fours, strting t the right. ) Since (5) 8 = (), (7) 8 = (lll), nd () 8 = (), we hve (57) 8 = ( ). b) We conctente,,, nd to obtin ( ). c) ( ) d) ( ) Problem..7 We simpl write the binr equivlents of ech digit (A) 6 = (), (B) 6 = (), (C) 6 = (), (D) 6 = (), (E) 6 = (), nd (F) 6 = (). Note tht the blocing b groups of four binr digits is just for redbilit b humns. ) (8E) 6 = ( ) b) (5AB) 6 = ( ) c) (ABBA) 6 = ( ) d) (DEFACED) 6 = ( ) Problem..5! = 5 6 7 8 9 = 5 ( ) 7 ( 5) = 8 5 7

ΗΜΥ ΔΙΑΚΡΙΤΗ ΑΝΑΛΥΣΗ ΚΑΙ ΔΟΜΕΣ Problem..5 The prime fctors of re,, nd 5. Thus we re looing for positive integers less thn tht hve none of these s prime fctors. Since the smllest prime number other thn these is 7, nd 7 is lred greter thn, in fct onl primes (nd the number ) will stisf this condition. Therefore the nswer is, 7,,, 7, 9,, nd 9. Problem..5 ) Following the procedure of Emple, we crr out the Eucliden lgorithm to find gcd(, 9) 9= + = Then we wor bcwrds to rewrite the gcd (the lst nonzero reminder, which is here) in terms of nd 9 =9- Therefore the Bezout coefficients of 9 nd re nd -, respectivel. The coefficient of is our desired nswer, nmel -, which is the sme s 7 modulo 9. b) We proceed s bove =7 9 + 8 9 = 8 + 8= + = + = Then we wor bcwrds to rewrite the gcd (the lst nonzero reminder, which is here) in terms of nd 9 =- = - (8 - ) = - 8

ΗΜΥ ΔΙΑΚΡΙΤΗ ΑΝΑΛΥΣΗ ΚΑΙ ΔΟΜΕΣ = (9-8) - 8 = 9-7 8 = 9-7 ( - 7 9) = (-7) +5 9 Therefore the Bezout coefficient of 9 is 5, nd tht is n inverse of 9 modulo. c) We proceed s bove 89 = 55 + 55 = + = + = + 8 = 8 + 5 8= 5+ 5= + = + = Then we wor bcwrds to rewrite the gcd (the lst nonzero reminder, which is here) in terms of 89 nd 55 =- = - (5 - ) = - 5 = (8-5) - 5 = 8-5 =. 8 - ( - 8) = 5 8 -. = 5 ( - ) - = 5-8 = 5-8 ( - ) = - 8 = (55 - ) - 8 = 55 - = 55 - (89-55) = 55-89 Therefore the Bezout coefficient of 55 is, nd tht is n inverse of 55 modulo 89.

ΗΜΥ ΔΙΑΚΡΙΤΗ ΑΝΑΛΥΣΗ ΚΑΙ ΔΟΜΕΣ d) We proceed s bove = 89 + 5 89 = 5 + 5 5 = 5 + 9 5 = 9 + 6 9 = 6 + 6=5 + = Then we wor bcwrds to rewrite the gcd (the lst nonzero reminder, which is here) in terms of nd 89 =6-5 = 6-5 (9-6) = 6 6-5 9 = 6 (5-9) - 5 9 = 6 5-9 = 6 5 - (5-5) = 7 5-5 = 7 (89-5) - 5 = 7 89-8 5 = 7 89-8 ( - 89) = 7 89-8 Therefore the Bezout coefficient of 89 is 7, nd tht is n inverse of 89 modulo. 5

ΗΜΥ ΔΙΑΚΡΙΤΗ ΑΝΑΛΥΣΗ ΚΑΙ ΔΟΜΕΣ Problem.. (optionl) We follow the hint. Adding 6 to both sides gives the equivlent congruence 5 + 9 + 6 = (mod ), becuse 5 + 6 = = (mod ). This fctors s (5 + )( + ) = (mod ). Becuse there re no non-zero divisors of woring modulo, we conclude tht the solutions re precisel the solutions of 5 + = (mod ) nd + = (mod ). B inspection (tril-nd-error) or woring it out through the Eucliden lgorithm nd bc-substituting, we find tht n inverse of 5 modulo is 9, nd multipling both sides of 5+ = (mod ) b 9 ields +7 = (mod ), so = -7 = 6 (mod ). Similrl, n inverse of modulo is, nd we get = -8 = (mod ). So the solution set is {, 6} (nd nthing congruent to these modulo ). Plugging these vlues into the originl eqution to chec, we hve 5 +9 + 6 = 98 = (mod ) nd 5 6 +9 6 + 6 = 66 = (mod ). Problem.5. (optionl) We re simpl sed to compute mod 97 for ech vlue of. We do this b dividing the given number b 97 nd ting the reminder, which cn be found either b multipling the deciml reminder b 97, or b subtrcting 97 times the quotient from. ) 56798 mod 97 = 9 b) 8 mod 97 = 57 c) 957 mod 97 = d) 987555 mod 97 = 5 6

ΗΜΥ ΔΙΑΚΡΙΤΗ ΑΝΑΛΥΣΗ ΚΑΙ ΔΟΜΕΣ Eercise {,6} {,76} {,799} GCD LC 7 7 77 7 Eercise {,5,9} {,7,,7} {,5,} {7,8,9,} Eercise (optionl) If mod m b mod m, then mod m q b mod m b q m r m r b ( q q ) m b mod m Eercise 5 () mod 7 mod 7 (6 ) mod 7 ( ) mod 7,6,,,6,,... similr 6 7

ΗΜΥ ΔΙΑΚΡΙΤΗ ΑΝΑΛΥΣΗ ΚΑΙ ΔΟΜΕΣ 8 Eercise 6 (optionl) ) (,..., (),,7,9 (), () Eercise 7 ) gcd(,7) (,) 7 (7,) gcd(,7) b) gcd(,) 99 (99,) 99 99 (,99) gcd(,99) c) gcd(77,) (,) 5 (5,) 5 9 (9,5) 5 9 (,9) 9 5 (,) 77 (77,) gcd(77,)

ΗΜΥ ΔΙΑΚΡΙΤΗ ΑΝΑΛΥΣΗ ΚΑΙ ΔΟΜΕΣ 9 Eercise 8 Vlid Therefore For n n n n ) mod... ( mod (mod ) mod, mod... Eercise 9 mod6 ) mod6 ( 6 ) ( 8 ) ( ) ( 8 6 6 8 8 6 6 ) ( ) ( ) ( n m n

ΗΜΥ ΔΙΑΚΡΙΤΗ ΑΝΑΛΥΣΗ ΚΑΙ ΔΟΜΕΣ Eercise, mod, mod, mod, mod, ( ) mod mod mod, Eercise 6, mod, mod, mod, mod, mod mod mod mod,

ΗΜΥ ΔΙΑΚΡΙΤΗ ΑΝΑΛΥΣΗ ΚΑΙ ΔΟΜΕΣ Eercise b b C mod b C b p p p ( b)( b) mod b mod p b p ή b mod p ( C p )( C mod p( p prime number) p Για τυχαίο S, με S=p p p i (p i prime number). Αν mod5= ⱻ p i ώστε p i => (p i ή p i ) με S prime number, S=p οπότε p ή p ) Eercise m Y, m π.χ.y,,, Y, m, Y 5, 5 mod δοκιμάζω (Y )mod Y ( 5 mod 6 Λύσεις,6, 6,...

ΗΜΥ ΔΙΑΚΡΙΤΗ ΑΝΑΛΥΣΗ ΚΑΙ ΔΟΜΕΣ Eercise (mod ) (mod ) (mod 5) (mod ) 5 65 5 5 66 5 5 mod 65mod, mod mod, mod 5 66mod 5, mod mod 8, ( ( ( (7 ) mod ) mod ) mod 5 ) mod 7 ( 65 66 7)mod