(vi) xry iff x y 2 (see the previous exercise); (iii) xry iff xy 0;

Size: px
Start display at page:

Download "(vi) xry iff x y 2 (see the previous exercise); (iii) xry iff xy 0;"

Transcription

1 Final: Practice problems Relations Properties Exercise: For the following relations on Z, investigate the four basic properties. (i) arb iff a = b ; (v) arb iff a = b+; (ii) arb iff a b; (vi) arb iff a b (see the next exercise); (iii) arb iff a b; (vii) arb iff a and b share some common divisor other than. (iv) arb iff a b = k for some k Z; Exercise: For the following relations on R, investigate the four basic properties. (i) xry iff y x Z; (v) xry iff x = y ; (ii) xry iff x y Q; (vi) xry iff x y (see the previous exercise); (iii) xry iff xy 0; (vii) xry iff x y. (iv) xry iff xy ; Exercise: Investigate the basic four properties for the following relations: (i) Relation R on the set R defined as follows: (u,v)r(x,y) iff u y = x v, formally, R = {((u,v),(x,y)) R R ; u y = x v}. (ii) Relation R on the set R defined as follows: (u,v)r(x,y) iff u y = v x, formally, R = {((u,v),(x,y)) R R ; u y = x v}. (iii) Relation R on the set F of all mappings Z Z defined as TRS iff T(0)S(0) =. (iv) Relation R on the set F of all mappings Z Z defined as TRS iff T() = S(). (v) Relation R on the set F of all functions R R defined as frg iff f(x) g(y) for all x R. (vi) Relation R on the set M of all real matrices defined as ARB iff A = B (the same determinant). (vii) Relation R on the set M all real matrices defined as ( ) ( ) a a b b R iff a a b b a = b. (viii) Relation R on the set P of all real polynomials defined as p(x)rq(x) iff p and q have the same degree. (ix) Relation R on the set P all real polynomials defined as p(x)rq(x) iff p and q have the same roots including their multiplicities. (x) Relation R on the set P all real polynomials defined as p(x)rq(x) iff p and q have the same complex roots including their multiplicities. Equations modulo Exercise: Find all solutions (x,y) Z for the following diophantine equations: (i) 89x+35y = 6; (ii) 0x 5y = 3; (iii) 6x+9y = 04. Exercise: Solve the following congruences: (i) 84x 56 (mod 308); (ii) 3x 7 (mod 0); (iii) x 0 (mod 0). Exercise: Solve the following equations in the given Z n : (i) 84x = 6 v Z 0 ; (ii) 0x = 0 v Z 35 ; (iii) 8x = 0 v Z. Exercise: Solve the following systems of congruences: (i) x 0 (mod 3) (ii) x 4 (mod ) (iii) x (mod 7) (iv) x 3 (mod 5) x (mod 4) x 4 (mod 3) x 0 (mod 9) x 4 (mod 4) x (mod 5); x 4 (mod 5); x (mod ); x 5 (mod 3). Linear recurrences Exercise: Solve the following recurrence equation problems with initial conditions: (i) 5a n = a n+ +6a n, n ; a = 9, a = ; (ii) a n+ = 4a n 5a n +a n, n ; a 0 =, a =, a = ; (iii) a n+ 4a n = 0, n ; a =, a = 0. Exercise: Find general solutions of the following equations: (i) a n+ a n = 8n n, n 0; (iv) a n+ = a n +a n +3 n ( ) n, n ; (ii) a n+ +a n+ 3a n = (5n+) n, n 0; (v) a n+3 +3a n+ 4a n = 6 n +9, n 0; (iii) a n+ 4a n+ +4a n = 3 3 n 3, n ; (vi) a n+ = a n +n, n.

2 Exercise: Find solutions of the following initial value problems: (i) a n+ a n = (8n+8)3 n, n ; a = 6, a = 3; (ii) a n+ = a n a n 4 ( ) n, n 0; a = 0, a 0 = ; (iii) a n+ +a n+ 3a n = 5 n +8, n ; a = 5, a = 9; (iv) a n+ = a n +4a n 4a n +(6n 7)( ) n, n ; a 0 =, a = 4, a = 7. Induction Exercise: Prove by induction that the following formulas are true for all n N: (i) (n) = n(n+); (v)!+!+ +n n! = (n+)! ; (ii) n = n(n+); (vi) +! + 3! + + n! n! ; (iii) n = 6 n(n+)(n+); (vii) n n ; (iv) (n ) (n+) = n n+ ; (viii) n! < nn (this one for n ). Exercise: Consider functions defined inductively by the following formulas. For each of them calculate the first few values and try to guess an explicit formula for f(n). Then prove that the formula is correct. (i) (0) f(0) = 0, () f(n+) = f(n) for n N 0 ; (ii) (0) f() = 0, () f(n+) = f(n)+ for n N; n (iii) (0) f() =, () f(n+) = f(n) n+ for n N; (iv) (0) f() =, f() =, () f(n+) = f(n) f(n ) for n N, n ; (v) (0) f() =, f() =, f(3) =, () f(n + ) = f(n) + f(n ) f(n ) for n N, n 3; Exercise: Consider functions defined inductively by the following formulas. For each of them prove the given (in)equality. (i) (0) f() =, f() =, () f(n+) = f(n)+nf(n ) for n ; inequality f(n) n!; (ii) (0) f() =, f() =, () f(n+) = n f(n)+f(n ) for n ; inequality f(n) n ; (iii) (0) f() =, f() =, () f(n+) = nf(n)+nf(n ) for n ; equality f(n) = n!; (iv) (0) f() =, f() = 3, () f(n+) = nf(n)+n f(n ) for n ; inequality f(n) n!. Binary operations Exercise: For every given set with a binary operation decide whether is asociative (that is, whether M is a semigroup). If the answer is positive, determine whether there is a unit element. If M turns out to be a monoid, explore which of its elements are invertible and find a formula for inverse elements. (i) M = Z, x y = x+y +3; (vi) M = R {0}, x y = ; x + y (ii) M = Q, x y = (x+)(y +) ; (vii) M = R, (u,v) (x,y) = (u+x,v y); (iii) M = R, x y = x +y ; (viii) M = Z, (u,v) (x,y) = (u+x,v y); (iv) M = R, x y = x y; (ix) M = Z, (u,v) (x,y) = (u x,v +y); (v) M = Q, x y = xy ; (x) M = Q, (u,v) (x,y) = (uy,vx). Remark for (vi): This is the way parallel resistors in circuits are added. Relations Equivalences, partial orderings, etc. Exercise: Draw a Hasse diagram for (A, ) (divisibility relation), where (i) A = {,,3,4,5,6,7,8}; (iii) A = {,3,4,5,6,30,60}; (v) A = {,,4,8,6,3,64}; (ii) A = {,,3,5,,3}; (iv) A = {,,3,6,,4}; (vi) A = {,4,6,,4,36}. Exercise: Consider the poset ({3, 5, 9, 5, 4, 45}, ), that is, the divisibility relation. (i) Draw its Hasse diagram. (ii) Find its maxima, minima, greatest and least elements when they exist. (iii) Find maxima, minima, greatest and least elements of the set M = {3,9,5}, when they exist. Extra: Calculations modulo Exercise: Evaluate the following expression in the given Z n. First rewrite subtraction as addition with opposite elements. (i) (7+8) 46 in Z 3 ; (ii) (3 4 6) 79 in Z 3.

3 Extra: Recurrence equations Exercise: Consider functions given by the following recurrence equations. For each of them determine its asymptotic growth (see the Θ notation) using methods of linear recurrence equations, but without really determining the functions. (i) f(n+) = f(n)+n; (iv) f(n+) = 4f(n) 3f(n )+n n ; (ii) f(n+) = f(n)+n; (v) f(n+) = 4f(n) 3f(n )+3 n ; (iii) f(n+) = 4f(n) 3f(n )+n; (vi) f(n+) = 4f(n) 3f(n )+4 n. Exercise: Use recurrence equations to deduce closed formulas for the following sums: (i) (3n+) = n (3k +); (iii) n(n+) = n k=0 (ii) +λ+λ + +λ n = n λ k pro λ ; k=0 Extra: Structural induction Exercise: Define the set of all binary words (chains) that (i) do not contain adjacent zeros; (ii) end with a zero; (iii) do not end with a zero; (iv) contain the combination 0. k= k(k+) ; (iv) (n+) = n (k +). Exercise: Define the set of all words over the alphabet C = {,,3,4} that: (i) do not contain adjacent threes; (ii) start with a two; (iii) do not end with a one; (iv) have the same number of odd and even numerals. k=0 3

