// Numbas version: exam_results_page_options {"name": "Geometric series - practical application", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"m": {"templateType": "anything", "name": "m", "description": "", "definition": "1+1/m1", "group": "Ungrouped variables"}, "dayn": {"templateType": "anything", "name": "dayn", "description": "", "definition": "random(5..30)", "group": "Ungrouped variables"}, "n": {"templateType": "anything", "name": "n", "description": "", "definition": "random(10..50)", "group": "Ungrouped variables"}, "dur": {"templateType": "anything", "name": "dur", "description": "", "definition": "random(10..50)", "group": "Ungrouped variables"}, "m2": {"templateType": "anything", "name": "m2", "description": "", "definition": "random(4..9)", "group": "Ungrouped variables"}, "m1": {"templateType": "anything", "name": "m1", "description": "", "definition": "random(1..9)", "group": "Ungrouped variables"}}, "statement": "

A hospital offers Catherine a $\\var{dur}$-day course of ultraviolet light therapy for her eczema. On day $n$ of the course, she is ot have $t_n$ seconds of treatment, where $t_n = \\var{n}\\times (\\simplify[all,fractionnumbers]{{m}})$$^{n-1}$

", "name": "Geometric series - practical application", "parts": [{"marks": 1, "prompt": "

How long, to the nearest second, will Catherine's treatment be on day $\\var{dayn}$?

", "integerAnswer": true, "variableReplacementStrategy": "originalfirst", "minValue": "precround({n}*{m}^{{dayn}-1},0)", "showPrecisionHint": false, "integerPartialCredit": 0, "scripts": {}, "type": "numberentry", "maxValue": "precround({n}*{m}^{{dayn}-1},0)", "allowFractions": false, "variableReplacements": [], "correctAnswerFraction": false, "showCorrectAnswer": true}, {"marks": 1, "prompt": "

How long, to the nearest second, will Catherine's treatment be on day $\\var{dur}$?

", "integerAnswer": true, "variableReplacementStrategy": "originalfirst", "minValue": "precround({n}*{m}^{{dur}-1},0)", "showPrecisionHint": false, "integerPartialCredit": 0, "scripts": {}, "type": "numberentry", "maxValue": "precround({n}*{m}^{{dur}-1},0)", "allowFractions": false, "variableReplacements": [], "correctAnswerFraction": false, "showCorrectAnswer": true}, {"marks": 1, "prompt": "

How much time will she spend in total having this treatment for her eczema?

", "integerAnswer": true, "variableReplacementStrategy": "originalfirst", "minValue": "precround(({n}*(1-{m}^{dur}))/(1-{m}),0)", "showPrecisionHint": false, "integerPartialCredit": 0, "scripts": {}, "type": "numberentry", "maxValue": "precround(({n}*(1-{m}^{dur}))/(1-{m}),0)", "allowFractions": false, "variableReplacements": [], "correctAnswerFraction": false, "showCorrectAnswer": true}], "functions": {}, "rulesets": {}, "variable_groups": [], "preamble": {"css": "", "js": ""}, "tags": [], "question_groups": [{"name": "", "pickQuestions": 0, "questions": [], "pickingStrategy": "all-ordered"}], "variablesTest": {"maxRuns": 100, "condition": "{dayn}<{dur}"}, "ungrouped_variables": ["dur", "n", "m1", "m2", "m", "dayn"], "advice": "

a) Substitute in $n=\\var{dayn}$

\n

b) Substitute in $n=\\var{dur}$

\n

c) Use formula $S_n = \\frac{a_1(1-r^n)}{1-r}$ where $a_1$ is the first term and $r$ is the common ratio.

", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "", "notes": ""}, "showQuestionGroupNames": false, "type": "question", "contributors": [{"name": "joshua boddy", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/557/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}]}], "contributors": [{"name": "joshua boddy", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/557/"}, {"name": "Xiaodan Leng", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2146/"}]}