// Numbas version: exam_results_page_options {"name": "Ugur's copy of Write down and apply the formula for an arithmetic sequence.", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Ugur's copy of Write down and apply the formula for an arithmetic sequence.", "tags": [], "metadata": {"description": "

Given the first few terms of an arithmetic sequence, write down its formula, then find a couple of particular terms.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

In this question, consider the sequence

\n

\\[ a = \\var{a1}, \\; \\var{a1+d}, \\; \\var{a1+d*2}, \\; \\var{a1+d*3}, \\; \\ldots \\]

\n

A helpful person has drawn out a table of the terms so far.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\boldsymbol{n}$$1$$2$$3$$4$$\\ldots$
$\\boldsymbol{a_n}$$\\var{a1}$$\\var{a1+d}$$\\var{a1+2d}$$\\var{a1+3d}$$\\ldots$
", "advice": "

The formula for the $n^\\text{th}$ term, $a_n$, of an arithmetic sequence is

\n

\\[ a_n=a_1+(n-1)d \\text{.} \\]

\n

$a_1$ is the first term, and $d$ is the common difference between adjacent terms.

\n

a)

\n

In the given sequence, the common difference is $\\var{a1+d} - \\var{a1} = \\var{d}$, and the first term is $\\var{a1}$.

\n

So, the formula for this sequence is

\n

\\[ a_n = \\var{a1} + (n-1) \\times \\var{d} \\text{.} \\]

\n

b)

\n

\\[ a_\\var{small} = \\var{a1} + (\\var{small}-1) \\times \\var{d} = \\var{a1+(small-1)*d} \\text{.} \\]

\n

c)

\n

\\[ a_\\var{large} = \\var{a1} + (\\var{large}-1) \\times \\var{d} = \\var{a1+(large-1)*d} \\text{.} \\]

\n

d) 

\n

\\[S_n = \\frac{n(a_1 + a_n)}{2}\\] 

\n

Plug in the values to get $S_{\\var{medium}} = \\frac{\\var{medium}(\\var{a1} + \\var{amed})}{2} = \\var{ansd} $

\n

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"large": {"name": "large", "group": "Ungrouped variables", "definition": "random(10..50#5)*10", "description": "

A large index to compute

", "templateType": "anything", "can_override": false}, "small": {"name": "small", "group": "Ungrouped variables", "definition": "random(6..10)", "description": "

A small index to compute

", "templateType": "anything", "can_override": false}, "a1": {"name": "a1", "group": "Ungrouped variables", "definition": "random(1..90)", "description": "

The first term in the sequence

", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(3..13 except 10)", "description": "", "templateType": "anything", "can_override": false}, "medium": {"name": "medium", "group": "Ungrouped variables", "definition": "random(10..20)", "description": "", "templateType": "anything", "can_override": false}, "amed": {"name": "amed", "group": "Ungrouped variables", "definition": "a1+(medium-1)*d", "description": "", "templateType": "anything", "can_override": false}, "ansd": {"name": "ansd", "group": "Ungrouped variables", "definition": "(medium*(a1 + amed))/2", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a1", "d", "small", "large", "medium", "amed", "ansd"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Write out an expression for $a_n$, the $n^{\\text{th}}$ term of the sequence, in terms of $n$.

\n

$a_n =$ [[0]]

\n

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{a1}+(n-1){d}", "answerSimplification": "basic", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "n", "value": ""}]}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

\n

Find the $\\var{small}^{\\text{th}}$ term

\n

$a_{\\var{small}} = $ [[0]]

\n

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "a1+(small-1)*d", "maxValue": "a1+(small-1)*d", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Find the $\\var{large}^{\\text{th}}$ term

\n

$a_{\\var{large}} = $[[0]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "a1+(large-1)*d", "maxValue": "a1+(large-1)*d", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Find the sum of first $\\var{medium}$ terms.

\n

$S_{\\var{medium}} =$ [[0]]

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "gap sum", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "({medium}*({a1} + {amed}))/2", "maxValue": "({medium}*({a1} + {amed}))/2", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Ugur Efem", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/14200/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Ugur Efem", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/14200/"}]}