// Numbas version: exam_results_page_options {"name": "Divide two elements of $\\mathbb{Z}[i]$", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "variables": {"b": {"templateType": "anything", "group": "Ungrouped variables", "definition": "d*t+c*v+n", "description": "", "name": "b"}, "n": {"templateType": "anything", "group": "Ungrouped variables", "definition": "if(m=1,random(2..5),if(m=2,random(1,3,4,5),if(m=3,random(1,2,4,5),if(m=4,random(1,2,3,5),random(1..4)))))", "description": "", "name": "n"}, "p1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(2..4)", "description": "", "name": "p1"}, "c": {"templateType": "anything", "group": "Ungrouped variables", "definition": "(n+m)*p1", "description": "", "name": "c"}, "v": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..4)", "description": "", "name": "v"}, "d": {"templateType": "anything", "group": "Ungrouped variables", "definition": "(n-m)*p1", "description": "", "name": "d"}, "t": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..4)", "description": "", "name": "t"}, "p": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(3..5)", "description": "", "name": "p"}, "a": {"templateType": "anything", "group": "Ungrouped variables", "definition": "c*t-d*v+m", "description": "", "name": "a"}, "m": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "", "name": "m"}}, "ungrouped_variables": ["a", "c", "p1", "d", "m", "n", "p", "b", "t", "v"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "name": "Divide two elements of $\\mathbb{Z}[i]$", "functions": {}, "showQuestionGroupNames": false, "parts": [{"scripts": {}, "gaps": [{"answer": "{m}+{n}i", "vsetrange": [0, 1], "checkingaccuracy": 0.001, "showCorrectAnswer": true, "expectedvariablenames": [], "notallowed": {"message": "

Please input your answers in the form a+b*i where a and b are integers. Do not include decimal numbers.

", "showStrings": false, "partialCredit": 0, "strings": ["."]}, "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "checkvariablenames": false, "type": "jme", "answersimplification": "all,!collectNumbers", "marks": 1, "vsetrangepoints": 5}, {"answer": "{t}+{v}*i", "showCorrectAnswer": true, "vsetrange": [0, 1], "checkingaccuracy": 0.001, "checkvariablenames": false, "expectedvariablenames": [], "showpreview": true, "checkingtype": "absdiff", "scripts": {}, "type": "jme", "answersimplification": "all,!collectNumbers", "marks": 1, "vsetrangepoints": 5}], "type": "gapfill", "prompt": "

Remainder $r=\\;$[[0]]

\n

Find $z=c+di$ such that $\\simplify[all,!collectNumbers]{{a}+{b}*i=({c}+{d}*i)*z+r}$

\n

$z=\\;$[[1]]

\n

Please input your answers in the form a+b*i where a and b are integers. Do not include decimal numbers.

", "showCorrectAnswer": true, "marks": 0}], "statement": "

In the Gaussian integer ring $\\mathbb{Z}[i]$ , find the remainder $r=a+bi$, where $a \\gt 0,\\;b \\gt 0$ , on dividing $\\simplify[all,!collectNumbers]{{a}+{b}*i}$ by $\\simplify[all,!collectNumbers]{{c}+{d}*i}$ .

", "tags": ["algebra", "checked2015", "division", "euclidean rings", "factorization in rings", "gaussian integers", "gcd", "gcd in euclidean rings", "MAS2213", "remainders", "rings"], "rulesets": {}, "preamble": {"css": "", "js": ""}, "type": "question", "metadata": {"notes": "

16/01/2013:

\n

Based on iassess questions.

", "licence": "Creative Commons Attribution 4.0 International", "description": "

In the Gaussian integer ring $\\mathbb{Z}[i]$ , find the remainder $r=r_1+r_2i$, where $a \\gt 0,\\;b \\gt 0$ , on dividing $a+bi$ by $c+di$ .

"}, "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "

We have:

\n

\\[\\begin{align}\\simplify[all,!collectNumbers]{({a} + {b} * i) / ({c} + {d} * i)}& = \\simplify[all,!collectNumbers]{(({a} + {b} * i) * ({c} + { -d} * i)) / (({c} + {d} * i) * ({c} + { -d} * i))}\\\\& = \\simplify[all,!collectNumbers]{{a * c + b * d} / {c ^ 2 + d ^ 2} + ({b * c -(a * d)} / {c ^ 2 + d ^ 2}) * i}\\\\&=\\simplify[all,!collectNumbers]{{(a * c + b * d) / (c ^ 2 + d ^ 2)} + {(b * c -(a * d)) / (c ^ 2 + d ^ 2)} * i}\\\\& \\approx  \\simplify[all,!collectNumbers]{{t} + {v}* i}\\end{align}\\]

\n

on taking the nearest integer values.

\n

Taking $z= \\simplify[all,!collectNumbers]{{t} + {v}* i}$ and on calculating we find:

\n

\\[\\simplify[all,!collectNumbers]{{a} + {b} * i = ({c} + {d} * i) * ({t} + {v} * i) + {m} + {n} * i}\\]

\n

So the remainder is $r=\\simplify{{m}+{n}*i}$.

\n

Note that: \\[N(r) = \\simplify{{m ^ 2 + n ^ 2}} \\lt \\simplify[all,!collectNumbers]{N({c} + {d} * i) = {c ^ 2 + d ^ 2}}.\\]

", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}]}