// Numbas version: exam_results_page_options {"percentPass": "50", "duration": 0, "showQuestionGroupNames": false, "question_groups": [{"pickingStrategy": "all-ordered", "name": "Group", "pickQuestions": 1, "questions": [{"name": "Blathnaid's copy of Julie's copy of Recurrence - rekursjon 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Blathnaid Sheridan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/447/"}], "tags": [], "rulesets": {}, "functions": {}, "preamble": {"css": "", "js": ""}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Recurrence equations - rekursjon

"}, "advice": "

$y(2) = 2y(2-1)-y(2-2)=2y(1)-y(0) = 2 \\cdot 1 - 0 = 2$

\n

$y(3) = 2y(3-1)-y_(3-2)=2y(2)-y(1) = 2 \\cdot 2 - 1 = 3$

\n

$y(4) = 2y(4-1)-y(4-2)=2y(3)-y(2) = 2 \\cdot 3 - 2 = 4$

\n

So, it looks like $y_5=5, y_6=6,...$ and $y_n=n$.

", "parts": [{"prompt": "

A sequence $y_n$ is defined by the recursive formula

\n

   $y_n = 2y_{n-1}-y_{n-2}$

\n

where

\n

$y(0)=0,\\;\\;y(1)=1$

\n

Find the next 3 terms by using the recursion method.

\n

$y(2)$ = [[0]] ,   $y(3)$ = [[1]] ,   $y(4)$ = [[2]]

\n

Can you work out a direct formula for   $y(n)$ = [[3]]

", "scripts": {}, "gaps": [{"scripts": {}, "type": "numberentry", "maxValue": "2", "correctAnswerFraction": false, "variableReplacementStrategy": "originalfirst", "allowFractions": false, "marks": "1", "variableReplacements": [], "showCorrectAnswer": true, "integerPartialCredit": 0, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "minValue": "2", "integerAnswer": true}, {"scripts": {}, "type": "numberentry", "maxValue": "3", "correctAnswerFraction": false, "variableReplacementStrategy": "originalfirst", "allowFractions": false, "marks": 1, "variableReplacements": [], "showCorrectAnswer": true, "integerPartialCredit": 0, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "minValue": "3", "integerAnswer": true}, {"scripts": {}, "type": "numberentry", "maxValue": "4", "correctAnswerFraction": false, "variableReplacementStrategy": "originalfirst", "allowFractions": false, "marks": 1, "variableReplacements": [], "showCorrectAnswer": true, "integerPartialCredit": 0, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "minValue": "4", "integerAnswer": true}, {"scripts": {}, "vsetrange": [0, 1], "vsetrangepoints": 5, "showpreview": true, "variableReplacementStrategy": "originalfirst", "marks": 1, "answer": "n", "variableReplacements": [], "checkingtype": "absdiff", "expectedvariablenames": [], "checkingaccuracy": 0.001, "checkvariablenames": false, "type": "jme", "showCorrectAnswer": false}], "stepsPenalty": 0, "variableReplacementStrategy": "originalfirst", "marks": 0, "type": "gapfill", "steps": [{"prompt": "

Fill in for  $n$  i  $y_n = 2y_{n-1}-y_{n-2}$

\n

$y_2 = 2y_{2-1}-y_{2-2}=2y_1-y_0 = 2 \\cdot 1 - 0 = 2$

\n

$y_3 = 2y_{3-1}-y_{3-2}=2y_2-y_1 = ...$

", "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "information", "marks": 0, "showCorrectAnswer": true, "variableReplacements": []}], "showCorrectAnswer": true, "variableReplacements": []}], "variables": {}, "statement": "", "variable_groups": [], "type": "question"}, {"name": "Blathnaid's copy of Julie's copy of Recurrence - rekursjon 5", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Blathnaid Sheridan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/447/"}], "rulesets": {}, "metadata": {"description": "

Recurrence equations - rekursjon

", "licence": "Creative Commons Attribution 4.0 International"}, "parts": [{"prompt": "

A sequence $y(n)$ is given by the recursive formula

\n

 $y(n) - 6y(n-1) +9y(n-2)= 2^n, \\;\\;y_0=1,\\;\\;y_1=2$

\n

Find a direct formula for $y(n)$:

\n

$y_n$ = [[0]]

", "type": "gapfill", "stepsPenalty": 0, "marks": 0, "variableReplacementStrategy": "originalfirst", "gaps": [{"expectedvariablenames": [], "marks": "4", "vsetrangepoints": 5, "checkvariablenames": false, "checkingtype": "absdiff", "variableReplacements": [], "showpreview": true, "vsetrange": [0, 1], "checkingaccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "answer": "-(3^(n+1)) + n*3^n + 2^(n+2)", "type": "jme", "scripts": {}, "showCorrectAnswer": true}], "showCorrectAnswer": true, "steps": [{"type": "information", "marks": 0, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "variableReplacements": []}], "scripts": {}, "variableReplacements": []}], "functions": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "advice": "", "ungrouped_variables": [], "variables": {}, "statement": "", "variable_groups": [], "tags": [], "type": "question"}, {"name": "Julie's copy of Recurrence - rekursjon 4", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}], "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "parts": [{"marks": 0, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "gaps": [{"vsetrangepoints": 5, "checkingtype": "absdiff", "answer": "2^n-2", "type": "jme", "scripts": {}, "checkingaccuracy": 0.001, "checkvariablenames": false, "marks": "4", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "vsetrange": [0, 1], "showpreview": true, "expectedvariablenames": []}], "type": "gapfill", "scripts": {}, "prompt": "

