// Numbas version: exam_results_page_options {"name": "Simon's copy of Finding the formula for the $n^{\\text{th}}$ term of linear sequences", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"description": "
Given the first three terms of a sequence, give a formula for the $n^\\text{th}$ term.
\nIn the first sequence, $d$ is positive. In the second sequence, $d$ is negative.
", "licence": "Creative Commons Attribution 4.0 International"}, "preamble": {"css": "", "js": ""}, "advice": "Both of these sequences are linear, or arithmetic, sequences. To find formulas for these sequences we need to identify their first terms and common differences.
\nThe formula for the $n^\\text{th}$ term of an arithmetic sequence is
\n\\[ a_n = a_1 + (n-1)d \\text{.} \\]
\n$a_1$ is the first term and $d$ the common difference between consecutive terms, which we need to identify.
\nWe can find these by drawing up a table of $a_n$ against $n$, and the differences between consecutive terms.
\n$n$ | \n1 | \n2 | \n3 | \n
$a_n$ | \n$\\pmb{\\var{m[1]*2}}$ | \n$\\var{m[1]*3}$ | \n$\\var{m[1]*4}$ | \n
First differences | \n\n | $\\pmb{\\var{m[1]}}$ | \n$\\pmb{\\var{m[1]}}$ | \n
The first term and common difference have been highlighted in bold; we can use these to write the formula for the sequence.
\n\\begin{align}
a_n &= a_1+(n-1)d \\\\
&= \\var{m[1]*2}+(n-1)\\times\\var{m[1]} \\\\
&= \\var{m[1]}n + \\var{m[1]}\\text{.}
\\end{align}
Similar to the part a), we can identify $a_1$ and $d$ for this sequence by drawing a table of $a_n$ against $n$.
\n$n$ | \n1 | \n2 | \n3 | \n
$a_n$ | \n$\\pmb{\\var{m[2]*8+2}}$ | \n$\\simplify{{m[2]}*7+2}$ | \n$\\simplify{{m[2]}*6+2}$ | \n
First differences | \n\n | $\\pmb{\\var{-m[2]}}$ | \n$\\pmb{\\var{-m[2]}}$ | \n
The first term and common difference have been highlighted in bold; we can use these to form the formula for the sequence.
\n\\begin{align}
a_n &=a_1+(n-1)d \\\\
&=\\var{m[2]*8+2}+(n-1)\\times\\var{-m[2]} \\\\
&=-\\var{m[2]}n + \\var{m[2]*9+2}\\text{.}
\\end{align}
$\\var{m[1]*2}, \\var{m[1]*3}, \\var{m[1]*4}, \\ldots$
\n$n^\\text{th}$ term = [[0]]
", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "scripts": {}, "steps": [{"prompt": "The formula for the $n^{\\text{th}}$ term of an arithmetic sequence is
\n\\[a_n = a_1 + (n-1)d, \\]
\nwhere
\nFor this arithmetic sequence, what is $a_1$?
", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "scripts": {}, "minValue": "{m[1]*2}", "maxValue": "{m[1]*2}", "mustBeReducedPC": 0, "variableReplacementStrategy": "originalfirst"}, {"notationStyles": ["plain", "en", "si-en"], "marks": 1, "correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacements": [], "unitTests": [], "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "correctAnswerFraction": false, "allowFractions": false, "type": "numberentry", "prompt": "What is $d$?
", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "scripts": {}, "minValue": "{m[1]}", "maxValue": "{m[1]}", "mustBeReducedPC": 0, "variableReplacementStrategy": "originalfirst"}], "variableReplacementStrategy": "originalfirst"}, {"sortAnswers": false, "stepsPenalty": 0, "marks": 0, "variableReplacements": [], "unitTests": [], "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "gaps": [{"failureRate": 1, "vsetRange": [0, 1], "marks": "3", "checkVariableNames": false, "variableReplacements": [], "unitTests": [], "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "checkingType": "absdiff", "vsetRangePoints": 5, "expectedVariableNames": [], "type": "jme", "variableReplacementStrategy": "originalfirst", "showPreview": true, "showFeedbackIcon": true, "scripts": {}, "answer": "-{m[2]}*n+{m[2]*9+2}", "checkingAccuracy": 0.001, "customMarkingAlgorithm": ""}], "type": "gapfill", "prompt": "$\\var{m[2]*8+2}, \\var{m[2]*7+2}, \\var{m[2]*6+2}...$
\n$n^\\text{th}$ term = [[0]]
", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "scripts": {}, "steps": [{"prompt": "The formula for the $n^{\\text{th}}$ term of an arithmetic sequence is
\n\\[a_n = a_1 + (n-1)d, \\]
\nwhere
\nFor this arithmetic sequence, what is $a_1$?
", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "scripts": {}, "minValue": "{m[2]*8+2}", "maxValue": "{m[2]*8+2}", "mustBeReducedPC": 0, "variableReplacementStrategy": "originalfirst"}, {"notationStyles": ["plain", "en", "si-en"], "marks": 1, "correctAnswerStyle": "plain", "mustBeReduced": false, "variableReplacements": [], "unitTests": [], "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "correctAnswerFraction": false, "allowFractions": false, "type": "numberentry", "prompt": "What is $d$?
", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "scripts": {}, "minValue": "{-m[2]}", "maxValue": "{-m[2]}", "mustBeReducedPC": 0, "variableReplacementStrategy": "originalfirst"}], "variableReplacementStrategy": "originalfirst"}], "rulesets": {}, "ungrouped_variables": ["m", "n", "c", "ci", "ni", "b"], "extensions": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"n": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "repeat(random(1..4),7)", "name": "n"}, "ni": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "repeat(random(19..40),10)", "name": "ni"}, "ci": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "repeat(random(6..20),10)", "name": "ci"}, "c": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "repeat(random(3..13 except[10]),8)", "name": "c"}, "m": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "repeat(random(2..10),5)", "name": "m"}, "b": {"templateType": "anything", "description": "", "group": "Ungrouped variables", "definition": "repeat(random(2..4), 5)", "name": "b"}}, "name": "Simon's copy of Finding the formula for the $n^{\\text{th}}$ term of linear sequences", "variable_groups": [], "statement": "A linear (or arithmetic) sequence is a series of numbers that either increases or decreases by a constant amount at each step.
\nFind formulas for the $n^{\\text{th}}$ term for each of the following linear sequences, where the values for $n=1\\text{,}2\\text{,}3$ are given:
", "type": "question", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Hannah Aldous", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1594/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Hannah Aldous", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1594/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}