// Numbas version: finer_feedback_settings {"name": "Series: geometric series", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": [], "tags": [], "variables": {"start": {"group": "Ungrouped variables", "description": "", "definition": "random(2..7)", "name": "start", "templateType": "anything"}, "r": {"group": "Ungrouped variables", "description": "", "definition": "random([1/3,1/4,1/6,-1/3,-1/4,-1/6,2/3,-2/3,3/4,-3/4,-2,-1.9,-1.8,-1.7,-1.6,-1.5,-1.4,-1.3,-1.2,-1.1,-1,-0.9,-0.8,-0.7,-0.6,-0.5,-0.4,-0.3,-0.2,-0.1,-2,1.9,1.8,1.7,1.6,1.5,1.4,1.3,1.2,1.1,0.9,0.8,0.7,0.6,0.5,0.4,0.3,0.2,0.1])", "name": "r", "templateType": "anything"}, "a": {"group": "Ungrouped variables", "description": "", "definition": "random(-20..20 except 0)", "name": "a", "templateType": "anything"}}, "rulesets": {}, "variable_groups": [], "functions": {}, "ungrouped_variables": ["r", "a", "start"], "statement": "

You are given the series

\n

\\[\\sum_{k=\\var{start}}^\\infty\\var{a}\\left(\\var[fractionNumbers]{r}\\right)^k.\\]

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

This question tests to see if students can recognise a geometric series and based on its common ratio determine if it is convergent or divergent.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "parts": [{"variableReplacementStrategy": "originalfirst", "variableReplacements": [], "marks": 0, "prompt": "

This is a [[0]] [[1]].

", "showCorrectAnswer": true, "type": "gapfill", "gaps": [{"displayType": "dropdownlist", "minMarks": 0, "shuffleChoices": false, "displayColumns": 0, "variableReplacements": [], "type": "1_n_2", "showFeedbackIcon": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 0, "maxMarks": 0, "distractors": ["", ""], "choices": ["

convergent

", "

divergent

"], "matrix": ["if(abs(r)<1,1,0)", "if(abs(r)>=1,1,0)"]}, {"displayType": "dropdownlist", "minMarks": 0, "shuffleChoices": true, "displayColumns": 0, "variableReplacements": [], "type": "1_n_2", "showFeedbackIcon": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 0, "maxMarks": 0, "distractors": ["", "", "", "", "", ""], "choices": ["

p series

", "

geometric series

", "

arithmetic series

", "

alternating series

", "

Maclaurin series

", "

Taylor series

"], "matrix": ["0", "1", 0, "if(r<0,1,0)", 0, 0]}], "showFeedbackIcon": true, "scripts": {}}], "preamble": {"js": "", "css": ""}, "advice": "

A geometric series $\\sum_{n=0}^\\infty ar^n$ is convegent if $|r|<1$ with a sum of $\\frac{a}{1-r}$, and is divergent if $|r|\\ge1$.

\n

Our series is $\\sum_{k=\\var{start}}^\\infty\\var{a}\\left(\\var[fractionNumbers]{r}\\right)^k$, which looks similar with an $r$ value of $\\var[fractionNumbers]{r}$. In fact, if we are worried that our series starts at $k=3$ instead of at $n=0$ notice:

\n

\n

$\\displaystyle\\sum_{k=\\var{start}}^\\infty \\var{a}\\left(\\var[fractionNumbers]{r}\\right)^k=\\sum_{k=\\var{start}}^\\infty \\var{a}\\left(\\var[fractionNumbers]{r}\\right)^{\\var{start}}\\left(\\var[fractionNumbers]{r}\\right)^{k-\\var{start}}$

\n

we now make the substitution $n=k-\\var{start}$ (which means when $k=\\var{start}$, $n=0$) and we have

\n

$\\displaystyle\\sum_{n=0}^\\infty \\var{a}\\left(\\var[fractionNumbers]{r}\\right)^{\\var{start}}\\left(\\var[fractionNumbers]{r}\\right)^{n}$

\n

\n

\n

and so even though our series seemed to start later on, it is still a geometric series with $a=\\var{a}\\left(\\var[fractionNumbers]{r}\\right)^{\\var{start}}$ and $r=\\var[fractionNumbers]{r}$. Also, note that adding or subtracting a finite number of terms to a series will not change whether it converges or diverges, nor will multiplying or dividing the series by a non-zero constant.

\n

So we have a convergent divergent geometric series with common ratio $r=\\var[fractionNumbers]{r}$.

\n

\n

Since this common ratio is negative, each time we multiply by it we alternate the sign of the term, that is, this series is also an alternating series. If we wanted to, we could pull the common factor of $-1$ out and write our series as a positive number multiplied by $(-1)^n$:

\n

$\\displaystyle\\sum_{n=0}^\\infty (-1)^n\\var{abs(a)}\\left(\\var[fractionNumbers]{abs(r)}\\right)^{\\var{start}}\\left(\\var[fractionNumbers]{abs(r)}\\right)^{n}$

\n

The alternating series $\\sum_{n=0}^\\infty (-1)^n b_n$ where $b_n>0$, converges if $b_{n+1}\\le b_n$ for all $n$ and $\\lim_{n\\rightarrow\\infty}b_n=0$.

\n

\n

Since this common ratio is negative, each time we multiply by it we alternate the sign of the term, that is, this series is also an alternating series. If we wanted to, we could pull the common factor of $-1$ out and write our series as a positive number multiplied by $(-1)^{n+1}$:

\n

$\\displaystyle\\sum_{n=0}^\\infty (-1)^{n+1}\\var{abs(a)}\\left(\\var[fractionNumbers]{abs(r)}\\right)^{\\var{start}}\\left(\\var[fractionNumbers]{abs(r)}\\right)^{n}$

\n

The alternating series $\\sum_{n=0}^\\infty (-1)^{n+1} b_n$ where $b_n>0$, converges if $b_{n+1}\\le b_n$ for all $n$ and $\\lim_{n\\rightarrow\\infty}b_n=0$.

\n

Therefore, we also know our series converges based on this alternating series test.

\n

Therefore, we also know our series diverges based on this alternating series test.

\n

", "name": "Series: geometric series", "variablesTest": {"condition": "", "maxRuns": 100}, "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}