4 Solutions Relations Properties Solution: (i): R: For every a Z we have a = a, hence ara. Is reflexive. S: Arbitrary a,b Z satisfying arb, that gives a = b, hence b = a and so bra. Is symmetric. A: Arbitrary a,b Z satisfying arb and bra, that gives a = b and b = a, we will not get a = b from this. Counterexample: 3 = 3, hence 3R( 3) and ( 3)R3, but 3 = 3 not true, so R is not antisymmetric. T: Arbitrary a,b,c Z satisfying arb and brc, that gives a = b and b = c, from that we have a = c and so arc. R is transitive. (ii): R: yes, for a A we have a a, hence ara; S: no, R as, but not true, hence R not true; A: yes, arb bra = a b b a = a = b; T: yes, arb brc = a b b c = a c = arc. (iii): R: no, for instance not true hence R not true; S: yes, arb = a b = b a = bra; A: no, say, R R, but = not true; T: no, say, R and R, but R not true. (iv): R: yes, a a = 0 = ara for every a; S: yes, arb = a b = k = b a = ( k) = bra; A: no, say, R3 and 3R, yet = 3 not true; T: yes, arb brc = a b = k b c = l = a c = (k +l) = arc. (v): R: no, 3 = 3+ not true and hence 3R3 not true; S: no, R but R not true; A: yes, arb bra = a = b + b = a + = b = b + = 0 = contradiction, so the assumption is never true, hence the implication is always valid; T: no, say, 3R and R, but 3R not true. (vi): Is not R, see a = ; not S see 4R; A: arb bra = a b b a. If a = 0, then that gives 0 b = b = 0 = a. If a 0, then a, also a b 0 and hence a, similarly b. We calculate: a b b a = a b a 4 = a a 4 = a 3, together with a that gives a =. Then b = b = and again a = b. Relation is antisymmetric. T: For b Z we have b b (see A), hence arb brc = a b b c = a b c = a c = arc. is transitive. (vii): R: Does every a Z have some common divisor with itself other than? Almost yes, not true for a =. So R is not reflexive. S: Let a,b Z satisfy arb. Then there is c > that divides both a and b, it then also divides b and a, so bra. R is symmetric. A: arb bra gives a common divisor, no chance to force a = b. Counterexample: R4 and 4R (common divisor ), hence is not antisymmetric. T: a,b have common divisor >, b,c have common divisor >, this does not yield anything common for a,c. Counterexample: R6 and 6R3, but not R3. It is not transitive. Solution: (i): R,S,T, see example in the book; (ii): R yes x x = 0 Q, S yes y x Q = x y = (y x) Q, T yes y x Q (z y) Q = (z x) = (y x)+(z y) Q; not A see R and R; (iii): R yes xx = x 0, S yes xy 0 = yx 0; not A see R and R; not T see ( )R0 and 0R; (iv): Not R see x = 0, S yes xy = yx ; not A see R and R; not T see R4 and 4R; (v): Not R see x = ; not S see 4R; A yes x = y y = x = x,y 0 x = x 4 y = y 4 = x = y = x = y = 0; not T see 6R4 and 4R; (vi): Not R see x = ; not S see 4R; not A see x = 0., y = 0. as 0. (0.) and 0. (0.) but not 0. = ; not T see (0.5)R(0.7) as 0.5 (0.7) = 0.49, (0.7)R(0.8) as , but not (this was probably a bit tricky). (vii): R yes x x, T yes x y y z = x z ; not S see R, not A see R( ) and ( )R. 4

5 Solution: (i): R: yes u v = u v = (u,v)r(u,v); S: (u,v)r(x,y) = u y = x v = x v = u y = (x,y)r(u,v) yes; A: no, see e.g. (,4)R(,) and (,)R(,4); T: yes; (s,t)r(u,v) & (u,v)r(x,y) = s v = u t u y = x v sest s v +u y = u t+x v = s y = x t = (s,t)r(x,y). (ii): R: no, see e.g. (,3), not true that 3 = 3 ; S: no, see e.g. (,)R(,4) but not (,4)R(,); A: no, see e.g. (,0)R(0,) and (0,)R(,0); T: no, see e.g. (,4)R(,) and (,)R(,4) but not (,4)R(,4). (iii): R: no, this would require that all mappings satisfy T(0)T(0) =, but for isntance the mapping T(n) = n+ has T(0)T(0) = = ; S: yes TRS = T(0)S(0) = = S(0)T(0) = = SRT; A: no, say, T(n) = n +, S(n) = 3n+, then T(0)S(0) = = = S(0)T(0), so TRS and SRT, but not T = S; T: n, say, T(n) = n+, S(n) = 3n+, U(n) = (n+), then TRS and SRU, but not TRU as T(0)U(0) =. (iv): R: no, this would require that all mappings satisfy T() = T(), but for instance the mapping T(n) = n has T() = and T() = ; S: no, say, T(n) = n+ and S(n) = n, then T() = = S(), hence TRS, but S() = T() not true; A: no, say, T(n) = (n 3), S(n) = (a constant mapping), then T() = = S() and S() = = T(), hence TRS and SRT, but not T = S; T: no, say, T(n) = n +, S(n) = n, U(n) = n, then TRS and SRU, but not TRU as T() = and U() =. (v): R: yes, arbitrary function f satisfies the inequality f(x) f(x) for all x R; S: no, say, f(x) = x+3, g(x) = x satisfy frg but not grf; A: yes, frg and grf mean f(x) g(x) and g(x) f(x) for all x, that is, f(x) = g(x) for all x, that is, f = g; T: yes, frg and grh give for all x R that f(x) g(x) and g(x) h(x), that is, f(x) h(x), so frh. (vi): R: yes A = A ; S: yes ARB = A = B = B = A = BRA; A: no, say, a matrix of all zeros or a non-zero matrix with repeated rows have zero determinant; T: yes ARB BRC = A = B B = C = A = C = ARC. ( ) 0 (vii): R: no, say, in the matrix A = the upper left and lower bottom corners do not match, 0 0 hence ARA not true; ( ) ( ) 3 S: no, say, for A = and B = we have ARB, but not BRA; ( ) ( ) 3 3 A: no, say, A = T: no, say, A = 3 ( 3 3 and B = ), B = ( satisfy ARB and BRA, but not A = B; 3 3 ) ( ) 4 3 and C = satisfy ARB and BRC, but not 5 3 ARC. (viii): R: yes deg(p) = deg(p); S: yes prq = deg(p) = deg(q) = deg(q) = deg(p) = qrp; A: no, say, p = x and q = x+; T: yes prq qrr = deg(p) = deg(q) deg(q) = deg(r) = deg(p) = deg(r) = prr; (ix): R: yes; S: yes; A: no, say, p = x and q = x ; T: yes; (x): R: yes; S: yes; A: no, say, p = x and q = x ; T: yes; Equations modulo Solution: (i): gcd(89,35) = 63 = 89 + ( 5) 35, 63 divides 6 so there is a solution. Multiply Bezout s identity by : ( 0) = 6. Solution x = 4, y = 0. Homogeneous eq.: 89x+35y = 0 cancels to 3x+5y = 0, so x h = 5k, y h = 3k. Solution is x = 4 5k, y = 3k 0 for k Z, or (x,y) = (4 5k, 0+3k) for k Z. (ii): We guess gcd(0, 5) = 5, this does not divide 3. No solution. (iii): We guess gcd(6, 9) = 3, so instead of the Euclid algorithm we try just cancelling in the equation: x+3y = 68. We easily guess that gcd(3,) = = 3+( ), multiply to get 68: ( 68)+3 68 = 68. Thus particular solution x = 68, y = 68. Homogeneous case: x+3y = 0 yields x h = 3k, y h = k, so the general solutions is x = 3k 68, y = 68 k for k Z, or also (x,y) = ( 68+3k,68 k) for k Z. Solution: (i): 56 = 84x + 308n, Euclid: gcd(308,84) = 8 = ( ) Since 56 8 = Z, the equation is solvable. Multiplying the Bezout identity by that we obtain 56 = 84 ( 8)+ 308, so x = 8 is a solution. Hom. case: 84x + 308n = 0 cancels to 3x + n = 0, hence x h = k. We get the solution x = 8+k, k Z. I prefer x = 3+k, k Z. 5

