// Numbas version: finer_feedback_settings {"name": "Sequences 4", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"licence": "None specified", "description": ""}, "variables": {"b": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "definition": "random(2..7 except a)", "name": "b"}, "n": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "definition": "random(20..30)", "name": "n"}, "a": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "definition": "random(2..7)", "name": "a"}}, "parts": [{"matrix": [0, 0, "1"], "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "unitTests": [], "minMarks": 0, "maxMarks": 0, "distractors": ["", "", ""], "prompt": "

Is this sequence: 

", "type": "1_n_2", "variableReplacementStrategy": "originalfirst", "shuffleChoices": false, "choices": ["arithmetic", "geometric", "neither"], "showFeedbackIcon": true, "scripts": {}, "showCellAnswerState": true, "displayType": "radiogroup", "displayColumns": 0, "marks": 0, "variableReplacements": [], "customMarkingAlgorithm": ""}, {"showCorrectAnswer": true, "unitTests": [], "type": "gapfill", "prompt": "

Given the following recurrence relation for this sequence, find A, B and D:

\n

\\[C(n)=\\begin{cases}  A & if & n=1\\\\ B & if & n=2\\\\ D\\times C(n-2) & if & n\\geq3 \\end{cases}\\]

\n

A = [[0]] and B = [[1]] and D = C(  [[2]]).

", "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "gaps": [{"vsetRangePoints": 5, "checkVariableNames": false, "showCorrectAnswer": true, "unitTests": [], "checkingAccuracy": 0.001, "expectedVariableNames": [], "checkingType": "absdiff", "showPreview": true, "type": "jme", "variableReplacementStrategy": "originalfirst", "failureRate": 1, "vsetRange": [0, 1], "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "answer": "{a}", "marks": 1, "customMarkingAlgorithm": ""}, {"vsetRangePoints": 5, "checkVariableNames": false, "showCorrectAnswer": true, "unitTests": [], "checkingAccuracy": 0.001, "expectedVariableNames": [], "checkingType": "absdiff", "showPreview": true, "type": "jme", "variableReplacementStrategy": "originalfirst", "failureRate": 1, "vsetRange": [0, 1], "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "answer": "{b}", "marks": 1, "customMarkingAlgorithm": ""}, {"vsetRangePoints": 5, "checkVariableNames": false, "showCorrectAnswer": true, "unitTests": [], "checkingAccuracy": 0.001, "expectedVariableNames": [], "checkingType": "absdiff", "showPreview": true, "type": "jme", "variableReplacementStrategy": "originalfirst", "failureRate": 1, "vsetRange": [0, 1], "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "answer": "n-1", "marks": 1, "customMarkingAlgorithm": ""}], "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "marks": 0, "customMarkingAlgorithm": ""}], "name": "Sequences 4", "rulesets": {}, "tags": [], "advice": "", "extensions": [], "variablesTest": {"condition": "", "maxRuns": 100}, "preamble": {"js": "", "css": ""}, "variable_groups": [], "ungrouped_variables": ["a", "b", "n"], "functions": {}, "statement": "

Consider the following sequence:

\n

\\[\\var{a}, \\var{b}, \\var{a*b}, \\var{a*b^2}, \\var{a^2*b^3}, \\var{a^3*b^4}, \\ldots\\]

", "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/"}]}