// Numbas version: exam_results_page_options {"name": "Factors (Algebraic)", "duration": 0, "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "allQuestions": true, "shuffleQuestions": false, "percentPass": 0, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "pickQuestions": 0, "navigation": {"onleave": {"action": "none", "message": ""}, "reverse": true, "allowregen": true, "showresultspage": "oncompletion", "preventleave": true, "browse": true, "showfrontpage": true}, "feedback": {"showtotalmark": true, "advicethreshold": 0, "showanswerstate": true, "showactualmark": true, "allowrevealanswer": true}, "type": "exam", "questions": [], "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": [{"name": "Factorisation: finding factors", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "functions": {}, "ungrouped_variables": ["prime", "primepower", "p2pp", "xpower", "ypower", "xconstant", "xconstantpower", "failconstant", "failsafepower", "failsafepowerm1", "failsafepowerp1", "xcpowerm1", "xcpowerp1", "choices", "marks"], "tags": ["algebra", "common factors", "factorisation", "Factorisation", "factorising", "factors", "Factors"], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"maxAnswers": 0, "displayColumns": 0, "prompt": "

Which of the following are factors of $\\simplify{{prime^primepower}x^{xpower}y^{ypower}(x+{xconstant})^{xconstantpower} (z+{failconstant})^{failsafepower}}$?

", "matrix": "marks", "minAnswers": 0, "variableReplacements": [], "choices": "choices", "variableReplacementStrategy": "originalfirst", "displayType": "checkbox", "maxMarks": 0, "scripts": {}, "warningType": "none", "marks": 0, "showCorrectAnswer": true, "type": "m_n_2", "shuffleChoices": true, "minMarks": 0}, {"distractors": ["", "", ""], "prompt": "

Suppose that $\\var{factor1}${factor2} is a factor of an expression. What can be said of $-\\var{factor1}${factor2}?

", "matrix": ["1", 0, 0], "shuffleChoices": false, "variableReplacements": [], "choices": ["

It is also a factor.

", "

It is not necessarily a factor.

", "

It is definitely not a factor.

