// Numbas version: exam_results_page_options {"name": "Compute the partial sum of an arithmetic sequence", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Compute the partial sum of an arithmetic sequence", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "
Given the first and last terms of a finite arithmetic sequence, calculate the number of elements and then the sum of the sequence.
\nEach part is broken into steps, with the formula given.
"}, "advice": "We are given the arithmetic sequence
\n\\[\\var{m*first_index}, \\var{m*(first_index+1)}, \\var{m*(first_index+1)}, \\ldots, \\var{last_term} \\text{.} \\]
\nLet $n$ be the number of terms in the sequence. Then $a_n = \\var{last_term}$.
\nTo find $n$, we must rearrange the formula for the $n^\\text{th}$ term
\n\\[a_n=a_1+(n-1)d\\text{.}\\]
\nThe first term is $a_1 = \\var{first_term}$ and the common difference is $d = \\var{first_term+m} - \\var{first_term} = \\var{m}$.
\nSo we have
\n\\begin{align}
d&=\\var{m} \\text{,} \\\\
a_1&= \\var{first_term} \\text{,} \\\\
a_n&=\\var{last_term} \\text{.}
\\end{align}
We now substitute these values into the formula for the $n^\\text{th}$ term and rearrange to find $n$.
\n\\begin{align}
\\var{last_term}&=\\var{first_term}+\\var{m}(n-1) \\\\
\\var{last_term}-\\var{first_term}&=\\var{m}(n-1) \\\\
\\frac{\\var{last_term-first_term}}{\\var{m}}&=(n-1) \\\\
n&=\\var{(last_term-first_term)/m}+1 = \\var{num_terms}\\text{.}
\\end{align}
The partial sum of the first $n$ terms of an arithmetic sequence is given by
\n\\[\\sum\\limits_{i=1}^n{a_i}=\\frac{n}{2}(a_1+a_n)\\text{.}\\]
\nWe know from part a) that
\n\\begin{align}
n&= \\var{num_terms} \\text{,} \\\\
a_1&= \\var{first_term} \\text{,} \\\\
a_n&= \\var{last_term} \\text{.}
\\end{align}
We substitute these values into the formula, obtaining
\n\\begin{align}
\\sum\\limits_{i=1}^n{a_i}&=\\frac{n}{2}(a_1+a_n)\\\\
&= \\frac{\\var{num_terms}}{2}(\\var{first_term}+\\var{last_term})\\\\
&= \\simplify[]{ ({num_terms}*({first_term+last_term}))/2} \\\\
&= \\var{partial_sum} \\text{.}
\\end{align}
You are given the following arithmetic sequence:
\n\\[\\var{m*first_index}, \\var{m*(first_index+1)}, \\var{m*(first_index+2)}, \\ldots, \\var{last_term}.\\]
", "variable_groups": [], "preamble": {"css": "", "js": ""}, "variables": {"num_terms": {"templateType": "anything", "name": "num_terms", "description": "The number of terms in the sequence.
", "group": "Ungrouped variables", "definition": "random(11..30)"}, "last_term": {"templateType": "anything", "name": "last_term", "description": "The last term in the sequence.
", "group": "Ungrouped variables", "definition": "m*last_index"}, "first_term": {"templateType": "anything", "name": "first_term", "description": "The first term in the sequence.
", "group": "Ungrouped variables", "definition": "m*first_index"}, "first_index": {"templateType": "anything", "name": "first_index", "description": "The sequence shown is a subsequence of the infinite sequence $a_i = m \\times i$.
\nThis is the index of the first term shown.
", "group": "Ungrouped variables", "definition": "random(6..14)"}, "last_index": {"templateType": "anything", "name": "last_index", "description": "The sequence shown is a subsequence of the infinite sequence $a_i = m \\times i$.
\nThis is the index of the last term shown.
", "group": "Ungrouped variables", "definition": "first_index+num_terms-1"}, "m": {"templateType": "anything", "name": "m", "description": "Common difference between terms
", "group": "Ungrouped variables", "definition": "random(2..10)"}, "partial_sum": {"templateType": "anything", "name": "partial_sum", "description": "Sum of the terms in the sequence.
", "group": "Ungrouped variables", "definition": "num_terms*(first_term+last_term)/2"}}, "tags": ["arithmetic sequences", "Arithmetic sequences", "Arithmetic Sequences", "common difference", "partial sums", "sequences", "taxonomy", "term number"], "parts": [{"variableReplacements": [], "showFeedbackIcon": true, "prompt": "How many terms are there in this sequence?
\n$n =$ [[0]]
", "steps": [{"variableReplacements": [], "showFeedbackIcon": true, "prompt": "The formula for the $n^\\text{th}$ term in an arithmetic sequence is
\n\\[a_n=a_1+(n-1)d\\text{,}\\]
\nwhere
\nFor this arithmetic sequence, what is the value of $a_1$?
", "allowFractions": false, "showCorrectAnswer": true, "mustBeReduced": false, "scripts": {}, "marks": "0.2"}, {"variableReplacements": [], "minValue": "m", "type": "numberentry", "maxValue": "m", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "correctAnswerFraction": false, "mustBeReducedPC": 0, "showFeedbackIcon": true, "prompt": "What is the value of $d$?
", "allowFractions": false, "showCorrectAnswer": true, "mustBeReduced": false, "scripts": {}, "marks": "0.2"}], "showCorrectAnswer": true, "gaps": [{"variableReplacements": [], "minValue": "num_terms", "type": "numberentry", "maxValue": "num_terms", "variableReplacementStrategy": "originalfirst", "mustBeReduced": false, "correctAnswerStyle": "plain", "correctAnswerFraction": false, "mustBeReducedPC": 0, "showFeedbackIcon": true, "notationStyles": ["plain", "en", "si-en"], "allowFractions": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1}], "type": "gapfill", "marks": 0, "stepsPenalty": 0, "variableReplacementStrategy": "originalfirst", "scripts": {}}, {"variableReplacements": [], "showFeedbackIcon": true, "prompt": "Find the sum of the sequence up to and including the term $\\var{last_term}$.
\n[[0]]
", "steps": [{"variableReplacements": [], "showFeedbackIcon": true, "prompt": "The sum of an arithmetic sequence $a_1, a_2, \\ldots, a_n$ is calculated using the formula
\n\\[ \\sum\\limits_{i=1}^n{a_i}=\\frac{n}{2}(a_1+a_n) \\]
\nwhere
\n