// Numbas version: exam_results_page_options {"name": "1.3.4. Task: Factorise 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "1.3.4. Task: Factorise 1", "tags": [], "metadata": {"description": "

Factorise a+bk where a and b are non-coprime integers, and k is a letter. Part of HELM Book 1.3.4

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Factorise $\\var{ca}+\\var{cb}\\var{cvar}$

", "advice": "

$\\var{ca}$ and $\\var{cb}\\var{cvar}$ share a common factor of $\\var{cg}$ which can be factored out.

\n

So $\\var{ca}+\\var{cb}\\var{cvar} = \\var{cans}$

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"alphabet": {"name": "alphabet", "group": "Ungrouped variables", "definition": "shuffle(['a','b','c','d','f','g','h','k','m','n','p','q','r','s','t','u','v','w','x','y','z'])", "description": "", "templateType": "anything", "can_override": false}, "ca,cb": {"name": "ca,cb", "group": "Ungrouped variables", "definition": "repeat(random(1..10)*cn,2)", "description": "", "templateType": "anything", "can_override": false}, "cn": {"name": "cn", "group": "question part a", "definition": "random(2..6)", "description": "", "templateType": "anything", "can_override": false}, "cg": {"name": "cg", "group": "question part a", "definition": "gcd(ca,cb)", "description": "", "templateType": "anything", "can_override": false}, "cvar": {"name": "cvar", "group": "question part a", "definition": "alphabet[20]", "description": "", "templateType": "anything", "can_override": false}, "cans": {"name": "cans", "group": "question part a", "definition": "expression({cg}+\"*(\"+{ca/cg}+\"+\"+{cb/cg}+\"*\"+{cvar}+\")\")", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": "191"}, "ungrouped_variables": ["ca,cb", "alphabet"], "variable_groups": [{"name": "question part a", "variables": ["cvar", "cg", "cn", "cans"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{cans}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "mustmatchpattern": {"pattern": "// a number times...\n$n`? * \n(\n // the constant term: \n // either a number 'a', \n // or 'a' is implicitly zero if no constant term is given\n ($n;a `| $z;a:0) \n \n + `+-\n \n // the x term:\n // either a number 'b' times x,\n // or x on its own, and 'b' is implicitly 1\n ($n;b * $v `| $v;b:1)\n)\n\n// a and b must be coprime\n`where\n\n(gcd(a,b)=1)", "partialCredit": 0, "message": "", "nameToCompare": ""}, "valuegenerators": []}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}