// Numbas version: exam_results_page_options {"name": "Simon's copy of Number of permutations of a finite set,", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"maxRuns": 100, "condition": ""}, "functions": {}, "advice": "

There are $\\var{a}$ choices for who comes first.

\n

Given we know who comes first, there are $\\var{a-1}$ choices for who comes second.

\n

Given we know who comes first and second, there are $\\var{a-2}$ choices for who comes third. And so on.

\n

So there are $\\var{a}\\times \\var{a-1}\\times \\cdots\\times1=\\var{a}!=\\var{ans}$ ways in which the race can finish.

", "statement": "

Suppose $\\var{a}$ people take part in a race. How many different outcomes does the race have, assuming that there are no ties? This includes all $\\var{a}$ positions.

", "name": "Simon's copy of Number of permutations of a finite set,", "extensions": ["stats"], "variables": {"a": {"group": "Ungrouped variables", "description": "", "name": "a", "definition": "random(5..13)", "templateType": "anything"}, "ans": {"group": "Ungrouped variables", "description": "", "name": "ans", "definition": "factorial(a)", "templateType": "anything"}}, "parts": [{"customMarkingAlgorithm": "", "showCorrectAnswer": true, "gaps": [{"customMarkingAlgorithm": "", "mustBeReducedPC": 0, "showCorrectAnswer": true, "minValue": "ans", "allowFractions": false, "correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacementStrategy": "originalfirst", "maxValue": "ans", "marks": 1, "showFractionHint": true, "showFeedbackIcon": true, "correctAnswerFraction": false, "useCustomName": false, "variableReplacements": [], "customName": "", "scripts": {}, "unitTests": [], "type": "numberentry", "extendBaseMarkingAlgorithm": true, "notationStyles": ["plain", "en", "si-en"]}], "prompt": "

Number of outcomes = ?[[0]]

", "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "marks": 0, "showFeedbackIcon": true, "useCustomName": false, "variableReplacements": [], "customName": "", "scripts": {}, "unitTests": [], "type": "gapfill", "extendBaseMarkingAlgorithm": true}], "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "variable_groups": [], "ungrouped_variables": ["a", "ans"], "tags": [], "preamble": {"js": "", "css": ""}, "rulesets": {}, "type": "question", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}