"], "variableReplacementStrategy": "originalfirst", "displayType": "radiogroup", "maxMarks": 0, "marks": 0, "scripts": {}, "displayColumns": 0, "showCorrectAnswer": true, "type": "1_n_2", "minMarks": 0}], "statement": "", "variable_groups": [{"variables": ["factor1", "factor2"], "name": "b"}], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"prime": {"definition": "random(2,3,5,7)", "templateType": "anything", "group": "Ungrouped variables", "name": "prime", "description": ""}, "factor1": {"definition": "random(2..144)", "templateType": "anything", "group": "b", "name": "factor1", "description": ""}, "factor2": {"definition": "random('\\$x\\$','\\$x^2\\$','\\$xy\\$','\\$x^2y\\$','\\$xy^2\\$','\\$x^2y^2\\$','\\$(x+1)\\$','\\$(y-1)^3\\$')", "templateType": "anything", "group": "b", "name": "factor2", "description": ""}, "failsafepowerp1": {"definition": "failsafepower+1", "templateType": "anything", "group": "Ungrouped variables", "name": "failsafepowerp1", "description": ""}, "xconstantpower": {"definition": "random(0..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "xconstantpower", "description": ""}, "primepower": {"definition": "random(1,2)", "templateType": "anything", "group": "Ungrouped variables", "name": "primepower", "description": ""}, "xcpowerp1": {"definition": "xconstantpower+1", "templateType": "anything", "group": "Ungrouped variables", "name": "xcpowerp1", "description": ""}, "choices": {"definition": "['\\$1\\$','\\$\\\\var{prime}\\$','\\$\\\\var{prime^2}\\$','\\$\\\\simplify{{p2pp}x^{xpower}y^{ypower}(x+{xconstant})^{xconstantpower}(z+{failconstant})^{failsafepower}} \\$']+if(xpower<2 and ypower<2 and xconstantpower<2,['\\$(z+'+failconstant+')^'+failsafepowerm1+'\\$','\\$(z+'+failconstant+')^'+failsafepowerp1+'\\$'],if(xconstantpower>1,['\\$\\\\simplify{(x+{xconstant})^{xcpowerm1}}\\$','\\$(x+'+xconstant+')^'+xcpowerp1+'\\$'],['\\$(x+'+xconstant+')^'+xcpowerp1+'\\$'])+if(xpower>=1 and ypower>=1 and (xpower>2 or ypower>2),['\\$xy\\$','\\$x^2y^2\\$','\\$x^2y\\$'],['\\$x\\$','\\$y\\$'])+if(primepower>=1 and xconstantpower>=1, ['\\$\\\\simplify{{prime} (x+{xconstant})^{xconstantpower}}\\$'],[]))", "templateType": "anything", "group": "Ungrouped variables", "name": "choices", "description": "

$\\simplify{{prime^primepower}x^{xpower}y^{ypower}(x+{xconstant})^{xconstantpower} (z+{failconstant})^{failsafepower}}$

"}, "ypower": {"definition": "random(0..3)", "templateType": "anything", "group": "Ungrouped variables", "name": "ypower", "description": ""}, "failsafepowerm1": {"definition": "failsafepower-1", "templateType": "anything", "group": "Ungrouped variables", "name": "failsafepowerm1", "description": ""}, "xcpowerm1": {"definition": "xconstantpower-1", "templateType": "anything", "group": "Ungrouped variables", "name": "xcpowerm1", "description": ""}, "p2pp": {"definition": "prime^primepower", "templateType": "anything", "group": "Ungrouped variables", "name": "p2pp", "description": ""}, "marks": {"definition": "[1,if(primepower>=1,1,0),if(primepower>=2,1,0),1]+if(xpower<2 and ypower<2 and xconstantpower<2,[1,0],if(xconstantpower>1,[1,0],[0])+if(xpower>=1 and ypower>=1 and (xpower>2 or ypower>2),[1,if(xpower>=2 and ypower>=2,1,0),if(xpower>=2,1,0)],[if(xpower>=1,1,0),if(ypower>=1,1,0)])+if(primepower>=1 and xconstantpower>=1, [1],[]))", "templateType": "anything", "group": "Ungrouped variables", "name": "marks", "description": ""}, "xconstant": {"definition": "random(1..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "xconstant", "description": ""}, "failsafepower": {"definition": "if(xpower<2 and ypower<2 and xconstantpower<2,3,0 )", "templateType": "anything", "group": "Ungrouped variables", "name": "failsafepower", "description": ""}, "failconstant": {"definition": "random(1..12 except xconstant)", "templateType": "anything", "group": "Ungrouped variables", "name": "failconstant", "description": ""}, "xpower": {"definition": "random(0..3)", "templateType": "anything", "group": "Ungrouped variables", "name": "xpower", "description": ""}}, "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Factorising: Common factor", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "functions": {}, "ungrouped_variables": [], "tags": ["algebra", "common factor", "distributive law", "factor", "factorisation", "Factorisation", "factorising"], "advice": "", "rulesets": {}, "parts": [{"stepsPenalty": "1", "prompt": "

The expression $\\var{pmult*pxcoeff}x+\\var{pconstant*pmult}$ is a sum and can be factorised (written as a product) by finding the largest common factor:

\n

 $\\var{pmult*pxcoeff}x+\\var{pconstant*pmult} = $ [[0]] $\\large($ [[1]] $\\large)$

\n

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{pmult}", "minValue": "{pmult}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "{pxcoeff}x+{pconstant}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "steps": [{"prompt": "

We put the common factor out the front of a set of brackets and put the 'left-overs' inside.

\n

\n

The (largest) common factor of  $\\var{pmult*pxcoeff}x+\\var{pconstant*pmult}$ is $\\var{pmult}$. Once we remove that factor from each term in $\\var{pmult*pxcoeff}x+\\var{pconstant*pmult}$ we are left with $\\var{pxcoeff}x+\\var{pconstant}$.

\n

That means $\\var{pmult*pxcoeff}x+\\var{pconstant*pmult}= \\var{pmult}(\\var{pxcoeff}x+\\var{pconstant})$.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}, {"stepsPenalty": "1", "prompt": "

Factorise $\\simplify{{bp1}a+{bp2}}$

\n

 [[0]] $\\large($ [[1]] $\\large)$

\n

\n

\n

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{cf}", "minValue": "{cf}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "{bx}a+{bc}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "steps": [{"prompt": "

We put the common factor out the front of a set of brackets and put the 'left-overs' inside.

\n

\n

The (largest) common factor of $\\simplify{{bp1}a+{bp2}}$ is $\\var{cf}$. Once we remove that factor from each term in $\\simplify{{bp1}a+{bp2}}$ we are left with $\\var{bx}a+\\var{bc}$.

\n

That means $\\simplify{{bp1}a+{bp2}}$ is $\\var{cf} = \\var{cf}(\\var{bx}a+\\var{bc})$.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}, {"stepsPenalty": "1", "prompt": "

Factorise $\\simplify{{ct1}x+{ct2}y+{ct3}}$

\n

 [[0]] $\\large($ [[1]] $\\large)$

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{cmult}", "minValue": "{cmult}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"vsetrangepoints": 5, "expectedvariablenames": ["x", "y"], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "{cx}x+{cy}y+{cc}", "marks": 1, "checkvariablenames": true, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "steps": [{"prompt": "

We put the common factor out the front of a set of brackets and put the 'left-overs' inside.

\n

\n

The (largest) common factor of $\\simplify{{ct1}x+{ct2}y+{ct3}}$ is $\\var{cmult}$. Once we remove that factor from each term in $\\simplify{{ct1}x+{ct2}y+{ct3}}$ we are left with $\\simplify{{cx}x+{cy}y+{cc}}$.

\n

That means $\\simplify{{ct1}x+{ct2}y+{ct3}} = \\simplify{{cmult}({ct1}x+{ct2}y+{ct3})}$.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}], "statement": "", "variable_groups": [{"variables": ["pmult", "pxcoeff", "pconstant", "primes"], "name": "part a"}, {"variables": ["nmult", "nxcoeff", "nconstant", "bp2", "bp1", "cf", "bx", "bc"], "name": "part b"}, {"variables": ["cprimes", "cx", "cy", "cc", "cmult", "ct1", "ct2", "ct3"], "name": "part c"}], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"pxcoeff": {"definition": "primes[1]", "templateType": "anything", "group": "part a", "name": "pxcoeff", "description": ""}, "cmult": {"definition": "random(2..10)", "templateType": "anything", "group": "part c", "name": "cmult", "description": ""}, "ct1": {"definition": "cx*cmult", "templateType": "anything", "group": "part c", "name": "ct1", "description": ""}, "ct2": {"definition": "cmult*cy", "templateType": "anything", "group": "part c", "name": "ct2", "description": ""}, "nconstant": {"definition": "random(2..12)", "templateType": "anything", "group": "part b", "name": "nconstant", "description": ""}, "cc": {"definition": "-cprimes[2]", "templateType": "anything", "group": "part c", "name": "cc", "description": ""}, "nxcoeff": {"definition": "random(2..12)", "templateType": "anything", "group": "part b", "name": "nxcoeff", "description": ""}, "ct3": {"definition": "cmult*cc", "templateType": "anything", "group": "part c", "name": "ct3", "description": ""}, "cf": {"definition": "-gcd(bp1,bp2)", "templateType": "anything", "group": "part b", "name": "cf", "description": ""}, "bc": {"definition": "bp2/cf", "templateType": "anything", "group": "part b", "name": "bc", "description": ""}, "pmult": {"definition": "primes[0]", "templateType": "anything", "group": "part a", "name": "pmult", "description": ""}, "bp1": {"definition": "nmult*nxcoeff", "templateType": "anything", "group": "part b", "name": "bp1", "description": ""}, "cy": {"definition": "cprimes[1]", "templateType": "anything", "group": "part c", "name": "cy", "description": ""}, "bp2": {"definition": "nmult*nconstant", "templateType": "anything", "group": "part b", "name": "bp2", "description": ""}, "pconstant": {"definition": "primes[2]", "templateType": "anything", "group": "part a", "name": "pconstant", "description": ""}, "cprimes": {"definition": "shuffle([2,3,5,7,11])[0..3]", "templateType": "anything", "group": "part c", "name": "cprimes", "description": ""}, "cx": {"definition": "cprimes[0]", "templateType": "anything", "group": "part c", "name": "cx", "description": ""}, "bx": {"definition": "bp1/cf", "templateType": "anything", "group": "part b", "name": "bx", "description": ""}, "primes": {"definition": "shuffle([2,3,5,7,11])[0..3]", "templateType": "anything", "group": "part a", "name": "primes", "description": ""}, "nmult": {"definition": "random(-12..-2)", "templateType": "anything", "group": "part b", "name": "nmult", "description": ""}}, "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}], "extensions": [], "custom_part_types": [], "resources": []}