6 (ii): 7 = 3x+0n, obviously gcd(3,0) = = ( 3) 3+ 0 (we guess), multiply this by seven to get 7 = 3 ( )+7 0, hence x = is a solution. Hom. case: 3x+0n = 0 gives x h = 0k (nothing to cancel), hence the given equation has solution x = +0k, k Z. I prefer x = 9+0k, k Z. (iii): Obviously gcd(,0) = 4, we cancel: 3x+5n = 0 has the solution x = 5k, k Z. Solution: (i): 6 = 84x+0n, Euklid s algorithm: gcd(0, 84) = 4 = 0+( ) 84, equation has a solution as 6 4 = 3 Z. Multiplying Bezout s identity by 3 we obtain 6 = 84 ( 6)+0 3, hence x = 6 is a solution. Hom. case: 84x + 0n = 0 cancels to 3x + 5n = 0, hence x h = 5k and x = 6 + 5k solves the congruence. There are gcd(0,84) = 4 solutions in Z 0 : x = 4+5k for k = 0,,...,4, that is, {4,9,4,9,...,04,09}. (ii): We solve 0x+35n = 0, we guess gcd(35,0) = 5, divide the equation: x+7n = 0, so the congruency has the solution x = 7k. There are gcd(35,0) = 5 solutions in Z 35, namely x = 7k for k = 0,,,3,4, that is, {0,7,4,,8}. (iii): 0 = 8x+n, we can guess gcd(,8) = 4 = +( ) 8, no solution since 4 does not divide 0. Solution: (i): n = 60, N = 0, inverse element in Z 3 is x = ; N = 5, inverse element in Z 4 is x = ; N 3 =, inverse element in Z 5 is x 3 =. x = 0 0 ( )+ 5 ( )+ ( ) = (mod 60). General solution is x = 60k 63 (I prefer 57+60k) for k Z. (ii): n = 30, N = 5, inverse element in Z is x = ; N = 0, inverse element in Z 3 is x = ; N 3 = 6, inverse element in Z 5 is x 3 =. x = 4 5 +( 4) = 44 4 (mod 30). General solution is x = 44+30k (I prefer 4+30k) for k Z. (iii): n = 693, N = 99, inverse element in Z 7 is x = ; N = 77, inverse element in Z 9 is x = ; N 3 = 63, inverse element in Z is x 3 = 4. x = ( ) 63 ( 4) = 35. General solution is x = k for k Z. (iv): Rewrite as x 3 (mod 5), x 0 (mod 4), x (mod 3). n = 60, N =, inverse element in Z 5 is x = 3; we need not worry about N ; N 3 = 0, inverse element in Z 3 is x 3 =. x = = 88. General solution is x = 88+60k (I prefer x = 8+60k) for k Z. Linear recurrences Solution: (i): We rewrite: a n+ 5a n+ +6a n = 0, n ; (λ )(λ 3) = 0, general sol. { n u+3 n v} n=, init. conditions yield {3 n +3 n } n=; (ii): We rewrite: a n+3 4a n+ +5a n+ a n = 0, n 0; (λ ) (λ ) = 0; general sol. {u+nv + n w} n=0; init. conditions yield { n n} n=0; (iii): (λ )(λ+) = 0, general sol. { n u+( ) n v} n=; init. conditions yield { n +( ) n } n=, it goes {,0,8,0,3,0,64,...}. Solution: (i): (λ )(λ+) = 0, a h,n = u+( ) n v; guess a n = (An+B) n, {(6n 6) n +u+ ( ) n v} n=0; (ii): (λ )(λ+3) = 0, a h,n = u+( 3) n v; guess a n = (An+B) n, {n n +u+( 3) n v} n=0; (iii): (λ ) = 0, a h,n = n n u+ n v; guess a n = A3 n +B, {3 3 n 3+n n u+ n v} n=; (iv): rewrite: a n+ a n+ a n = 6 n +4 ( ) n, n ; (λ )(λ+) = 0, a h,n = n u+( ) n v; guess a n = n A n +B( ) n, {n n +( ) n + n u+( ) n v} n=; (v): (λ )(λ + ) = 0, a h,n = u + ( ) n v + n( ) n w; guess a n = A n + n B, {n + n + u + ( ) n v +n( ) n w} n=0; (vi): rewrite: a n+ a n = n = n n, n ; (λ )(λ + ) = 0, a h,n = u + ( ) n v; guess a n = n(an+b), { 4 n fracn+u+( ) n v }. n=0 Solution: (i): (λ )(λ+) = 0, a h,n = u+( ) n v; guessa n = (An+B)3 n, {n3 n +u+( ) n v} n=, init. cond. give {n3 n +3} n=; (ii): rewrite: a n+ a n+ +a n = 4 ( ) n, n ; (λ ) = 0, a h,n = u+nv; guess a n = A( ) n, {( ) n +u+nv} n=, init. cond. give {( ) n +} n=, it is {0,,0,,0,,0,,...}; (iii): (λ )(λ+3) = 0, a h,n = u+( 3) n v; guess a n = A n +n B, { n +n+u+( 3) n v} n=, init. cond. give { n +n+} n=; 6

