// Numbas version: finer_feedback_settings {"name": "Geometric progression: The sum of the first n terms of a geometric progression", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"licence": "Creative Commons Attribution-NonCommercial 4.0 International", "description": "
Find the sum of the first n terms of a Geometric progression
"}, "advice": "If the ratio between successive pairs of terms is a constant then the series under examination is a geometric progression.
\nThs first term is \\(a\\) and the common ratio is \\(r\\).
\nThe formula for the sum of the first \\(n\\) terms of the series is given by: \\(S_n=\\frac{a(1-r^{n})}{1-r}\\)
\nIn this example \\(a=\\var{a}\\), \\(r = \\frac{\\simplify{{a}*{r}}}{\\var{a}}=\\var{r}\\) and \\(n = \\var{n}\\)
\n\\(S_\\var{n}=\\frac{\\var{a}(1-(\\var{r})^{\\var{n}})}{1-\\var{r}}\\)
\n\\(S_\\var{n}=\\frac{\\var{a}*(\\simplify{1-{r}^{n}})}{\\simplify{1-{r}}}\\)
\n\\(S_\\var{n}=\\frac{\\simplify{{a}*(1-{r}^{n})}}{\\simplify{1-{r}}}\\)
\n\\(S_\\var{n}=\\var{s}\\)
", "variable_groups": [], "parts": [{"showFeedbackIcon": true, "marks": 0, "scripts": {}, "variableReplacements": [], "prompt": "Calculate the sum of the first \\(\\var{n}\\) terms of the series.
\n\\(S_\\var{n}=\\) [[0]]
", "showCorrectAnswer": true, "type": "gapfill", "gaps": [{"precision": "1", "minValue": "{s}", "scripts": {}, "showFeedbackIcon": true, "correctAnswerStyle": "plain", "showPrecisionHint": true, "allowFractions": false, "precisionPartialCredit": 0, "marks": 1, "notationStyles": ["plain", "en", "si-en"], "precisionMessage": "You have not given your answer to the correct precision.", "precisionType": "dp", "maxValue": "{s}", "correctAnswerFraction": false, "variableReplacements": [], "strictPrecision": false, "mustBeReduced": false, "type": "numberentry", "mustBeReducedPC": 0, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst"}], "variableReplacementStrategy": "originalfirst"}], "statement": "The first three terms of a series are given by:
\n\\(\\var{a} + \\simplify{{a}*{r}} + \\simplify{{a}*{r}^2}\\,+ \\, ...........\\)
", "preamble": {"js": "", "css": ""}, "rulesets": {}, "variables": {"n": {"definition": "random(4..19#1)", "templateType": "randrange", "name": "n", "group": "Ungrouped variables", "description": ""}, "a": {"definition": "random(1..12#1)", "templateType": "randrange", "name": "a", "group": "Ungrouped variables", "description": ""}, "s": {"definition": "({a}*(1-{r}^{n}))/(1-{r})", "templateType": "anything", "name": "s", "group": "Ungrouped variables", "description": ""}, "r": {"definition": "random(0.2..3#0.2)", "templateType": "randrange", "name": "r", "group": "Ungrouped variables", "description": ""}}, "extensions": [], "ungrouped_variables": ["a", "r", "n", "s"], "functions": {}, "name": "Geometric progression: The sum of the first n terms of a geometric progression", "variablesTest": {"condition": "", "maxRuns": 100}, "tags": [], "type": "question", "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}]}]}], "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}]}