{"id":670,"date":"2024-11-27T02:51:34","date_gmt":"2024-11-27T02:51:34","guid":{"rendered":"https:\/\/sites.wp.odu.edu\/edwin-wells-4\/?page_id=670"},"modified":"2024-11-27T03:12:55","modified_gmt":"2024-11-27T03:12:55","slug":"670-2","status":"publish","type":"page","link":"https:\/\/sites.wp.odu.edu\/edwin-wells-4\/670-2\/","title":{"rendered":"Modular Arithmetic Foundations"},"content":{"rendered":"\n<h2 class=\"wp-block-heading has-text-align-center\"><strong>CS 463\/563: Cryptography for Cybersecurity <br>Fall 2024<br>Homework #2<\/strong><\/h2>\n\n\n\n<p class=\"has-text-align-left\"><br>Note: Modular arithmetic is fundamental to cryptography. In this system, you can only have integers. For example, in mod 14 system, the answer MUST be 0,1,2,3,\u20269,11,12,13. Non-integer values have no place in this arithmetic. If you have an answer which is a floating point, such as 12.5, then you are doing something wrong.<\/p>\n\n\n\n<p class=\"has-text-align-left\"><br>Question 1: Modular Arithmetic: Compute the following without a calculator. SHOW YOUR WORK.<\/p>\n\n\n\n<p class=\"has-text-align-left\"><br>i.           150 * 92 mod 14 (Hint: a*b mod c = ((a mod c) * (b mod c)) mod c)<br>            ((150 mod 14) * (92 mod 14)) mod 14 ((10) * (8)) mod 14<br>            80 mod 14 = 10<br>            Final answer is 10<br><br>ii.         6 * (4\/11) mod 14 (Hint: In mod 14 system, a, a+14, a+28, a+42, a+56, etc. are all equivalent)<br>            ((6 mod 14) * (4\/11 mod 14)) mod 14 ((6) * (4\/11 mod 14)) mod 14<br>            11<em>x mod 14 = 4 mod 14 4 mod 14 = 4 (11<\/em>8) mod 14 = 4<br>            ((6) * (8)) mod 14 48 mod 14 = 6 Final answer is 6<br><br>iii.        24\/17 mod 14 (Hint: First, simplify the numerator and denominator separately by applying the mod function independently, and then solve as in (ii) above)<br>            24 mod 14 = 10 <br>            17 mod 14 = 3 <br>            3 x 5 = 15, and 15 mod 14 = 1 <br>            (24\/17) mod 14 = (10 x 5) mod 14                         <br>            50 mod 14 = 8 <br>            Final answer is 8<br><br>iv.        48 * 512 mod 14 (Hint: Try to compute the exponent in stages, each time simplifying it using the mod function. For example, to compute 48 mod 14, express 48 mod 14 = (42 mod 14)4 mod 14, compute the one in the parenthesis, and repeat this process)<br>            4^8 mod 14 <br>            (4^2 mod 14)^4 mod 14 <br>            (16 mod 14)^4 mod 14<br>            2^4 mod 14<br>            16 mod 14<br>            2 <br>            4^8 mod 14 = 2<br><br>            5^12 mod 14 <br>            (5^2 mod 14)^6 mod 14 <br>            (25 mod 14)^6 mod 14 <br>            11^6 mod 14 <br>            (11^2 mod 14)^3 mod 14 <br>            (121 mod 14)^3 mod 14 <br>            9^3 mod 14 <br>            729 mod 14 <br>            1 <br>            5^12 mod 14 = 1<br><br>            ((4^8 mod 14)<em>(5^12 mod 14)) mod 14 <\/em><br>            <em>((2)<\/em>(1)) mod 14 <br>            2 mod 14 <br>            2 <br>            Final answer is 2<br><br>v.          510 * 68 mod 14 (same as above)<br>            5^10 mod 14 <br>            (5^2 mod 14)^5 mod 14 <br>            (25 mod 14)^5 mod 14 <br>            11^5 mod 14 <br>            161,051 mod 14 <br>            9 <br>            5^10 mod 14 = 9<br><br>            6^8 mod 14 <br>            (6^2 mod 14)^4 mod 14 <br>            (36 mod 14)^4 mod 14 <br>            8^4 mod 14 <br>            (8^2 mod 14)^2 mod 14 <br>            (64 mod 14)^2 mod 14 <br>            8^2 mod 14 <br>            64 mod 14 <br>            8 <br>            6^8 mod 14 = 8<br><br>            ((5^10 mod 14) * (6^8 mod 14)) mod 14 <br>            ((9) * (8)) mod 14 <br>            72 mod 14 <br>            2 <br>            The final answer is 2<br><br>Question 2: SHOW YOUR WORK. You may use EXCEL or a calculator.<br><br>i. Show the elements of groups Z13 and Z* (Note that 13 is a prime number)<\/p>\n\n\n\n<p>            Z13 = {0,1,2,3,4,5,6,7,8,9,10,11,12}<br>            Z*<em>13 = {1,2,3,4,5,6,7,8,9,10,11,12} <\/em><\/p>\n\n\n\n<p><em>ii. Show the elements of groups Z18 and Z<\/em> (Note that 18 is NOT a prime number)<\/p>\n\n\n\n<p>            Z18 = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}<br>            Z*<em>18 = { 1, 5, 7, 11, 13, 17} <\/em><\/p>\n\n\n\n<p><em>iii. Find the order of 5 in Z<\/em>*13 (Hint: Order of an element in a finite group G is the smallest positive integer k such that ak =1 where 1 is the identity element of G)<br><br>            5^1 = 5 <br>            5^2 = 25 = 12 mod 13<br>            5^3 = 125 = 8 mod 13 <br>            5^4 = 625 = 1<br><br>iv. Find (if it exists) the multiplicative inverse of 5 \u2208 Z13 (integer ring) (Hint: For a \u2208 Zn, its multiplicative inverse, if it exists, is defined as a-1 such that a.a-1 \u2261 1 mod n)<br>            5a = 1 mod 13 <br>            5a = 1 <br>            a= 5a mod 13 = <br>            a=1             5 mod 13 = 5 <br>            a=2             10 mod 13 = 10 <br>            a=3             15 mod 13 = 2 <br>            a=4             20 mod 13 = 7 <br>            a=5             25 mod 13 = 12<br>            a=6             30 mod 13 = 4 <br>            a=7             35 mod 13 = 9 <br>            a=8             40 mod 13 = 1<br>            Final answer is the inverse of 5 is 8 in z13<br><br>v. Is Z*13 a cyclic group? If so, what is its order and the generator element? (Hint: group G which contains some element \u03b1 with maximum order ord(\u03b1) = |G| is said to be cyclic. Elements with maximum order are called generators)<br><br>            Yes Z<em>13 is a cyclic group. <\/em><br>            <em>2^2 = 4 mod 13 = 4 <\/em><br>            <em>2^3 = 8 mod 13 = 8 <\/em><br>            <em>2^4 = 16 = 3 mod 13 = 3 <\/em><br>            <em>2^5 = 2<\/em>*2^4 = 2*<em>3 = 6 mod 13 = 6 <\/em><br>            <em>2^6 = 2<\/em>*2^5 = 2*<em>6 = 12 mod 13 = 12 <\/em><br>            <em>2^7 = 2<\/em>*2^6 = 2*<em>12 = 24 = 11 mod 13 = 11 <\/em><br>            <em>2^8 = 2<\/em>*2^7 = 2*<em>11 = 22 = 9 mod 13 = 9<\/em><br>            <em>2^9 = 2<\/em>*2^8 = 2*<em>9 = 18 = 5 mod 13 = 5 <\/em><br>            <em>2^10 = 2<\/em>*2^9 = 2*<em>5 = 10 mod 13 = 10<\/em><br>            <em>2^11 = 2<\/em>*2^10 = 2*<em>10 = 20 = 7 mod 13 = 7<\/em><br>            <em>2^12 = 2<\/em>*2^11 = 2*7 = 14 = 1 mod 13 = 1<br><br>            12 is the smallest integer such that 2^12 = 1 mod 13 and thus the order of 2 is 12 in the group.<br><br>            2 is also the element of maximum order and is thus the generator element of this group.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CS 463\/563: Cryptography for Cybersecurity Fall 2024Homework #2 Note: Modular arithmetic is fundamental to cryptography. In this system, you can only have integers. For example, in mod 14 system, the answer MUST be 0,1,2,3,\u20269,11,12,13. Non-integer values have no place in this arithmetic. If you have an answer which is a floating point, such as 12.5,&#8230; <\/p>\n<div class=\"link-more\"><a href=\"https:\/\/sites.wp.odu.edu\/edwin-wells-4\/670-2\/\">Read More<\/a><\/div>\n","protected":false},"author":25223,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/sites.wp.odu.edu\/edwin-wells-4\/wp-json\/wp\/v2\/pages\/670"}],"collection":[{"href":"https:\/\/sites.wp.odu.edu\/edwin-wells-4\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.wp.odu.edu\/edwin-wells-4\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/edwin-wells-4\/wp-json\/wp\/v2\/users\/25223"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/edwin-wells-4\/wp-json\/wp\/v2\/comments?post=670"}],"version-history":[{"count":2,"href":"https:\/\/sites.wp.odu.edu\/edwin-wells-4\/wp-json\/wp\/v2\/pages\/670\/revisions"}],"predecessor-version":[{"id":698,"href":"https:\/\/sites.wp.odu.edu\/edwin-wells-4\/wp-json\/wp\/v2\/pages\/670\/revisions\/698"}],"wp:attachment":[{"href":"https:\/\/sites.wp.odu.edu\/edwin-wells-4\/wp-json\/wp\/v2\/media?parent=670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}