// Numbas version: exam_results_page_options {"name": "Sequences 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"advice": "", "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "

Consider the following sequence:

\n

\\[\\var{a}, \\var{a+d}, \\var{a+2*d}, \\var{a+3d}, \\var{a+4d}, \\var{a+5d}, \\ldots\\]

", "name": "Sequences 1", "ungrouped_variables": ["a", "d", "n"], "rulesets": {}, "metadata": {"description": "", "licence": "None specified"}, "functions": {}, "variable_groups": [], "tags": [], "variables": {"n": {"description": "", "definition": "random(30..40)", "name": "n", "templateType": "anything", "group": "Ungrouped variables"}, "a": {"description": "", "definition": "random(2..9)", "name": "a", "templateType": "anything", "group": "Ungrouped variables"}, "d": {"description": "", "definition": "random(2..9)", "name": "d", "templateType": "anything", "group": "Ungrouped variables"}}, "parts": [{"variableReplacements": [], "minMarks": 0, "extendBaseMarkingAlgorithm": true, "prompt": "

Is this sequence: 

", "choices": ["arithmetic", "geometric", "neither"], "displayType": "radiogroup", "unitTests": [], "showFeedbackIcon": true, "scripts": {}, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "1_n_2", "marks": 0, "maxMarks": 0, "matrix": ["1", 0, 0], "distractors": ["", "", ""], "displayColumns": 0, "customMarkingAlgorithm": "", "showCellAnswerState": true, "shuffleChoices": false}, {"variableReplacements": [], "extendBaseMarkingAlgorithm": true, "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) + B & if & n\\geq2 \\end{cases}\\]

\n

A = [[0]] and B = [[1]]

", "unitTests": [], "showFeedbackIcon": true, "gaps": [{"variableReplacements": [], "failureRate": 1, "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "unitTests": [], "checkVariableNames": false, "showFeedbackIcon": true, "scripts": {}, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "jme", "marks": 1, "customMarkingAlgorithm": "", "checkingType": "absdiff", "answer": "{a}", "vsetRangePoints": 5, "showPreview": true, "vsetRange": [0, 1], "expectedVariableNames": []}, {"variableReplacements": [], "failureRate": 1, "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "unitTests": [], "checkVariableNames": false, "showFeedbackIcon": true, "scripts": {}, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "jme", "marks": 1, "customMarkingAlgorithm": "", "checkingType": "absdiff", "answer": "{d}", "vsetRangePoints": 5, "showPreview": true, "vsetRange": [0, 1], "expectedVariableNames": []}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill", "marks": 0, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "sortAnswers": false}, {"variableReplacements": [], "extendBaseMarkingAlgorithm": true, "prompt": "

What is the sum of the first $\\var{n}$ terms of the sequence? [[0]]

", "unitTests": [], "showFeedbackIcon": true, "gaps": [{"variableReplacements": [], "failureRate": 1, "extendBaseMarkingAlgorithm": true, "checkingAccuracy": 0.001, "unitTests": [], "checkVariableNames": false, "showFeedbackIcon": true, "scripts": {}, "showCorrectAnswer": false, "variableReplacementStrategy": "originalfirst", "type": "jme", "marks": 1, "customMarkingAlgorithm": "", "checkingType": "absdiff", "answer": "({n}/2)*(2*{a} + ({n}-1)*{d})", "vsetRangePoints": 5, "showPreview": true, "vsetRange": [0, 1], "expectedVariableNames": []}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill", "marks": 0, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "sortAnswers": false}], "extensions": [], "preamble": {"js": "", "css": ""}, "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/"}]}