// Numbas version: exam_results_page_options {"name": "Geometric progression: The sum to infinity", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

The first three terms of a geometric progression are given by:  

\n

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

", "metadata": {"description": "

Find the sum of the first n terms of a Geometric progression

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "preamble": {"js": "", "css": ""}, "functions": {}, "extensions": [], "variablesTest": {"maxRuns": 100, "condition": "r<>1"}, "name": "Geometric progression: The sum to infinity", "variable_groups": [], "rulesets": {}, "parts": [{"extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "variableReplacements": [], "showFeedbackIcon": true, "sortAnswers": false, "marks": 0, "unitTests": [], "gaps": [{"extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "mustBeReduced": false, "precisionPartialCredit": 0, "unitTests": [], "correctAnswerStyle": "plain", "allowFractions": false, "showPrecisionHint": true, "marks": 1, "showFeedbackIcon": true, "precision": "3", "type": "numberentry", "variableReplacements": [], "minValue": "{s}", "precisionType": "dp", "showCorrectAnswer": true, "strictPrecision": false, "customMarkingAlgorithm": "", "precisionMessage": "You have not given your answer to the correct precision.", "maxValue": "{s}", "scripts": {}, "mustBeReducedPC": 0, "correctAnswerFraction": false}], "customMarkingAlgorithm": "", "showCorrectAnswer": true, "scripts": {}, "prompt": "

Calculate the sum to infinity of the series.

\n

\\(S_\\infty=\\) [[0]]

"}], "advice": "

If the ratio between successive pairs of terms is a constant then the series under examination is a geometric progression.

\n

Ths first term is \\(a\\) and the common ratio is \\(r\\).

\n

In this example \\(a=\\var{a}\\),   \\(r = \\frac{\\simplify{{a}*{r}}}{\\var{a}}=\\var{r}\\)  and  \\(n = \\var{n}\\)

\n

Since $ |r| = \\var{r} < 1 $ then the sum to infinity exists and can be calculated as:

\n

\\(S_\\infty=\\frac{a}{1-r}\\)

\n

So for our example:

\n

\\(S_\\infty=\\frac{\\var{a}}{1-\\var{r}}\\)

\n

\\(S_\\var{n}=\\var{precround(s,3)}\\)

", "tags": [], "ungrouped_variables": ["a", "r", "n", "s"], "variables": {"r": {"name": "r", "definition": "random(0.1..0.9#0.1)", "description": "", "group": "Ungrouped variables", "templateType": "randrange"}, "a": {"name": "a", "definition": "random(1..12#1)", "description": "", "group": "Ungrouped variables", "templateType": "randrange"}, "s": {"name": "s", "definition": "({a})/(1-{r})", "description": "", "group": "Ungrouped variables", "templateType": "anything"}, "n": {"name": "n", "definition": "random(4..12#1)", "description": "", "group": "Ungrouped variables", "templateType": "randrange"}}, "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/"}]}