A sequence $y(n)$ is given by the recursive formula 

\n

 $y(n) - 3y(n-1) +2y(n-2)= 0, \\;\\;n\\geq3,\\;\\;y(1)=0,\\;\\;y(2)=2$

\n

Find a direct formula for $y(n)$:

\n

$y(n)$ = [[0]]

"}], "variables": {}, "preamble": {"css": "", "js": ""}, "variable_groups": [], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Recurrence equations - rekursjon

"}, "rulesets": {}, "statement": "", "functions": {}, "advice": "", "tags": [], "type": "question"}, {"name": "Julie's copy of Recurrence - rekursjon 3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}], "metadata": {"description": "

Recurrence equations - rekursjon

", "licence": "Creative Commons Attribution 4.0 International"}, "preamble": {"js": "", "css": ""}, "advice": "", "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "", "functions": {}, "variable_groups": [], "rulesets": {}, "ungrouped_variables": [], "parts": [{"variableReplacementStrategy": "originalfirst", "prompt": "

A sequence $y(n)$ is defined by the recursive formula

\n

 $y(n) - 3y(n-1) = -4n, \\;y(0)=2$

\n

Find a recurrence formula for $y(n)$:

\n

$y(n)$ = [[0]]

", "gaps": [{"vsetrange": [0, 1], "scripts": {}, "marks": "4", "type": "jme", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "showpreview": true, "expectedvariablenames": [], "vsetrangepoints": 5, "checkvariablenames": false, "checkingaccuracy": 0.001, "answer": "5*3^n-2*n-3", "checkingtype": "absdiff", "showCorrectAnswer": true}], "type": "gapfill", "scripts": {}, "variableReplacements": [], "marks": 0, "showCorrectAnswer": true}], "variables": {}, "tags": [], "type": "question"}, {"name": "Julie's copy of Recurrence - rekursjon 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}], "parts": [{"variableReplacementStrategy": "originalfirst", "scripts": {}, "variableReplacements": [], "showCorrectAnswer": true, "type": "gapfill", "prompt": "

A sequence $y(n)$ is defined by the recursive formula

\n

   $y(n) - 3y(n-1) = 0$ and $y(0)=2$.

\n

Find a recurrence formula for $y(n)$:

\n

$y(n)$ = [[0]]

", "marks": 0, "gaps": [{"checkingaccuracy": 0.001, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "expectedvariablenames": [], "showCorrectAnswer": true, "marks": "4", "type": "jme", "checkingtype": "absdiff", "vsetrangepoints": 5, "answer": "2*3^n", "vsetrange": [0, 1], "showpreview": true, "checkvariablenames": false}]}], "ungrouped_variables": [], "variable_groups": [], "functions": {}, "advice": "", "statement": "", "variablesTest": {"maxRuns": 100, "condition": ""}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Recurrence equations - rekursjon

"}, "rulesets": {}, "tags": [], "preamble": {"css": "", "js": ""}, "variables": {}, "type": "question"}]}], "name": "Recurrence relations", "showstudentname": true, "timing": {"timeout": {"message": "", "action": "none"}, "allowPause": true, "timedwarning": {"message": "", "action": "none"}}, "metadata": {"description": "

First- and second order recurrence equations, homogenous and nonhomogenous

", "licence": "Creative Commons Attribution 4.0 International"}, "feedback": {"showactualmark": true, "showanswerstate": true, "intro": "", "advicethreshold": 0, "allowrevealanswer": true, "feedbackmessages": [], "showtotalmark": true}, "navigation": {"onleave": {"message": "", "action": "none"}, "preventleave": true, "showfrontpage": true, "reverse": true, "showresultspage": "oncompletion", "browse": true, "allowregen": true}, "type": "exam", "contributors": [{"name": "Blathnaid Sheridan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/447/"}], "extensions": [], "custom_part_types": [], "resources": []}