7 (iv): rewrite: a n+3 a n+ 4a n+ +4a n = (6n+5)( ) n, n 0; (λ )(λ )(λ+) = 0, a h,n = u+ n v+( ) n w; guess a n = (An+B)( ) n, {(n+)( ) n +u+ n v+( ) n w} n=0, init. cond. give {(n+)( ) n + n+ ( ) n } n=0. Induction Solution: (i): (0) V() says =, true. () Let n N. Assumption: (n) = n(n+). To prove: (n+) = (n+)(n+). Decomposition: (n+) = [ (n)]+(n+) = [n(n+)]+(n+) = n +3n+ = (n+)(n+). (ii): (0) V() says =, true. () Let n N. Assumption: n = n(n+). To prove: (n+) = (n+)(n+). Decomposition: (n+) = [++3+ +n]+(n+) = [ n(n+)] +(n+) = (n +3n+) = (n+)(n+). (iii): (0) V() says = 6 3, true. () Let n N. Assumption: n = 6 n(n+)(n+). To prove: (n+) = 6 (n+)(n+)(n+3). Decomposition: (n+) = [ n ]+(n+) = [ 6 n(n+)(n+)] +(n+) = = 6 (n3 +9n +3n+6) = 6 (n+)(n+)(n+3). (iv): (0) V() says 3 = 3, true. () Let n N. Assumption: (n ) (n+) = n n+. To prove: (n+) (n+3) = n+ n+3. Decomposition: (n+) (n+3) = = [ (n ) (n+) ] + (n+) (n+3) = [ n n+ ] + (n+) (n+3) = n +3n+ (n+)(n+3) = n+ n+3. (v): (0)V()says =, true. ()Letn N. Assumption:!+!+ +n n! = (n+)!. To prove:!+!+ +n n!+(n+) (n+)! = (n+)!. Decomposition:!+!+ +n n!+(n+) (n+)! = [!+!+ +n n!]+(n+) (n+)! = = [(n+)! ]+(n+) (n+)! = (n+)!+(n+) (n+)! = (n+)(n+)! = (n+)!. (vi): (0) V() says, true. () Let n N. Assumption: +! + 3! + + n! n!. To prove: +! + 3! + + (n+)! (n+)!. Decomposition: +! + 3! + + (n+)! = ] + (n+)! = [ +! + 3! + + n!] + (n+)! [ (n+) n! = (n+)! = n (n+)! (n+)!. (vii): (0) V() says, true. () Let n N. Assumption: n n. To prove: (n+) n+. Decomposition: = [ n ] + (n+) [ n (n+) ] + (n+) = (n+) n n(n+) = n +n+ n(n+) n +n n(n+) = n+. (viii): (0) V() says < 4, true. () Let n. Assumption: n! < n n. To prove: (n + )! < (n+) n+. Decomposition: (n+)! = (n+)n! < (n+)n n < (n+)(n+) n = (n+) n+. Solution: (i): f(n) = 0. Weak principle. (0) n = 0 checks. () Let n N 0. Assume that f(n) = 0. Then f(n+) = f(n) = 0, works for n+. (ii): f(n) = n. Weak principle. (0) n = checks. () Let n N. Assume that f(n) = n. Then f(n+) = f(n)+ = n + = (n+), works for n+. (iii): f(n) = n. Weak principle. (0) n = checks. () Let n N. Assume that f(n) = n. Then f(n+) = f(n) n n+ = n n n+ = n+, works for n+. (iv): f(n) = n. Strong (modified) principle. (0) n = a n = checks. () Let n N. Assume that f(k) = k for k = n,n. Pak f(n+) = f(n) f(n ) = n (n ) = n+, works for n+. (v): f(n) =. Strong (modified) principle. (0) n =, n = a n = 3 checks. () Let n N. Assume that f(k) = for k = n,n,n. Then f(n+) = f(n)+f(n ) f(n ) = + =, works for n+. Solution: (i): Strong (modified) induction (0) For n =, it checks. () Let n, assuming validity of V(k): f(k) k! for k = n,n. Then f(n+) = f(n)+nf(n ) n!+n (n )! = n! (n+)n! = (n+)!. (ii): Strong (modified) induction (0) For n =, it checks. () Let n, assuming validity of V(k): f(k) k for k = n,n. Then f(n + ) = k f(n) + f(n ) n n + (n ) = n+n n+ = n n+ n +n+ = (n+). 7

8 (iii): Strong (modified) induction (0) For n =, it checks. () Let n, assuming validity of V(k): f(k) = k! for k = n,n. Then f(n + ) = nf(n) + nf(n ) = n n! + n (n )! = n n!+n! = (n+) n! = (n+)!. (iv): Strong (modified) induction (0) For n =, it checks. () Let n, assuming validity of V(k): f(k) k! for k = n,n. Then f(n+) = nf(n)+n f(n ) = n n!+n (n )! = n n!+n n! = n n! (n+) n! = (n+)!. Binary operations Solution: (i): (x y) z = (x + y + 3) z = (x + y + 3) + z + 3 = x + y + z + 6 and x (y z) = x (y +z +3) = x+(y +z +3)+3 = x+y +z +6. Equal, is associative. Identity: equation x e = x yields x + e + 3 = x, hence e = 3. Check: x Z: x e = x ( 3) = x+( 3)+3 = x, e x = ( 3) x = ( 3)+x+3 = x, yes, we have a monoid. Inverse elements: Given x M = Z, want x y = e, hence x+y+3 = 3. Solution: y = 6 x. Conclusion: All elements are invertible, x = x 6. (ii): (x y) z = ([x+][y+] ) z = [x+][y+](z+) and x (y z) = x ([y+][z+] ) = (x+)[y +][z +]. Equal, is associative. Identity: equation x e = x yields (x + )(e + ) = x, hence e = 0. Check: x Q: x e = x 0 = (x+)(0+) = x, e x = 0 x = (0+)(x+) = x, yes, we have a monoid. Inverse elements: Given x M = Q, want x y = e, hence (x + )(y + ) = 0. Solution: y = x+ for x. Conclusion: All elements x are invertible, x = x x+. (iii): (x y) z = x +y z = x +y +z, x (y z) = x y +z = x +y +z, equal. Raising both sides of equation x e = x yields e = 0, unfortunately it is not a solution as it does not work in the original equation for x < 0. It s actually obvious that we cannot get a negative x using a square root. No identity element. If we changed the problem by considering this operation on R + 0, then e = 0 would be an identity. What about inverse elements then? No x > 0 is invertible, since for arbitrary y we have x y = x +y x > 0. (iv): Not associative, (x y) z = x 4 y z, while x (y z) = x y z. Counterexample: say, x =, y =, z = to see difference between the two formulas, then ( ) = 4 = 6, while ( ) = = 4. (v): Is associative, (x y) z = xy z = xy z = xyz = x (y z). No identity element, for x = we want e such that x e = x, hence e =, not possible. It is not a monoid. (vi): Surprisingly, it is associative, (x y) z = x + y z = = x (y z). x + y + z = 0, no such number. However, in the Identity element e would have to satisfy x =, hence x + e e world of resistor there is a possibility of e =, and infinite resistor works as identity in parallel configuration. (vii): [(s,t) (u,v)] (x,y) = (s + u,tv) (x,y) = (s + u + x,tvy) and (s,t) [(u,v) (x,y)] = (s,t) (u+x,vy) = (s+u+x,tvy). Equal, is associative. Identity: (x,y) (e,e ) = (x,y) yields x+e = x and ye = y for all x,y, hence e = 0 a e =. Check: (x,y) (0,) = (0,) (x,y) = (x,y). Inverse element: given (x,y), we want (x + u,yv) = (0,). Then u = x and v = y, if possible. Conclusion: (x,y) is invertible for y 0, then (x,y) = ( x, y). (viii): Asociativity and identity element: see (vii). Inverse element: given (x,y), we want (x + u,yv) = (0,). Then u = x and v = y, if possible. Conclusion: (x,y) is invertible for y = ±, then (x,y) = ( x,y). (ix): [(s,t) (u,v)] (x,y) = (s u,t + v) (x,y) = ((s u ) x,t + v + y) and (s,t) [(u,v) (x,y)] = (s,t) (u x,v +y) = (s ux,t+v +y). Not equal, (s u ) x = s ux differs from s (ux), so not associative. Counterexample: say, [(,0) (,0)] (3,0) = (4,0) (3,0) = (64,0) whereas (,0) [(,0) (3,0)] = (,0) (8,0) = (56,0). (x): [(s,t) (u,v)] (x,y) = (sv,tu) (x,y) = (svy,tux) and (s,t) [(u,v) (x,y)] = (s,t) (uy,vx) = (svx,tuy). Not equal so not associative. Counterexample: we need different x and y, say, [(,) (,)] (,) = (,) (,) = (,) whereas (,) [(,) (,)] = (,) (,) = (,). 8

9 Relations Equivalences, partial orderings, etc. Solution: (i): (ii): (iii): (iv): (v): (vi): Solution: (ii): Max 4,45, greatest DNE, min 3,5, least DNE. (iii): Max 9,5, greatest DNE, min 3, least Extra: Calculations modulo Solution: (i): (7+8) = = + +5 = ( ) +5 = 4+5 = 9 (mod 3). The calculation is valid as gcd(,3) = and 3 is a prime. (ii): = (3 4+7) 79 (8 4+7) 79 = (3+7) 79 (9+7) 9 = = = (3 ) = 7 4 (mod 3). The calculation is valid as gcd(3,3) = and 3 is a prime. Extra: Recurrence equations Solution: (i): char. number: λ =, so hom. e. f(n) = n u. Odhad prav strany: f(n) = An+B, so general sol. will have form f(n) = n +An+B. Since n (n+), we get f(n) = Θ( n ). (ii): char. number: λ =, so hom. e. f(n) = u. Odhad prav strany: f(n) = n(an+b), so general sol. will have form f(n) = u+an +Bn. We get f(n) = Θ(n ). (iii): char. numbers: λ =,3, so hom. e. f(n) = u+3 n v. Odhad prav strany: f(n) = n(an+b), so general sol. will have form f(n) = u + 3 n v + An + Bn. Since 3 n (An + Bn + u), we get f(n) = Θ(3 n ). (iv): char. numbers: λ =,3, so hom. e. f(n) = u+3 n v. Odhad prav strany: f(n) = (An+B) n, so general sol. will have form f(n) = u+3 n v+(an+b) n. Since 3 n (An n +B n +u), we get f(n) = Θ(3 n ). (v): char. numbers: λ =,3, so hom. e. f(n) = u + 3 n v. Odhad prav strany: f(n) = An3 n, so general sol. will have form f(n) = u+3 n v +An3 n. We get f(n) = Θ(n3 n ). (vi): char. numbers: λ =,3, so hom. e. f(n) = u+3 n v. Odhad prav strany: f(n) = A 4 n, so general sol. will have form f(n) = u+3 n v +A 4 n. Since 4 n (3 n +u), we get f(n) = Θ(4 n ). Solution: (i): s n+ = s n +(3n+4) a s 0 = ; s h,n = u, guess s n = n(an+b) = An +Bn, obtain A = 3, B = 5, s n = 3 n + 5 n+u. Init. cond. gives u =, s n = (n+)(3n+). (ii): s n+ = s n + λ n+ a s 0 = ; s h,n = u, guess for s n+ s n = λ λ n and λ is s n = Aλ k, obtain A = λ λ, s n = λ λ λn +u. Init. cond. gives u = λ, s n = λn+ λ. (iii): s n+ = s n + (n+)(n+) a s = ; s h,n = u, guess s n = n(an +Bn+C) = An 3 +Bn +Cn, obtain A = 6, B =, C = 3, s n = 6 n3 + n + 3 n+u. Init. cond. gives u = 0, s n = n(n+)(n+) 6. (iv): s n+ = s n +(n+3) as 0 = ; s h,n = u, guesss n = n(an +Bn+C) = An 3 +Bn +Cn, obtain A = 4 3, B = 4, C = 3, s n = 4 3 n3 +4n + 3 n+u. Init. cond. gives u =, s n = (n+)(n+)(n+3) 3. 9

10 Extra: Structural induction Solution: (i): (0a) 0 M. (0b) M. (0c) 0 M. (a) w M = w M. (b) w M = w0 M. Remark: Without (0c) we can t get 0. (ii): (0) 0 M. (a) w M = 0w M. (b) w M = w M. Remark: We have to add from the left to guarantee the correct ending on the right. (iii): (0) M. (a) w M = 0w M. (b) w M = w M. Remark: We have to add from the left to guarantee the correct ending on the right. (iv): (0) 0 M. (a) w M = 0w M. (b) w M = w M. (c) w M = w0 M. (d) w M = w M. Solution: (i): (0a) c C = c M. (0b) c C {3} = c3 M. (a) [w M c C {3}] = wc M. (b) [w M c C {3}] = wc3 M. Remark: Without (0b) we can t get 3. (ii): (0) M. () [w M c C] = wc M. (iii): (0) c C {} = c M. () [w M c C] = cw M. Remark: We have to add from the left to guarantee the correct ending on the right. (iv): (0a) λ M (0b) [c {,3} d {,4}] = cd M. (0c) [c {,3} d {,4}] = dc M. (a) [r,s M c {,3} d {,4}] = rcsd M. (b) [r,s M c {,3} d {,4}] = rdsc M. Remark: We add from the right, each time we insert a number of opposite parity in the middle. Is that the right way? Proof of correctness of the produced words can be done recursively, we remove the right character and also some character of opposite parity from rest of the chain. We do have to allow for removing from the middle, see the chain, we do not need to make allowance for taking away from the left end. If a chain has at least 4 characters, then there must be at least two characters of opposite parity, so one of them must be in the middle for taking out. We had to add (0a), otherwise we could not create chains like. 0

MAD 3105 PRACTICE TEST 2 SOLUTIONS

MAD 3105 PRACTICE TEST 2 SOLUTIONS MAD 3105 PRACTICE TEST 2 SOLUTIONS 1. Let R be the relation defined below. Determine which properties, reflexive, irreflexive, symmetric, antisymmetric, transitive, the relation satisfies. Prove each answer.

More information

Section Summary. Relations and Functions Properties of Relations. Combining Relations

Section Summary. Relations and Functions Properties of Relations. Combining Relations Chapter 9 Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations Closures of Relations (not currently included

More information

Packet #5: Binary Relations. Applied Discrete Mathematics

Packet #5: Binary Relations. Applied Discrete Mathematics Packet #5: Binary Relations Applied Discrete Mathematics Table of Contents Binary Relations Summary Page 1 Binary Relations Examples Page 2 Properties of Relations Page 3 Examples Pages 4-5 Representations

More information

A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties:

A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties: Byte multiplication 1 Field arithmetic A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties: F is an abelian group under addition, meaning - F is closed under

More information

ASSIGNMENT 1 SOLUTIONS

ASSIGNMENT 1 SOLUTIONS MATH 271 ASSIGNMENT 1 SOLUTIONS 1. (a) Let S be the statement For all integers n, if n is even then 3n 11 is odd. Is S true? Give a proof or counterexample. (b) Write out the contrapositive of statement

More information

1. multiplication is commutative and associative;

1. multiplication is commutative and associative; Chapter 4 The Arithmetic of Z In this chapter, we start by introducing the concept of congruences; these are used in our proof (going back to Gauss 1 ) that every integer has a unique prime factorization.

More information

CHAPTER 3. Congruences. Congruence: definitions and properties

CHAPTER 3. Congruences. Congruence: definitions and properties CHAPTER 3 Congruences Part V of PJE Congruence: definitions and properties Definition. (PJE definition 19.1.1) Let m > 0 be an integer. Integers a and b are congruent modulo m if m divides a b. We write

More information

Math 300: Final Exam Practice Solutions

Math 300: Final Exam Practice Solutions Math 300: Final Exam Practice Solutions 1 Let A be the set of all real numbers which are zeros of polynomials with integer coefficients: A := {α R there exists p(x) = a n x n + + a 1 x + a 0 with all a

More information

CHAPTER 1. Relations. 1. Relations and Their Properties. Discussion

CHAPTER 1. Relations. 1. Relations and Their Properties. Discussion CHAPTER 1 Relations 1. Relations and Their Properties 1.1. Definition of a Relation. Definition 1.1.1. A binary relation from a set A to a set B is a subset R A B. If (a, b) R we say a is Related to b

More information

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Ivan Avramidi New Mexico Institute of Mining and Technology Socorro, NM 87801 June 3, 2004 Author: Ivan Avramidi; File: absmath.tex; Date: June 11,

More information

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

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime. PUTNAM TRAINING NUMBER THEORY (Last updated: December 11, 2017) Remark. This is a list of exercises on Number Theory. Miguel A. Lerma Exercises 1. Show that the sum of two consecutive primes is never twice

More information

Definition: A binary relation R from a set A to a set B is a subset R A B. Example:

Definition: A binary relation R from a set A to a set B is a subset R A B. Example: Chapter 9 1 Binary Relations Definition: A binary relation R from a set A to a set B is a subset R A B. Example: Let A = {0,1,2} and B = {a,b} {(0, a), (0, b), (1,a), (2, b)} is a relation from A to B.

More information

Math 2534 Solution to Test 3A Spring 2010

Math 2534 Solution to Test 3A Spring 2010 Math 2534 Solution to Test 3A Spring 2010 Problem 1: (10pts) Prove that R is a transitive relation on Z when given that mrpiff m pmod d (ie. d ( m p) ) Solution: The relation R is transitive, if arb and

More information

Introduction to Cryptography CS 355 Lecture 3

Introduction to Cryptography CS 355 Lecture 3 Introduction to Cryptography CS 355 Lecture 3 Elementary Number Theory (1) CS 355 Fall 2005/Lecture 3 1 Review of Last Lecture Ciphertext-only attack: Known-plaintext attack: Chosen-plaintext: Chosen-ciphertext:

More information

MATH 55 - HOMEWORK 6 SOLUTIONS. 1. Section = 1 = (n + 1) 3 = 2. + (n + 1) 3. + (n + 1) 3 = n2 (n + 1) 2.

MATH 55 - HOMEWORK 6 SOLUTIONS. 1. Section = 1 = (n + 1) 3 = 2. + (n + 1) 3. + (n + 1) 3 = n2 (n + 1) 2. MATH 55 - HOMEWORK 6 SOLUTIONS Exercise Section 5 Proof (a) P () is the statement ( ) 3 (b) P () is true since ( ) 3 (c) The inductive hypothesis is P (n): ( ) n(n + ) 3 + 3 + + n 3 (d) Assuming the inductive

More information

A SUMMARY OF RECURSION SOLVING TECHNIQUES

A SUMMARY OF RECURSION SOLVING TECHNIQUES A SUMMARY OF RECURSION SOLVING TECHNIQUES KIMMO ERIKSSON, KTH These notes are meant to be a complement to the material on recursion solving techniques in the textbook Discrete Mathematics by Biggs. In

More information

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?

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? Chapter 3: Theory of Modular Arithmetic 25 SECTION C Solving Linear Congruences By the end of this section you will be able to solve congruence equations determine the number of solutions find the multiplicative

More information

Sets and Motivation for Boolean algebra

Sets and Motivation for Boolean algebra SET THEORY Basic concepts Notations Subset Algebra of sets The power set Ordered pairs and Cartesian product Relations on sets Types of relations and their properties Relational matrix and the graph of

More information

MAS114: Solutions to Exercises

MAS114: Solutions to Exercises MAS114: s to Exercises Up to week 8 Note that the challenge problems are intended to be difficult! Doing any of them is an achievement. Please hand them in on a separate piece of paper if you attempt them.

More information

* 8 Groups, with Appendix containing Rings and Fields.

* 8 Groups, with Appendix containing Rings and Fields. * 8 Groups, with Appendix containing Rings and Fields Binary Operations Definition We say that is a binary operation on a set S if, and only if, a, b, a b S Implicit in this definition is the idea that

More information

cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska

cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska LECTURE 12 CHAPTER 4 NUMBER THEORY PART1: Divisibility PART 2: Primes PART 1: DIVISIBILITY Basic Definitions Definition Given m,n Z, we say

More information

8 Primes and Modular Arithmetic

8 Primes and Modular Arithmetic 8 Primes and Modular Arithmetic 8.1 Primes and Factors Over two millennia ago already, people all over the world were considering the properties of numbers. One of the simplest concepts is prime numbers.

More information

Part IA Numbers and Sets

Part IA Numbers and Sets Part IA Numbers and Sets Definitions Based on lectures by A. G. Thomason Notes taken by Dexter Chua Michaelmas 2014 These notes are not endorsed by the lecturers, and I have modified them (often significantly)

More information

Solution Sheet (i) q = 5, r = 15 (ii) q = 58, r = 15 (iii) q = 3, r = 7 (iv) q = 6, r = (i) gcd (97, 157) = 1 = ,

Solution Sheet (i) q = 5, r = 15 (ii) q = 58, r = 15 (iii) q = 3, r = 7 (iv) q = 6, r = (i) gcd (97, 157) = 1 = , Solution Sheet 2 1. (i) q = 5, r = 15 (ii) q = 58, r = 15 (iii) q = 3, r = 7 (iv) q = 6, r = 3. 2. (i) gcd (97, 157) = 1 = 34 97 21 157, (ii) gcd (527, 697) = 17 = 4 527 3 697, (iii) gcd (2323, 1679) =

More information

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

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is 1. Describe the elements of the set (Z Q) R N. Is this set countable or uncountable? Solution: The set is equal to {(x, y) x Z, y N} = Z N. Since the Cartesian product of two denumerable sets is denumerable,

More information

Review Problems for Midterm Exam II MTH 299 Spring n(n + 1) 2. = 1. So assume there is some k 1 for which

Review Problems for Midterm Exam II MTH 299 Spring n(n + 1) 2. = 1. So assume there is some k 1 for which Review Problems for Midterm Exam II MTH 99 Spring 014 1. Use induction to prove that for all n N. 1 + 3 + + + n(n + 1) = n(n + 1)(n + ) Solution: This statement is obviously true for n = 1 since 1()(3)

More information

Math 2602 Finite and Linear Math Fall 14. Homework 8: Core solutions

Math 2602 Finite and Linear Math Fall 14. Homework 8: Core solutions Math 2602 Finite and Linear Math Fall 14 Homework 8: Core solutions Review exercises for Chapter 5 page 183 problems 25, 26a-26b, 29. Section 8.1 on page 252 problems 8, 9, 10, 13. Section 8.2 on page

More information

CSC B36 Additional Notes sample induction and well-ordering proofs. c Nick Cheng

CSC B36 Additional Notes sample induction and well-ordering proofs. c Nick Cheng CSC B36 Additional Notes sample induction and well-ordering proofs c Nick Cheng Introduction We present examples of induction proofs here in hope that they can be used as models when you write your own

More information

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements

More information

Name (please print) Mathematics Final Examination December 14, 2005 I. (4)

Name (please print) Mathematics Final Examination December 14, 2005 I. (4) Mathematics 513-00 Final Examination December 14, 005 I Use a direct argument to prove the following implication: The product of two odd integers is odd Let m and n be two odd integers Since they are odd,

More information

Chapter VI. Relations. Assumptions are the termites of relationships. Henry Winkler

Chapter VI. Relations. Assumptions are the termites of relationships. Henry Winkler Chapter VI Relations Assumptions are the termites of relationships. Henry Winkler Studying relationships between objects can yield important information about the objects themselves. In the real numbers,

More information

Revision Problems for Examination 1 in Algebra 1

Revision Problems for Examination 1 in Algebra 1 Centre for Mathematical Sciences Mathematics, Faculty of Science Revision Problems for Examination 1 in Algebra 1 Arithmetics 1 Determine a greatest common divisor to the integers a) 5431 and 1345, b)

More information

Chapter 7: Exponents

Chapter 7: Exponents Chapter : Exponents Algebra Chapter Notes Name: Algebra Homework: Chapter (Homework is listed by date assigned; homework is due the following class period) HW# Date In-Class Homework M / Review of Sections.-.

More information

11 Division Mod n, Linear Integer Equations, Random Numbers, The Fundamental Theorem of Arithmetic

11 Division Mod n, Linear Integer Equations, Random Numbers, The Fundamental Theorem of Arithmetic 11 Division Mod n, Linear Integer Equations, Random Numbers, The Fundamental Theorem of Arithmetic Bezout s Lemma Let's look at the values of 4x + 6y when x and y are integers. If x is -6 and y is 4 we

More information

0 Sets and Induction. Sets

0 Sets and Induction. Sets 0 Sets and Induction Sets A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a A to denote that a is an element of the set

More information

PUTNAM TRAINING POLYNOMIALS. Exercises 1. Find a polynomial with integral coefficients whose zeros include

PUTNAM TRAINING POLYNOMIALS. Exercises 1. Find a polynomial with integral coefficients whose zeros include PUTNAM TRAINING POLYNOMIALS (Last updated: December 11, 2017) Remark. This is a list of exercises on polynomials. Miguel A. Lerma Exercises 1. Find a polynomial with integral coefficients whose zeros include

More information

1.4 Equivalence Relations and Partitions

1.4 Equivalence Relations and Partitions 24 CHAPTER 1. REVIEW 1.4 Equivalence Relations and Partitions 1.4.1 Equivalence Relations Definition 1.4.1 (Relation) A binary relation or a relation on a set S is a set R of ordered pairs. This is a very

More information

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?

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? Chapter 3: Theory of Modular Arithmetic 25 SECTION C Solving Linear Congruences By the end of this section you will be able to solve congruence equations determine the number of solutions find the multiplicative

More information

PUTNAM TRAINING EASY PUTNAM PROBLEMS

PUTNAM TRAINING EASY PUTNAM PROBLEMS PUTNAM TRAINING EASY PUTNAM PROBLEMS (Last updated: September 24, 2018) Remark. This is a list of exercises on Easy Putnam Problems Miguel A. Lerma Exercises 1. 2017-A1. Let S be the smallest set of positive

More information

Chapter 7: Exponents

Chapter 7: Exponents Chapter : Exponents Algebra Chapter Notes Name: Notes #: Sections.. Section.: Review Simplify; leave all answers in positive exponents:.) m -.) y -.) m 0.) -.) -.) - -.) (m ) 0.) 0 x y Evaluate if a =

More information

MATH 2200 Final LC Review

MATH 2200 Final LC Review MATH 2200 Final LC Review Thomas Goller April 25, 2013 1 Final LC Format The final learning celebration will consist of 12-15 claims to be proven or disproven. It will take place on Wednesday, May 1, from

More information

CDM. Recurrences and Fibonacci

CDM. Recurrences and Fibonacci CDM Recurrences and Fibonacci Klaus Sutner Carnegie Mellon University 20-fibonacci 2017/12/15 23:16 1 Recurrence Equations Second Order The Fibonacci Monoid Recurrence Equations 3 We can define a sequence

More information

Homework #2 solutions Due: June 15, 2012

Homework #2 solutions Due: June 15, 2012 All of the following exercises are based on the material in the handout on integers found on the class website. 1. Find d = gcd(475, 385) and express it as a linear combination of 475 and 385. That is

More information

1. Algebra 1.5. Polynomial Rings

1. Algebra 1.5. Polynomial Rings 1. ALGEBRA 19 1. Algebra 1.5. Polynomial Rings Lemma 1.5.1 Let R and S be rings with identity element. If R > 1 and S > 1, then R S contains zero divisors. Proof. The two elements (1, 0) and (0, 1) are

More information

CDM. Recurrences and Fibonacci. 20-fibonacci 2017/12/15 23:16. Terminology 4. Recurrence Equations 3. Solution and Asymptotics 6.

CDM. Recurrences and Fibonacci. 20-fibonacci 2017/12/15 23:16. Terminology 4. Recurrence Equations 3. Solution and Asymptotics 6. CDM Recurrences and Fibonacci 1 Recurrence Equations Klaus Sutner Carnegie Mellon University Second Order 20-fibonacci 2017/12/15 23:16 The Fibonacci Monoid Recurrence Equations 3 Terminology 4 We can

More information

1. Suppose that a, b, c and d are four different integers. Explain why. (a b)(a c)(a d)(b c)(b d)(c d) a 2 + ab b = 2018.

1. Suppose that a, b, c and d are four different integers. Explain why. (a b)(a c)(a d)(b c)(b d)(c d) a 2 + ab b = 2018. New Zealand Mathematical Olympiad Committee Camp Selection Problems 2018 Solutions Due: 28th September 2018 1. Suppose that a, b, c and d are four different integers. Explain why must be a multiple of

More information

MATH 145 LECTURE NOTES. Zhongwei Zhao. My Lecture Notes for MATH Fall

MATH 145 LECTURE NOTES. Zhongwei Zhao. My Lecture Notes for MATH Fall MATH 145 LECTURE NOTES Zhongwei Zhao My Lecture Notes for MATH 145 2016 Fall December 2016 Lecture 1, Sept. 9 Course Orientation and Organization About the Professor Stephen New MC 5419 Ext 35554 Email:

More information

LESSON 7.1 FACTORING POLYNOMIALS I

LESSON 7.1 FACTORING POLYNOMIALS I LESSON 7.1 FACTORING POLYNOMIALS I LESSON 7.1 FACTORING POLYNOMIALS I 293 OVERVIEW Here s what you ll learn in this lesson: Greatest Common Factor a. Finding the greatest common factor (GCF) of a set of

More information

Chapter 1. Sets and Numbers

Chapter 1. Sets and Numbers Chapter 1. Sets and Numbers 1. Sets A set is considered to be a collection of objects (elements). If A is a set and x is an element of the set A, we say x is a member of A or x belongs to A, and we write

More information

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

This is a recursive algorithm. The procedure is guaranteed to terminate, since the second argument decreases each time. 8 Modular Arithmetic We introduce an operator mod. Let d be a positive integer. For c a nonnegative integer, the value c mod d is the remainder when c is divided by d. For example, c mod d = 0 if and only

More information

X-MA2C01-1: Partial Worked Solutions

X-MA2C01-1: Partial Worked Solutions X-MAC01-1: Partial Worked Solutions David R. Wilkins May 013 1. (a) Let A, B and C be sets. Prove that (A \ (B C)) (B \ C) = (A B) \ C. [Venn Diagrams, by themselves without an accompanying logical argument,

More information

Relations. P. Danziger. We may represent a relation by a diagram in which a line is drawn between two elements if they are related.

Relations. P. Danziger. We may represent a relation by a diagram in which a line is drawn between two elements if they are related. - 10 Relations P. Danziger 1 Relations (10.1) Definition 1 1. A relation from a set A to a set B is a subset R of A B. 2. Given (x, y) R we say that x is related to y and write xry. 3. If (x, y) R we say

More information

8 Appendix: Polynomial Rings

8 Appendix: Polynomial Rings 8 Appendix: Polynomial Rings Throughout we suppose, unless otherwise specified, that R is a commutative ring. 8.1 (Largely) a reminder about polynomials A polynomial in the indeterminate X with coefficients

More information

NORTHERN INDIA ENGINEERING COLLEGE, LKO D E P A R T M E N T O F M A T H E M A T I C S. B.TECH IIIrd SEMESTER QUESTION BANK ACADEMIC SESSION

NORTHERN INDIA ENGINEERING COLLEGE, LKO D E P A R T M E N T O F M A T H E M A T I C S. B.TECH IIIrd SEMESTER QUESTION BANK ACADEMIC SESSION NORTHERN INDIA ENGINEERING COLLEGE, LKO D E P A R T M E N T O F M A T H E M A T I C S B.TECH IIIrd SEMESTER QUESTION BANK ACADEMIC SESSION 011-1 DISCRETE MATHEMATICS (EOE 038) 1. UNIT I (SET, RELATION,

More information

Deviations from the Mean

Deviations from the Mean Deviations from the Mean The Markov inequality for non-negative RVs Variance Definition The Bienaymé Inequality For independent RVs The Chebyeshev Inequality Markov s Inequality For any non-negative random

More information

MATH 3330 ABSTRACT ALGEBRA SPRING Definition. A statement is a declarative sentence that is either true or false.

MATH 3330 ABSTRACT ALGEBRA SPRING Definition. A statement is a declarative sentence that is either true or false. MATH 3330 ABSTRACT ALGEBRA SPRING 2014 TANYA CHEN Dr. Gordon Heier Tuesday January 14, 2014 The Basics of Logic (Appendix) Definition. A statement is a declarative sentence that is either true or false.

More information

M381 Number Theory 2004 Page 1

M381 Number Theory 2004 Page 1 M81 Number Theory 2004 Page 1 [[ Comments are written like this. Please send me (dave@wildd.freeserve.co.uk) details of any errors you find or suggestions for improvements. ]] Question 1 20 = 2 * 10 +

More information

1. Let r, s, t, v be the homogeneous relations defined on the set M = {2, 3, 4, 5, 6} by

1. Let r, s, t, v be the homogeneous relations defined on the set M = {2, 3, 4, 5, 6} by Seminar 1 1. Which ones of the usual symbols of addition, subtraction, multiplication and division define an operation (composition law) on the numerical sets N, Z, Q, R, C? 2. Let A = {a 1, a 2, a 3 }.

More information

Math 312/ AMS 351 (Fall 17) Sample Questions for Final

Math 312/ AMS 351 (Fall 17) Sample Questions for Final Math 312/ AMS 351 (Fall 17) Sample Questions for Final 1. Solve the system of equations 2x 1 mod 3 x 2 mod 7 x 7 mod 8 First note that the inverse of 2 is 2 mod 3. Thus, the first equation becomes (multiply

More information

3.2 Solving linear congruences. v3

3.2 Solving linear congruences. v3 3.2 Solving linear congruences. v3 Solving equations of the form ax b (mod m), where x is an unknown integer. Example (i) Find an integer x for which 56x 1 mod 93. Solution We have already solved this

More information

CSC Discrete Math I, Spring Relations

CSC Discrete Math I, Spring Relations CSC 125 - Discrete Math I, Spring 2017 Relations Binary Relations Definition: A binary relation R from a set A to a set B is a subset of A B Note that a relation is more general than a function Example:

More information

9 RELATIONS. 9.1 Reflexive, symmetric and transitive relations. MATH Foundations of Pure Mathematics

9 RELATIONS. 9.1 Reflexive, symmetric and transitive relations. MATH Foundations of Pure Mathematics MATH10111 - Foundations of Pure Mathematics 9 RELATIONS 9.1 Reflexive, symmetric and transitive relations Let A be a set with A. A relation R on A is a subset of A A. For convenience, for x, y A, write

More information

Algebraic structures I

Algebraic structures I MTH5100 Assignment 1-10 Algebraic structures I For handing in on various dates January March 2011 1 FUNCTIONS. Say which of the following rules successfully define functions, giving reasons. For each one

More information

Exam 2. Is g one-to-one? Is g onto? Why? Solution: g is not one-to-one, since for c A, g(b) = g(c) = c. g is not onto, since a / g(a).

Exam 2. Is g one-to-one? Is g onto? Why? Solution: g is not one-to-one, since for c A, g(b) = g(c) = c. g is not onto, since a / g(a). Discrete Structures: Exam 2 Solutions to Sample Questions, 1. Let A = B = {a, b, c}. Consider the relation g = {(a, b), (b, c), (c, c)}. Is g one-to-one? Is g onto? Why? Solution: g is not one-to-one,

More information

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1 MATH 4400 SOLUTIONS TO SOME EXERCISES 1.1.3. If a b and b c show that a c. 1. Chapter 1 Solution: a b means that b = na and b c that c = mb. Substituting b = na gives c = (mn)a, that is, a c. 1.2.1. Find

More information

Chapter 1. Sets and Mappings

Chapter 1. Sets and Mappings Chapter 1. Sets and Mappings 1. Sets A set is considered to be a collection of objects (elements). If A is a set and x is an element of the set A, we say x is a member of A or x belongs to A, and we write

More information

Rings and modular arithmetic

Rings and modular arithmetic Chapter 8 Rings and modular arithmetic So far, we have been working with just one operation at a time. But standard number systems, such as Z, have two operations + and which interact. It is useful to

More information

D-MATH Algebra I HS 2013 Prof. Brent Doran. Solution 3. Modular arithmetic, quotients, product groups

D-MATH Algebra I HS 2013 Prof. Brent Doran. Solution 3. Modular arithmetic, quotients, product groups D-MATH Algebra I HS 2013 Prof. Brent Doran Solution 3 Modular arithmetic, quotients, product groups 1. Show that the functions f = 1/x, g = (x 1)/x generate a group of functions, the law of composition

More information

LEGENDRE S THEOREM, LEGRANGE S DESCENT

LEGENDRE S THEOREM, LEGRANGE S DESCENT LEGENDRE S THEOREM, LEGRANGE S DESCENT SUPPLEMENT FOR MATH 370: NUMBER THEORY Abstract. Legendre gave simple necessary and sufficient conditions for the solvablility of the diophantine equation ax 2 +

More information

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

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}. 2 Arithmetic This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}. (See [Houston, Chapters 27 & 28]) 2.1 Greatest common divisors Definition 2.16. If a, b are integers, we say

More information

Chapter 2 - Relations

Chapter 2 - Relations Chapter 2 - Relations Chapter 2: Relations We could use up two Eternities in learning all that is to be learned about our own world and the thousands of nations that have arisen and flourished and vanished

More information

3 Applications of partial differentiation

3 Applications of partial differentiation Advanced Calculus Chapter 3 Applications of partial differentiation 37 3 Applications of partial differentiation 3.1 Stationary points Higher derivatives Let U R 2 and f : U R. The partial derivatives

More information

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel Lecture Notes on DISCRETE MATHEMATICS Eusebius Doedel c Eusebius J. Doedel, 009 Contents Logic. Introduction............................................................................... Basic logical

More information

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

D-MATH Algebra I HS18 Prof. Rahul Pandharipande. Solution 1. Arithmetic, Zorn s Lemma. D-MATH Algebra I HS18 Prof. Rahul Pandharipande Solution 1 Arithmetic, Zorn s Lemma. 1. (a) Using the Euclidean division, determine gcd(160, 399). (b) Find m 0, n 0 Z such that gcd(160, 399) = 160m 0 +

More information

Part IA. Numbers and Sets. Year

Part IA. Numbers and Sets. Year Part IA Year 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2004 2003 2002 2001 2017 19 Paper 4, Section I 1D (a) Show that for all positive integers z and n, either z 2n 0 (mod 3) or

More information

Questionnaire for CSET Mathematics subset 1

Questionnaire for CSET Mathematics subset 1 Questionnaire for CSET Mathematics subset 1 Below is a preliminary questionnaire aimed at finding out your current readiness for the CSET Math subset 1 exam. This will serve as a baseline indicator for

More information

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

12x + 18y = 50. 2x + v = 12. (x, v) = (6 + k, 2k), k Z. Math 3, Fall 010 Assignment 3 Solutions Exercise 1. Find all the integral solutions of the following linear diophantine equations. Be sure to justify your answers. (i) 3x + y = 7. (ii) 1x + 18y = 50. (iii)

More information

2 Lecture 2: Logical statements and proof by contradiction Lecture 10: More on Permutations, Group Homomorphisms 31

2 Lecture 2: Logical statements and proof by contradiction Lecture 10: More on Permutations, Group Homomorphisms 31 Contents 1 Lecture 1: Introduction 2 2 Lecture 2: Logical statements and proof by contradiction 7 3 Lecture 3: Induction and Well-Ordering Principle 11 4 Lecture 4: Definition of a Group and examples 15

More information

ORDERS OF ELEMENTS IN A GROUP

ORDERS OF ELEMENTS IN A GROUP ORDERS OF ELEMENTS IN A GROUP KEITH CONRAD 1. Introduction Let G be a group and g G. We say g has finite order if g n = e for some positive integer n. For example, 1 and i have finite order in C, since

More information

Solutions to In Class Problems Week 4, Mon.

Solutions to In Class Problems Week 4, Mon. Massachusetts Institute of Technology 6.042J/18.062J, Fall 05: Mathematics for Computer Science September 26 Prof. Albert R. Meyer and Prof. Ronitt Rubinfeld revised September 26, 2005, 1050 minutes Solutions

More information

Section 7.1 Relations and Their Properties. Definition: A binary relation R from a set A to a set B is a subset R A B.

Section 7.1 Relations and Their Properties. Definition: A binary relation R from a set A to a set B is a subset R A B. Section 7.1 Relations and Their Properties Definition: A binary relation R from a set A to a set B is a subset R A B. Note: there are no constraints on relations as there are on functions. We have a common

More information

Fundamentals of Pure Mathematics - Problem Sheet

Fundamentals of Pure Mathematics - Problem Sheet Fundamentals of Pure Mathematics - Problem Sheet ( ) = Straightforward but illustrates a basic idea (*) = Harder Note: R, Z denote the real numbers, integers, etc. assumed to be real numbers. In questions

More information

Rings If R is a commutative ring, a zero divisor is a nonzero element x such that xy = 0 for some nonzero element y R.

Rings If R is a commutative ring, a zero divisor is a nonzero element x such that xy = 0 for some nonzero element y R. Rings 10-26-2008 A ring is an abelian group R with binary operation + ( addition ), together with a second binary operation ( multiplication ). Multiplication must be associative, and must distribute over

More information

Moreover this binary operation satisfies the following properties

Moreover this binary operation satisfies the following properties Contents 1 Algebraic structures 1 1.1 Group........................................... 1 1.1.1 Definitions and examples............................. 1 1.1.2 Subgroup.....................................

More information

Writing Assignment 2 Student Sample Questions

Writing Assignment 2 Student Sample Questions Writing Assignment 2 Student Sample Questions 1. Let P and Q be statements. Then the statement (P = Q) ( P Q) is a tautology. 2. The statement If the sun rises from the west, then I ll get out of the bed.

More information

Discrete Structures, Final Exam

Discrete Structures, Final Exam Discrete Structures, Final Exam Monday, May 11, 2009 SOLUTIONS 1. (40 pts) Short answer. Put your answer in the box. No partial credit. [ ] 0 1 (a) If A = and B = 1 0 [ ] 0 0 1. 0 1 1 [ 0 1 1 0 0 1 ],

More information

x y z 2x y 2y z 2z x n

x y z 2x y 2y z 2z x n Integer Solutions, Rational solutions of the equations 4 4 4 x y z x y y z z x n 4 4 and x y z xy xz y z n; And Crux Mathematicorum Contest Corner problem CC4 Konstantine Zelator P.O. Box 480 Pittsburgh,

More information

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

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers ALGEBRA CHRISTIAN REMLING 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers by Z = {..., 2, 1, 0, 1,...}. Given a, b Z, we write a b if b = ac for some

More information

I Foundations Of Divisibility And Congruence 1

I Foundations Of Divisibility And Congruence 1 Contents I Foundations Of Divisibility And Congruence 1 1 Divisibility 3 1.1 Definitions............................. 3 1.2 Properties Of Divisibility..................... 5 1.3 Some Basic Combinatorial

More information

CHAPTER 12 Boolean Algebra

CHAPTER 12 Boolean Algebra 318 Chapter 12 Boolean Algebra CHAPTER 12 Boolean Algebra SECTION 12.1 Boolean Functions 2. a) Since x 1 = x, the only solution is x = 0. b) Since 0 + 0 = 0 and 1 + 1 = 1, the only solution is x = 0. c)

