Fall 2006 COT 3100 Homework #2

Fall 2006 COT 3100 Homework #2

<p> Fall 2006 COT 3100 Homework #2 Given: 9/12/06 Due: 9/22/06 (in recitation)</p><p>Directions: Please fully write out each inductive proof. When asked, please use the Euclidean Algorithm instead of another method of solving the posed problem. Full credit will only be given if the appropriate method is used.</p><p>1) Use induction on n to prove the following for all positive integers n:</p><p> n i2i  2  (n 1)2n1 i1</p><p>2) Consider the following four equations:</p><p> a) 1 = 1 b) 2+3+4 = 1 + 8 c) 5+6+7+8+9 = 8 + 27 d) 10+11+12+13+14+15+16 = 27 + 64</p><p>Conjecture the general formula suggested by these four equations and use induction to prove your conjecture.</p><p>3) The Lucas numbers are defined as follows:</p><p>L1 = 1, L2 = 3, Ln = Ln-1 +,Ln-2, for all integers n > 2/</p><p>Use induction to prove the following statement for all positive integers n:</p><p> n 2  Li  Ln Ln1  2 i1</p><p>4) Matrix multiplication for 2x2 matrices is defined as follows below:</p><p>a b  e f  ae  bg af  bh        c d  g h  ce  dg cf  dh</p><p> 2 51 4  12  7  For example,       . 1 32  3  5 13</p><p> n a b  Also, the notation   simply indicates multiplying the given matrix n times.  c d  Using induction on n, prove for all positive integers n that</p><p> n  2 1 n 1 n       1 0   n  n 1</p><p>5) Using induction on n, prove that 7 | (32n+1 + 2n+2) for all integers n  0.</p><p>6) Convert the decimal number 9367 into octal utilizing the method shown in the text on page 225.</p><p>7) When dividing integer a by integer b, we write a = bq + r, where q and r are integers such that 0 ≤ r < b. Prove that if a > b, then a > 2r.</p><p>8) Use the Euclidean Algorithm to determine the GCD of 1190 and 427. </p><p>9) Use the Extended Euclidean Algorithm to find integers x and y that satisfy the following equation: 1049x + 390y = gcd(1049, 390).</p><p>10) Prove that the equation 115x + 161y = 2200 has no integer solutions for x and y.</p><p>Optional Programming Homework:</p><p>Instead of doing questions 6 and 8, write computer programs to write out the solutions for each. For 6, your program should prompt the user to enter a decimal number and then process to convert it into octal. For 8, your program should prompt the user to enter two positive integers for the gcd computation. Your program for each should print out each step in the algorithm to solve the problem and print out the final answer.</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    2 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us