// Numbas version: finer_feedback_settings {"name": "Sequences 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["a", "b", "n"], "rulesets": {}, "preamble": {"js": "", "css": ""}, "statement": "
Consider the following sequence:
\n\\[\\var{a}, \\var{b}, \\var{a+b}, \\var{a+2b}, \\var{2a+3b}, \\var{3a+5b}, \\ldots\\]
", "metadata": {"description": "", "licence": "None specified"}, "name": "Sequences 3", "variable_groups": [], "tags": [], "functions": {}, "advice": "", "variables": {"n": {"group": "Ungrouped variables", "description": "", "name": "n", "templateType": "anything", "definition": "random(20..30)"}, "b": {"group": "Ungrouped variables", "description": "", "name": "b", "templateType": "anything", "definition": "random(1..7 except a)"}, "a": {"group": "Ungrouped variables", "description": "", "name": "a", "templateType": "anything", "definition": "random(0..7)"}}, "parts": [{"variableReplacements": [], "unitTests": [], "minMarks": 0, "extendBaseMarkingAlgorithm": true, "prompt": "Is this sequence:
", "choices": ["arithmetic", "geometric", "neither"], "displayType": "radiogroup", "showCellAnswerState": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "type": "1_n_2", "marks": 0, "customMarkingAlgorithm": "", "matrix": ["0", "0", "1"], "distractors": ["", "", ""], "displayColumns": 0, "maxMarks": 0, "shuffleChoices": false}, {"variableReplacements": [], "extendBaseMarkingAlgorithm": true, "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\\\\ C(n-1)+ D & if & n\\geq3 \\end{cases}\\]
\nA = [[0]] and B = [[1]] and D = C( [[2]]).
", "showFeedbackIcon": true, "unitTests": [], "gaps": [{"variableReplacements": [], "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "unitTests": [], "showFeedbackIcon": true, "checkVariableNames": false, "marks": 1, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "type": "jme", "failureRate": 1, "customMarkingAlgorithm": "", "checkingType": "absdiff", "answer": "{a}", "vsetRangePoints": 5, "showPreview": true, "vsetRange": [0, 1], "expectedVariableNames": []}, {"variableReplacements": [], "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "unitTests": [], "showFeedbackIcon": true, "checkVariableNames": false, "marks": 1, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "type": "jme", "failureRate": 1, "customMarkingAlgorithm": "", "checkingType": "absdiff", "answer": "{b}", "vsetRangePoints": 5, "showPreview": true, "vsetRange": [0, 1], "expectedVariableNames": []}, {"variableReplacements": [], "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "unitTests": [], "showFeedbackIcon": true, "checkVariableNames": false, "marks": 1, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "type": "jme", "failureRate": 1, "customMarkingAlgorithm": "", "checkingType": "absdiff", "answer": "n-2", "vsetRangePoints": 5, "showPreview": true, "vsetRange": [0, 1], "expectedVariableNames": []}], "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "marks": 0, "customMarkingAlgorithm": "", "scripts": {}, "sortAnswers": false}], "extensions": [], "variablesTest": {"condition": "", "maxRuns": 100}, "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/"}]}