// Numbas version: exam_results_page_options {"name": "Simon's copy of Arithmetic progression: The sum of the first n terms of a series", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"description": "

Find the sum of the first n terms of an arithmetic progression

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "

The first three terms of a series are given by:  

\n

\\(\\var{a} + \\simplify{{a}+{d}} + \\simplify{{a}+2*{d}}\\,+ \\, ...........\\)

", "ungrouped_variables": ["a", "d", "n"], "variable_groups": [], "variables": {"n": {"description": "", "definition": "random(4..19#1)", "group": "Ungrouped variables", "name": "n", "templateType": "randrange"}, "a": {"description": "", "definition": "random(1..12#1)", "group": "Ungrouped variables", "name": "a", "templateType": "randrange"}, "d": {"description": "", "definition": "random(2..11#1)", "group": "Ungrouped variables", "name": "d", "templateType": "randrange"}}, "parts": [{"marks": 0, "gaps": [{"marks": 1, "correctAnswerStyle": "plain", "correctAnswerFraction": false, "mustBeReducedPC": 0, "variableReplacements": [], "type": "numberentry", "scripts": {}, "minValue": "{n}*{a}+({n}-1)*{n}*{d}/2", "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "allowFractions": false, "mustBeReduced": false, "maxValue": "{n}*{a}+({n}-1)*{n}*{d}/2", "extendBaseMarkingAlgorithm": true, "notationStyles": ["plain", "en", "si-en"], "customMarkingAlgorithm": ""}], "prompt": "

Calculate the sum of the first \\(\\var{n}\\) terms of this series.

\n

\\(S_\\var{n}=\\) [[0]]

", "variableReplacements": [], "type": "gapfill", "scripts": {}, "unitTests": [], "showCorrectAnswer": true, "sortAnswers": false, "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": ""}], "tags": [], "rulesets": {}, "name": "Simon's copy of Arithmetic progression: The sum of the first n terms of a series", "functions": {}, "advice": "

If the difference between successive pairs of terms is a constant then the series under examination is an arithmetic progression.

\n

Ths first term is \\(a\\) and the common difference is \\(d\\).

\n

The formula for the nth term of the series is given by:    \\(S_n=\\frac{n}{2}\\left(2a+(n-1)d\\right)\\)

\n

In this example \\(a=\\var{a}\\),  \\(d = \\var{d}\\)  and  \\(n = \\var{n}\\)

\n

\\(S_\\var{n}=\\frac{\\var{n}}{2}\\left(2\\times\\var{a}+(\\var{n}-1)\\var{d}\\right)\\)

\n

\\(S_\\var{n}=\\simplify{{n}/{2}}\\left(\\simplify{2{a}}+\\simplify{({n}-1)*{d}}\\right)\\)

\n

\\(S_\\var{n}=\\simplify{{n}/{2}}\\left(\\simplify{2{a}+({n}-1)*{d}}\\right)\\)

\n

\\(S_\\var{n}=\\simplify{{n}*{a}+{n}*({n}-1)*{d}/2}\\)

\n

", "preamble": {"css": "", "js": ""}, "extensions": [], "type": "question", "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}