More information

Polynomials. Henry Liu, 25 November 2004

Polynomials. Henry Liu, 25 November 2004 Introduction Polynomials Henry Liu, 25 November 2004 henryliu@memphis.edu This brief set of notes contains some basic ideas and the most well-known theorems about polynomials. I have not gone into deep

More information

Chapter 2 Algorithms and Computation

Chapter 2 Algorithms and Computation Chapter 2 Algorithms and Computation In this chapter, we first discuss the principles of algorithm and computation in general framework, common both in classical and quantum computers, then we go to the

More information

FALL 07 CSE 213: HW4

FALL 07 CSE 213: HW4 FALL 07 CSE 213: HW4 1) R 1 is not a partial ordered relation, since it is not antisymmetric. Having (1,3) and (3,1) in the relation; does not imply that 1=3 because 1 3. R 2 is a partial order because

More information

Multiplication of Polynomials

Multiplication of Polynomials Summary 391 Chapter 5 SUMMARY Section 5.1 A polynomial in x is defined by a finite sum of terms of the form ax n, where a is a real number and n is a whole number. a is the coefficient of the term. n is

More information

RED. Fall 2016 Student Submitted Sample Questions

RED. Fall 2016 Student Submitted Sample Questions RED Fall 2016 Student Submitted Sample Questions Name: Last Update: November 22, 2016 The questions are divided into three sections: True-false, Multiple Choice, and Written Answer. I will add questions

