// Numbas version: exam_results_page_options {"name": "Maths Support: Sequences and limits", "navigation": {"onleave": {"action": "none", "message": ""}, "reverse": true, "allowregen": true, "preventleave": false, "browse": true, "showfrontpage": false, "showresultspage": "never"}, "duration": 0.0, "metadata": {"notes": "", "description": "
3 questions. One question on limits of standard sequences. Other two on finding least $N$ such that $|a_n-L |\\lt 10^{-r},\\;\\;n \\geq N$ where $L$ is limit of $(a_n)$.
", "licence": "Creative Commons Attribution 4.0 International"}, "timing": {"timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "shufflequestions": false, "questions": [], "percentpass": 50.0, "allQuestions": true, "pickQuestions": 0, "type": "exam", "feedback": {"showtotalmark": true, "advicethreshold": 0.0, "showanswerstate": true, "showactualmark": true, "allowrevealanswer": true}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": [{"name": "Sequences and Limits 1.1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}], "functions": {}, "ungrouped_variables": ["ab", "valexp", "v35", "al", "v15", "v150", "v610", "b1", "ga", "b3", "d2", "d1", "val", "s1", "v110", "v560", "s5", "v650", "k1", "r", "v45", "tol", "v210", "v250", "be", "v25", "v65", "de", "v450", "a3", "c1", "d", "a", "c", "b", "v550", "v350", "v510", "k", "v410", "n", "v55", "v310", "v660"], "tags": ["examples of standard limits", "limit", "limits", "limits of sequences", "sequences", "standard limits", "taking the limit"], "preamble": {"css": "", "js": ""}, "advice": "All calculations below are to $5$ decimal places.
\nThe notation $a \\approx b$ means that $a$ and $b$ are approximately equal.
\nUsing a calculator for $3$ values of $n$:
\n$n$ | $\\displaystyle{\\frac{1}{n^{1/\\var{r}}}}$ |
---|---|
$100$ | $\\var{v15}$ |
$5000$ | $\\var{v110}$ |
$5000000$ | $\\var{v150}$ |
This indicates that $\\displaystyle{\\lim_{n \\to \\infty}\\left(\\frac{1}{n^{1/\\var{r}}}\\right)=0}$
\nIn fact $\\displaystyle{\\lim_{n \\to \\infty}\\left(\\frac{1}{n^r}\\right)=0}$ for any $r \\gt 0$
\n$n$ | $\\displaystyle{\\var{k1}^{1/n}}$ |
---|---|
$100$ | $\\var{v25}$ |
$5000$ | $\\var{v210}$ |
$5000000$ | $\\var{v250}$ |
This indicates that $\\displaystyle{\\lim_{n \\to \\infty}\\var{k1}^{1/n}=1}$, see next question as well.
\n$n$ | $\\displaystyle{\\var{k}^{1/n}}$ |
---|---|
$100$ | $\\var{v35}$ |
$5000$ | $\\var{v310}$ |
$5000000$ | $\\var{v350}$ |
This indicates that $\\displaystyle{\\lim_{n \\to \\infty}\\var{k}^{1/n}=1}$.
\nFrom the last two questions it seems that $\\displaystyle{\\lim_{n \\to \\infty} k^{1/n}=1}$ for any $k \\gt 0$ – and this is fact true.
\n$n$ | $\\displaystyle{\\frac{\\var{c}n+\\var{d}}{\\var{al}n-\\var{ga}}}$ |
---|---|
$100$ | $\\var{v45}$ |
$5000$ | $\\var{v410}$ |
$5000000$ | $\\var{v450}$ |
This indicates that $\\displaystyle \\lim_{n \\to \\infty}\\left(\\simplify[std]{({c}n+{d})/({al}n-{ga})}\\right)\\;=\\; \\simplify[std]{{c}/{al}}$.
\nIn general
\\[\\lim_{n \\to \\infty}\\left(\\frac{an+b}{cn+d}\\right)= \\frac{a}{c}\\] when $c \\neq 0$
$n$ | $\\displaystyle{\\left(\\simplify{{c}/{n}}\\right)^n}$ |
---|---|
$10$ | $\\var{v55}$ |
$29$ | $\\var{v510}$ |
$50$ | $\\var{v550}$ |
$89$ | $\\var{v560}$ |
This indicates that $\\displaystyle{\\lim_{n \\to \\infty}\\left(\\simplify{{c}/{n}}\\right)^n}= 0$. In general $\\displaystyle{\\lim_{n \\to \\infty} r^n= 0}$ if $|r| \\lt 1$
\nWe have the limit:
\\[\\lim_{n\\to\\infty}\\left(1+\\frac{a}{n}\\right)=e^a\\]
The following table confirms that the values are converging to (five decimal places) $\\displaystyle{\\simplify[std]{e^({a3}/{b3})={valexp}}}$
$n$ | $\\displaystyle{\\left(\\simplify[std]{1+{a3}/({b3}n)}\\right)^n}$ |
---|---|
$10$ | $\\var{v65}$ |
$100$ | $\\var{v610}$ |
$1000$ | $\\var{v650}$ |
$10000$ | $\\var{v660}$ |
Hence the answer asked for is $\\var{val}$ to $4$ decimal places.
\nThe answer to this question is based upon neglecting terms in polynomials in $n$ for large $n$.
\nFor example, $n^3+1000000n^2+1000000000 \\approx n^3$ for large $n$ as the $n^3$ term completely dominates the other terms as $n \\longrightarrow \\infty$.
\nA more precise way of saying this is:
\\[\\lim_{n\\to\\infty}\\left(\\frac{n^3+1000000n^2+1000000000}{n^3}\\right)=1\\]
So for large $n$
\\[\\begin{eqnarray*} \\frac{\\left(\\simplify[std]{{al^d}n^({a*d})+{be}n^{b}+{c}}\\right)^{1/\\var{d}}} {\\left(\\simplify[std]{{ga^d1}n^({a*d1})+{de}n^{b1}+{c1}}\\right)^{1/\\var{d1}}}&\\approx& \\frac{\\left(\\simplify[std]{{al^d}n^({a*d})}\\right)^{1/\\var{d}}} {\\left(\\simplify[std]{{ga^d1}n^({a*d1})}\\right)^{1/\\var{d1}}}\\\\ &=&\\frac{\\simplify[std]{{al^d}^(1/{d})n^{a}}} {\\simplify[std]{{ga^d1}^(1/{d1})n^{a}}}\\\\ &=&\\simplify[std]{{al}/{ga}} \\end{eqnarray*} \\]
Hence the limit is $\\displaystyle{\\simplify[std]{{al}/{ga}}}$
$\\displaystyle{\\lim_{n \\to \\infty}\\left(\\frac{1}{n^{1/\\var{r}}}\\right)=\\;\\;}$[[0]]
", "marks": 0, "gaps": [{"allowFractions": false, "marks": 1, "maxValue": "0", "minValue": "0", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}, {"prompt": "\n \n \n$\\displaystyle{\\lim_{n \\to \\infty}\\left(\\var{k1}^{1/n}\\right)=\\;\\;}$[[0]]
\n \n \n ", "marks": 0, "gaps": [{"allowFractions": false, "marks": 1, "maxValue": "1", "minValue": "1", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}, {"prompt": "\n \n \n$\\displaystyle{\\lim_{n \\to \\infty}\\left(\\var{k}^{1/n}\\right)=\\;\\;}$[[0]]
\n \n \n ", "marks": 0, "gaps": [{"allowFractions": false, "marks": 1, "maxValue": "1", "minValue": "1", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}, {"prompt": "\n$\\displaystyle \\lim_{n \\to \\infty}\\left(\\simplify[std]{({c}n+{d})/({al}n-{ga})}\\right)\\;=\\;$[[0]]
\nEnter your answer as a fraction or integer, not as a decimal.
\n ", "marks": 0, "gaps": [{"notallowed": {"message": "Enter your answer as a fraction or integer, not as a decimal.
", "showStrings": false, "strings": ["."], "partialCredit": 0}, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "vsetrangepoints": 5, "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "{c}/{al}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}, {"prompt": "\n \n \n$\\displaystyle{\\lim_{n \\to \\infty}\\left(\\simplify[std]{{c}/{n}}\\right)^n=\\;\\;}$[[0]]
\n \n \n ", "marks": 0, "gaps": [{"allowFractions": false, "marks": 1, "maxValue": "0", "minValue": "0", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}, {"prompt": "\n \n \n$\\displaystyle{\\lim_{n \\to \\infty}\\left(\\simplify[std]{1+{a3}/({b3}n)}\\right)^n=\\;\\;}$[[0]]
Input your answer to 4 decimal places.
$\\displaystyle{\\lim_{n \\to \\infty}\\frac{\\left(\\simplify[std]{{al^d}n^({a*d})+{be}n^{b}+{c}}\\right)^{1/\\var{d}}}\n \n {\\left(\\simplify[std]{{ga^d1}n^({a*d1})+{de}n^{b1}+{c1}}\\right)^{1/\\var{d1}}}=\\;\\;}$[[0]]
\n \n \n \nEnter your answer as a fraction or integer, not as a decimal.
\n \n \n ", "marks": 0, "gaps": [{"notallowed": {"message": "Enter your answer as a fraction or integer, not as a decimal.
", "showStrings": false, "strings": ["."], "partialCredit": 0}, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "vsetrangepoints": 5, "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "{al}/{ga}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}], "statement": "What are the following limits?
", "type": "question", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"ab": {"definition": "abs(a3)", "templateType": "anything", "group": "Ungrouped variables", "name": "ab", "description": ""}, "valexp": {"definition": "precround(exp(a3/b3),5)", "templateType": "anything", "group": "Ungrouped variables", "name": "valexp", "description": ""}, "v35": {"definition": "precround(k^(1/100),5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v35", "description": ""}, "al": {"definition": "random(1..4)", "templateType": "anything", "group": "Ungrouped variables", "name": "al", "description": ""}, "v15": {"definition": "precround(100^(-1/r),5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v15", "description": ""}, "v150": {"definition": "precround(5000000^(-1/r),5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v150", "description": ""}, "v610": {"definition": "precround((1 + s5 * (abs(a3) / (b3 * 100))) ^ 100,5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v610", "description": ""}, "b1": {"definition": "a*d1-1", "templateType": "anything", "group": "Ungrouped variables", "name": "b1", "description": ""}, "ga": {"definition": "random(2..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "ga", "description": ""}, "b3": {"definition": "switch(ab=1,random(2..9),ab=2,random(3,5,7,9),ab=3,random(2,4,5,7,8),random(3,5,7,9))", "templateType": "anything", "group": "Ungrouped variables", "name": "b3", "description": ""}, "d2": {"definition": "random(2..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "d2", "description": ""}, "d1": {"definition": "if(d2=d,d+1,d2)", "templateType": "anything", "group": "Ungrouped variables", "name": "d1", "description": ""}, "val": {"definition": "precround(exp(a3/b3),4)", "templateType": "anything", "group": "Ungrouped variables", "name": "val", "description": ""}, "s1": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s1", "description": ""}, "v110": {"definition": "precround(5000^(-1/r),5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v110", "description": ""}, "v560": {"definition": "precround((c/n)^89,5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v560", "description": ""}, "s5": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s5", "description": ""}, "v650": {"definition": "precround((1 + s5 * (abs(a3) / (b3 * 1000))) ^ 1000,5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v650", "description": ""}, "k1": {"definition": "random(100000..200000)", "templateType": "anything", "group": "Ungrouped variables", "name": "k1", "description": ""}, "v55": {"definition": "precround((c/n)^10,5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v55", "description": ""}, "v45": {"definition": "precround((c * 100 + d) / (al * 100 -ga),5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v45", "description": ""}, "tol": {"definition": "0", "templateType": "anything", "group": "Ungrouped variables", "name": "tol", "description": ""}, "v210": {"definition": "precround(k1^(1/5000),5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v210", "description": ""}, "v250": {"definition": "precround(k1^(1/5000000),5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v250", "description": ""}, "be": {"definition": "random(-5..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "be", "description": ""}, "v25": {"definition": "precround(k1^(1/100),5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v25", "description": ""}, "v65": {"definition": "precround((1 + s5 * (abs(a3) / (b3 * 10))) ^ 10,5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v65", "description": ""}, "de": {"definition": "random(-5..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "de", "description": ""}, "v450": {"definition": "precround((c * 5000000 + d) / (al * 5000000 -ga),5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v450", "description": ""}, "a3": {"definition": "s5*random(1..4)", "templateType": "anything", "group": "Ungrouped variables", "name": "a3", "description": ""}, "c1": {"definition": "s1*random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "c1", "description": ""}, "v350": {"definition": "precround(k^(1/5000000),5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v350", "description": ""}, "a": {"definition": "random(2..4)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "s1*random(11..50)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "a*d-random(1..3)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "v550": {"definition": "precround((c/n)^50,5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v550", "description": ""}, "d": {"definition": "random(2..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "v510": {"definition": "precround((c/n)^29,5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v510", "description": ""}, "k": {"definition": "random(2..20#0.5)", "templateType": "anything", "group": "Ungrouped variables", "name": "k", "description": ""}, "v410": {"definition": "precround((c * 5000 + d) / (al * 5000 -ga),5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v410", "description": ""}, "n": {"definition": "abs(c)+random(2..5)", "templateType": "anything", "group": "Ungrouped variables", "name": "n", "description": ""}, "r": {"definition": "random(2..10)", "templateType": "anything", "group": "Ungrouped variables", "name": "r", "description": ""}, "v310": {"definition": "precround(k^(1/5000),5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v310", "description": ""}, "v660": {"definition": "precround((1 + s5 * (abs(a3) / (b3 * 10000))) ^ 10000,5)", "templateType": "anything", "group": "Ungrouped variables", "name": "v660", "description": ""}}, "metadata": {"notes": "\n \t\t4/07/2012:
\n \t\tAdded tags.
\n \t\tImproved display of prompt for fourth part.
\n \t\tImproved display of solution to fourth part.
\n \t\tChecked calculations.
\n \t\tNo tolerance on answer to 6th part, got to be exact to 4dps. Tolerance variable, tol=0.
\n \t\t21/07/2012:
\n \t\tAdded description.
\n \t\t27/7/2012:
\n \t\tAdded tags.
\n \t\tQuestion appears to be working correctly.
\n \t\t", "description": "Seven standard elementary limits of sequences.
", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Sequences and Limits 1.2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}], "functions": {"chcop": {"definition": "if(gcd(a,b)=1,b,chcop(a,random(1..20)))", "type": "number", "language": "jme", "parameters": [["a", "number"], ["b", "number"]]}}, "ungrouped_variables": ["a", "c", "b", "d", "n3", "s3", "s2", "s1", "tval", "s5", "s4", "s", "r", "b1", "n1", "n2", "n", "n4", "ep", "t"], "tags": ["", "limit", "limit of sequences", "limits", "sequences", "taking the limit"], "preamble": {"css": "", "js": ""}, "advice": "The limit is $\\displaystyle \\simplify[std]{{a}/{c}}$.
\nTo find the least $N$ such that all terms from the the $N$th are within $10^{\\var{-r}}$ of the limit we proceed as follows:
\\[\\begin{eqnarray*} \\left|\\simplify[std]{x_n -({a} / {c})}\\right| \\leq 10 ^ { -\\var{r}} &\\Leftrightarrow&\\left|\\simplify[std]{({a}n+{b})/({c}n+{d})-{a}/{c}}\\right| \\leq 10 ^ { -\\var{r}}\\\\ &\\Leftrightarrow&\\simplify[std]{abs({b*c-a*d})/({c^2}n+{c*d})}\\leq 10 ^ { -\\var{r}} \\end{eqnarray*} \\]
(We can get rid of the absolute value in the denominator as $\\simplify[std]{{c^2}n+{c*d}} \\gt 0,\\;\\;\\forall n=1,\\;2,\\;3\\ldots$)
Rearranging this last inequality by multiplying both sides by $(\\simplify[std]{{c^2}n+{c*d}})10^{\\var{r}}$ (this is positive and so the inequality does not reverse) we get:
\\[\\simplify[std]{{c^2}n+{c*d}} \\geq \\var{10^r*abs(b*c-a*d)} \\Leftrightarrow n \\geq \\simplify[std]{{1}/{c^2}({10^r*abs(b*c-a*d)}-{c*d})}=\\var{tval}\\]
Hence the least integer value is given by rounding up i.e. $N=\\var{N}$.
", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "parts": [{"prompt": "\n \n \nWhat is the limit of this sequence?
\n \n \n \n$\\displaystyle{\\lim_{x\\to\\infty} x_n=\\;\\;}$[[0]]
\n \n \n \nInput the limit as a fraction or an integer and not a decimal.
\n \n \n ", "marks": 0, "gaps": [{"notallowed": {"message": "Enter your answer as a fraction or integer, not as a decimal.
", "showStrings": false, "strings": ["."], "partialCredit": 0}, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "vsetrangepoints": 5, "showCorrectAnswer": true, "answersimplification": "std", "scripts": {}, "answer": "{a}/{c}", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}, {"prompt": "\n \n \nWhich of the following integers has the property that it is the least integer $N$ such that all terms in the sequence are within $10^{\\var{-r}}$ of the limit for all $n \\geq N $?
\n \n \n \n[[0]]
\n \n \n ", "marks": 0, "gaps": [{"displayColumns": 0, "matrix": [1, 0, 0, 0, 0], "shuffleChoices": true, "maxMarks": 0, "distractors": ["", "", "", "", ""], "choices": ["{N}
", "{N1}
", "{N2}
", "{N3}
", "{N4}
"], "displayType": "radiogroup", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "1_n_2", "minMarks": 0}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}], "statement": "Let \\[x_n=\\simplify[std]{({a}n+{b})/({c}n+{d})},\\;\\;n=1,\\;2,\\;3\\ldots\\]
", "type": "question", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "chcop(a,a)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "if(a*d=b1*c,b1+1,b1)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "chcop(c,c)", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "s3": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s3", "description": ""}, "s2": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s2", "description": ""}, "s1": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s1", "description": ""}, "s5": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s5", "description": ""}, "s4": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s4", "description": ""}, "s": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s", "description": ""}, "r": {"definition": "random(2,3,4)", "templateType": "anything", "group": "Ungrouped variables", "name": "r", "description": ""}, "b1": {"definition": "s1*random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "b1", "description": ""}, "n": {"definition": "ceil((abs(b*c-a*d)-d*c*ep)/(ep*c^2))", "templateType": "anything", "group": "Ungrouped variables", "name": "n", "description": ""}, "t": {"definition": "random(0..100)", "templateType": "anything", "group": "Ungrouped variables", "name": "t", "description": ""}, "n1": {"definition": "if(N>100,N+s2*random(8..52#4),if(N>50,N+s2*random(8..48#4),N+random(1,3)))", "templateType": "anything", "group": "Ungrouped variables", "name": "n1", "description": ""}, "n2": {"definition": "if(N>100,N+s3*random(7..43#4),if(N>50,N+s3*random(7..43#4),N+random(2,4)))", "templateType": "anything", "group": "Ungrouped variables", "name": "n2", "description": ""}, "n3": {"definition": "if(N>100,N+s4*random(6..42#4),if(N>50,N+s4*random(6..42#4),N+random(5,6)))", "templateType": "anything", "group": "Ungrouped variables", "name": "n3", "description": ""}, "n4": {"definition": "if(N>100,N+s5*random(5..41#4),if(N>50,N+s5*random(5..41#4),N+random(7,8)))", "templateType": "anything", "group": "Ungrouped variables", "name": "n4", "description": ""}, "ep": {"definition": "10^(-r)", "templateType": "anything", "group": "Ungrouped variables", "name": "ep", "description": ""}, "tval": {"definition": "(1 / c) * ((10 ^ r * abs(b * c -(a * d))) / c -d)", "templateType": "anything", "group": "Ungrouped variables", "name": "tval", "description": ""}}, "metadata": {"notes": "\n \t\t4/07/2012:
\n \t\t
Changed inequality sign in prompt from $\\lt$ to $\\leq$ and as a consequence changed them in the Advice. Answer remains the same.
21/07/2012:
\n \t\tAdded description.
\n \t\tNeeds better tags to describe second part.
\n \t\tAlso need to redefine the variables so that a and b and a and c are coprime - results in a better and less clumsy Advice solution. This is the \"changes needed\" tag. Issue raised as having defined a new function chcop using the gcd function, the editor did not register it in the variables list - although the question compiled and ran.
\n \t\t(Contd.) The variables a,b,c,d have been redefined. Also noticed that the MCQ had two correct answers on rare occasions. This has been corrected.
\n \t\tGot rid of the changes needed tag.
\n \t\t27/7/2012:
\n \t\tAdded tags.
\n \t\t", "description": "Let $x_n=\\frac{an+b}{cn+d},\\;\\;n=1,\\;2\\ldots$. Find $\\lim_{x \\to\\infty} x_n=L$ and find least $N$ such that $|x_n-L| \\lt 10^{-r},\\;n \\geq N,\\;r \\in \\{2,\\;3,\\;4\\}$.
", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Sequences and Limits 1.3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}], "functions": {"chcop": {"definition": "if(gcd(a,b)=1,b,chcop(a,random(1..20)))", "type": "number", "language": "jme", "parameters": [["a", "number"], ["b", "number"]]}}, "ungrouped_variables": ["a", "c", "b", "r1", "something1", "s1", "m", "ep1", "b1", "d", "r", "something", "t", "n", "thisratio", "ep", "tval"], "tags": ["limit of a sequence", "limits", "sequence", "taking the limit"], "preamble": {"css": "", "js": ""}, "advice": "$\\begin{align}z&=\\var{b}\\\\w&=a\\end{align}$
\nTo find the least $N$ such that all terms from the the $N$th are within $10^{\\var{-r}}$ of the limit we proceed as follows:
\n\\[\\begin{eqnarray} \\left|\\simplify[std]{x_n -({a} / {c})}\\right| \\lt 10^{ -\\var{r}}&\\iff &\\left|\\simplify[std]{({a}n+{b})/({c}n+{d})-{a}/{c}}\\right| \\lt 10^{ -\\var{r}}\\\\&\\iff &\\simplify[std]{abs({b*c-a*d})/({c^2}n+{c*d})}\\lt 10^{ -\\var{r}} \\end{eqnarray} \\]
\n(We can get rid of the absolute value in the denominator as $\\simplify[std]{{c^2}n+{c*d}} \\gt 0,\\;\\;\\forall n=1,\\;2,\\;3\\ldots$)
\nRearranging this last inequality by multiplying both sides by $(\\simplify[std]{{c^2}n+{c*d}})10^{\\var{r}}$ (this is positive and so the inequality does not reverse) we get:
\\[\\simplify[std]{{c^2}n+{c*d}} \\gt \\var{10^r*abs(b*c-a*d)} \\Leftrightarrow n \\gt \\frac{1}{\\var{c^2}}\\left(\\simplify[std]{{10^r*abs(b*c-a*d)}-{c*d}}\\right)=\\var{tval}\\]
Hence the least integer value is given by rounding up i.e. $N=\\var{N}$.
\nUsing the same method you should obtain $N_1=\\var{m}$.
", "rulesets": {"std": ["all", "fractionNumbers", "!collectNumbers", "!noLeadingMinus"]}, "parts": [{"prompt": "\nFind the least integer $N$ such that
\n\\[\\left|\\simplify[std]{x_n -({a} / {c})}\\right| \\lt 10 ^ { -\\var{r}},\\;\\;\\textrm{for}\\;\\;n \\geq N\\]
\nLeast $N=\\;\\;$[[0]]
\n", "marks": 0, "gaps": [{"allowFractions": false, "marks": 1, "maxValue": "{N}", "minValue": "{N}", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}, {"prompt": "\n\n\nFind the least integer $N_1$ such that
\n\n\n\n\\[\\left|\\simplify[std]{x_n -({a} / {c})}\\right| \\lt 10 ^ { \\var{-r+r1}},\\;\\;\\textrm{for}\\;\\;n \\geq N_1\\]
\n\n\n\nLeast $N_1=\\;\\;$[[0]]
\n\n\n", "marks": 0, "gaps": [{"allowFractions": false, "marks": 1, "maxValue": "{m}", "minValue": "{m}", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "type": "gapfill"}], "statement": "Let \\[x_n=\\simplify[std]{({a}n+{b})/({c}n+{d})},\\;\\;n=1,\\;2,\\;3\\ldots\\]
", "type": "question", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(2..20)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "chcop(a,a)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "if(b1*c=a*d,b1+1,b1)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "r1": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "r1", "description": ""}, "something": {"definition": "if(r1=1,'dividing','multiplying')", "templateType": "anything", "group": "Ungrouped variables", "name": "something", "description": ""}, "s1": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s1", "description": ""}, "tval": {"definition": "(1 / c) * ((10 ^ r * abs(b * c -(a * d))) / c -d)", "templateType": "anything", "group": "Ungrouped variables", "name": "tval", "description": ""}, "m": {"definition": "ceil((abs(b*c-a*d)-d*c*ep1)/(ep1*c^2))", "templateType": "anything", "group": "Ungrouped variables", "name": "m", "description": ""}, "ep1": {"definition": "10^(-r+r1)", "templateType": "anything", "group": "Ungrouped variables", "name": "ep1", "description": ""}, "r": {"definition": "random(2,3,4,5,6)", "templateType": "anything", "group": "Ungrouped variables", "name": "r", "description": ""}, "b1": {"definition": "s1*random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "b1", "description": ""}, "t": {"definition": "random(0..100)", "templateType": "anything", "group": "Ungrouped variables", "name": "t", "description": ""}, "n": {"definition": "ceil((abs(b*c-a*d)-d*c*ep)/(ep*c^2))", "templateType": "anything", "group": "Ungrouped variables", "name": "n", "description": ""}, "something1": {"definition": "if(r1=-1,'divides','multiplies')", "templateType": "anything", "group": "Ungrouped variables", "name": "something1", "description": ""}, "thisratio": {"definition": "if(r1=1, 'one tenth of ', '$10$ times ')", "templateType": "anything", "group": "Ungrouped variables", "name": "thisratio", "description": ""}, "ep": {"definition": "10^(-r)", "templateType": "anything", "group": "Ungrouped variables", "name": "ep", "description": ""}, "d": {"definition": "chcop(c,c)", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}}, "metadata": {"notes": "\n \t\t4/07/2012:
\n \t\tChecked calculations.
\n \t\tSmall changes to Advice display.
\n \t\tLeft inequalities as $\\lt$.
\n \t\t21/07/2012:
\n \t\tAdded description.
\n \t\tAdded function chcop to create coprime pairs - better display of solution.
\n \t\tChanged definition of variables a, b, c, d.
\n \t\t27/7/2012:
\n \t\tAdded tags.
\n \t\tQuestion appears to be working correctly.
\n \t\t", "description": "\n \t\t$x_n=\\frac{an+b}{cn+d}$. Find the least integer $N$ such that $\\left|x_n -\\frac{a}{c}\\right| \\lt 10 ^{-r},\\;n\\geq N$, $2\\leq r \\leq 6$.
\n \t\t\n \t\t", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}], "extensions": [], "custom_part_types": [], "resources": []}