// Numbas version: finer_feedback_settings {"name": "Recursively defined sequences.", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {"s": {"definition": "2^n-1", "type": "number", "parameters": [["n", "number"]], "language": "jme"}, "t": {"definition": "3+4*(n-1)", "type": "number", "parameters": [["n", "number"]], "language": "jme"}}, "ungrouped_variables": [], "name": "Recursively defined sequences.", "tags": [], "advice": "", "rulesets": {}, "parts": [{"prompt": "

Given the recursively defined sequence:

\n

$t(1)=3$,

\n

$t(n)=t(n-1)+4,\\;\\;(n>1)$.

\n

Find the following:

\n

$t(2)=\\;$[[0]], $t(3)=\\;$[[1]], $t(4)=\\;$[[2]].

\n

Express $t(n)$ as a non-recursive function of $n$:

\n

$t(n)=\\;$[[3]].

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "t(2)", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "t(3)", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "t(4)", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}, {"notallowed": {"message": "

Your definition should not include the function $t$.

", "showStrings": false, "strings": ["t"], "partialCredit": 0}, "variableReplacements": [], "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "vsetrangepoints": 5, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "3+4*(n-1)", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

Given the sequence $s(n)=2^n-1,\\;\\;\\;n\\in \\mathbb{N}.$

\n

Find a recursive definition of $s(n)$ in terms of $s(n-1)$:

\n

$s(1)=\\;$[[0]],

\n

$s(n)=\\;$[[1]],$\\;\\;\\;n \\gt 1$.

\n

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "1", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}, {"vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "type": "jme", "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "musthave": {"message": "

You must define $s(n)$ in terms of $s(n-1)$.

", "showStrings": false, "strings": ["s"], "partialCredit": 0}, "scripts": {}, "answer": "2^n-1", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "vsetrange": [0, 1]}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {}, "metadata": {"notes": "", "description": "

a) Given a recursively defined sequence $t(n)$, find $t(n)$ as a function of $n$.

\n

b) Given a sequence $s(n),\\;n \\in \\mathbb{N}$, find a recursive definition of $s(n)$

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}]}]}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}]}