More information

(2) Generalize De Morgan s laws for n sets and prove the laws by induction. 1

(2) Generalize De Morgan s laws for n sets and prove the laws by induction. 1 ARS DIGITA UNIVERSITY MONTH 2: DISCRETE MATHEMATICS PROFESSOR SHAI SIMONSON PROBLEM SET 2 SOLUTIONS SET, FUNCTIONS, BIG-O, RATES OF GROWTH (1) Prove by formal logic: (a) The complement of the union of

More information

Chapter12. Relations, Functions, and Induction

Chapter12. Relations, Functions, and Induction . Relations. Functions. Seuences.4 Mathematical Induction.5 Recurrence Relations Chapter Review Chapter Relations, Functions, and Induction In this chapter we introduce the concepts of a relation and a

More information

Handout #6 INTRODUCTION TO ALGEBRAIC STRUCTURES: Prof. Moseley AN ALGEBRAIC FIELD

Handout #6 INTRODUCTION TO ALGEBRAIC STRUCTURES: Prof. Moseley AN ALGEBRAIC FIELD Handout #6 INTRODUCTION TO ALGEBRAIC STRUCTURES: Prof. Moseley Chap. 2 AN ALGEBRAIC FIELD To introduce the notion of an abstract algebraic structure we consider (algebraic) fields. (These should not to

More information

EXAMPLES OF PROOFS BY INDUCTION

EXAMPLES OF PROOFS BY INDUCTION EXAMPLES OF PROOFS BY INDUCTION KEITH CONRAD 1. Introduction In this handout we illustrate proofs by induction from several areas of mathematics: linear algebra, polynomial algebra, and calculus. Becoming

More information

Discrete Structures: Solutions to Sample Questions, Exam 2

Discrete Structures: Solutions to Sample Questions, Exam 2 Discrete Structures: Solutions to Sample Questions, Exam 2 1. Let A = B = {a, b, c}. Consider the relation g = {(a, b), (b, c), (c, c)}. Is g one-to-one? Is g onto? Why? Solution: g is not one-to-one,

More information