// Numbas version: finer_feedback_settings {"name": "Sequences 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"matrix": ["0", "1", 0], "displayColumns": 0, "type": "1_n_2", "distractors": ["", "", ""], "displayType": "radiogroup", "prompt": "
Is this sequence:
", "showFeedbackIcon": true, "unitTests": [], "minMarks": 0, "showCellAnswerState": true, "extendBaseMarkingAlgorithm": true, "shuffleChoices": false, "variableReplacements": [], "showCorrectAnswer": true, "maxMarks": 0, "variableReplacementStrategy": "originalfirst", "scripts": {}, "customMarkingAlgorithm": "", "choices": ["arithmetic", "geometric", "neither"], "marks": 0}, {"variableReplacements": [], "type": "gapfill", "customMarkingAlgorithm": "", "prompt": "Given the following recurrence relation for this sequence, find A and B:
\n\\[C(n)=\\begin{cases} A & if & n=1\\\\ C(n-1) \\times B & if & n\\geq2 \\end{cases}\\]
\nA = [[0]] and B = [[1]]
", "gaps": [{"checkingType": "absdiff", "failureRate": 1, "customMarkingAlgorithm": "", "type": "jme", "checkingAccuracy": 0.001, "answer": "{a}", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "unitTests": [], "vsetRangePoints": 5, "expectedVariableNames": [], "checkVariableNames": false, "variableReplacements": [], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "showPreview": true, "vsetRange": [0, 1], "marks": 1}, {"checkingType": "absdiff", "failureRate": 1, "customMarkingAlgorithm": "", "type": "jme", "checkingAccuracy": 0.001, "answer": "{r}", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "unitTests": [], "vsetRangePoints": 5, "expectedVariableNames": [], "checkVariableNames": false, "variableReplacements": [], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "showPreview": true, "vsetRange": [0, 1], "marks": 1}], "unitTests": [], "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "sortAnswers": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "showFeedbackIcon": true, "marks": 0}, {"variableReplacements": [], "type": "gapfill", "customMarkingAlgorithm": "", "prompt": "What is the sum of the first $\\var{n}$ terms of the sequence? [[0]]
", "gaps": [{"checkingType": "absdiff", "failureRate": 1, "customMarkingAlgorithm": "", "type": "jme", "checkingAccuracy": 0.001, "answer": "{a}(1-{r}^{n})/(1-{r})", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "unitTests": [], "vsetRangePoints": 5, "expectedVariableNames": [], "checkVariableNames": false, "variableReplacements": [], "showCorrectAnswer": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "showPreview": true, "vsetRange": [0, 1], "marks": 1}], "unitTests": [], "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "sortAnswers": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "showFeedbackIcon": true, "marks": 0}], "variable_groups": [], "ungrouped_variables": ["a", "r", "n"], "advice": "", "functions": {}, "name": "Sequences 2", "statement": "Consider the following sequence:
\n\\[\\var{a}, \\var{a*r}, \\var{a*r^2}, \\var{a*r^3}, \\var{a*r^4}, \\var{a*r^5}, \\ldots\\]
", "rulesets": {}, "variables": {"r": {"name": "r", "description": "", "group": "Ungrouped variables", "definition": "random(2..4)", "templateType": "anything"}, "a": {"name": "a", "description": "", "group": "Ungrouped variables", "definition": "random(2..9)", "templateType": "anything"}, "n": {"name": "n", "description": "", "group": "Ungrouped variables", "definition": "random(10..20)", "templateType": "anything"}}, "tags": [], "preamble": {"css": "", "js": ""}, "variablesTest": {"maxRuns": 100, "condition": ""}, "extensions": [], "metadata": {"description": "", "licence": "None specified"}, "type": "question", "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}]}]}], "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}]}