// Numbas version: exam_results_page_options {"name": "Factorising: Common factor", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": [], "name": "Factorising: Common factor", "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/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}