// Numbas version: finer_feedback_settings {"name": "Simple Factorial: x!/(y!*z!)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"showQuestionGroupNames": false, "name": "Simple Factorial: x!/(y!*z!)", "metadata": {"notes": "", "licence": "Creative Commons Attribution 4.0 International", "description": "

Simplify fractions involving the products of factorials.

"}, "statement": "

Calculate the following factorials.

", "functions": {"show_factorial": {"type": "string", "parameters": [["n", "number"]], "language": "javascript", "definition": "var out = [];\nfor(var i=n;i>0;i--) {\n out.push(i);\n}\nvar s = new Numbas.jme.types.TString(out.join(' \\\\times '));\ns.latex = true;\nreturn s;"}}, "ungrouped_variables": ["a1", "a2", "a3", "b1", "b2", "b3"], "rulesets": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "variables": {"a2": {"templateType": "anything", "name": "a2", "description": "", "group": "Ungrouped variables", "definition": "random(2..15)"}, "b3": {"templateType": "anything", "name": "b3", "description": "", "group": "Ungrouped variables", "definition": "random(2..min(b2,5))"}, "a1": {"templateType": "anything", "name": "a1", "description": "", "group": "Ungrouped variables", "definition": "a2+random(3..5)"}, "b2": {"templateType": "anything", "name": "b2", "description": "", "group": "Ungrouped variables", "definition": "random(2..15)"}, "a3": {"templateType": "anything", "name": "a3", "description": "", "group": "Ungrouped variables", "definition": "random(2..min(a2,5))"}, "b1": {"templateType": "anything", "name": "b1", "description": "", "group": "Ungrouped variables", "definition": "b2+random(2..5)"}}, "preamble": {"js": "", "css": ""}, "tags": [], "variable_groups": [], "type": "question", "advice": "

a)

\n

\\[ \\frac{\\var{a1}!}{\\var{a2}! \\times \\var{a3}!} = \\simplify[]{ {fact(a1)}/({fact(a2)}*{fact(a3)})} = \\simplify[fractionnumbers]{{fact(a1)/(fact(a2)*fact(a3))}} \\]

\n

b)

\n

\\[ \\frac{\\var{b1}!}{\\var{b2}! \\times \\var{b3}!} = \\simplify[]{ {fact(b1)}/({fact(b2)}*{fact(b3)})} = \\simplify[fractionnumbers]{{fact(b1)/(fact(b2)*fact(b3))}} \\]

", "question_groups": [{"pickQuestions": 0, "name": "", "pickingStrategy": "all-ordered", "questions": []}], "parts": [{"correctAnswerFraction": true, "maxValue": "fact(a1)/(fact(a2)*fact(a3))", "showCorrectAnswer": true, "marks": 1, "prompt": "

$\\dfrac{\\var{a1}!}{\\var{a2}!\\times\\var{a3}!}$

", "variableReplacementStrategy": "originalfirst", "scripts": {}, "showPrecisionHint": false, "variableReplacements": [], "type": "numberentry", "allowFractions": true, "minValue": "fact(a1)/(fact(a2)*fact(a3))"}, {"correctAnswerFraction": true, "maxValue": "fact(b1)/(fact(b2)*fact(b3))", "showCorrectAnswer": true, "marks": 1, "prompt": "

$\\dfrac{\\var{b1}!}{\\var{b2}!\\times\\var{b3}!}$

", "variableReplacementStrategy": "originalfirst", "scripts": {}, "showPrecisionHint": false, "variableReplacements": [], "type": "numberentry", "allowFractions": true, "minValue": "fact(b1)/(fact(b2)*fact(b3))"}], "contributors": [{"name": "Katie Dexter", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/553/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}], "resources": []}]}], "contributors": [{"name": "Katie Dexter", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/553/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}