// Numbas version: exam_results_page_options {"name": "Factorisation and Sequences", "metadata": {"description": "

Simple exam for IGCSE level factorisation and sequences. One of my first projects, probably contains many mistakes (marking is not very dynamic for example).

", "licence": "All rights reserved"}, "duration": 8100, "percentPass": "70", "showQuestionGroupNames": true, "showstudentname": true, "question_groups": [{"name": "Factorisation", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": [""], "questions": [{"name": "Factorisation", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julian Zylber", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4538/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Factorise fully the following expressions. \"plus\" represents a +, and it is written this way to break photomath´s algorithm.

", "advice": "", "rulesets": {}, "variables": {"variable_names": {"name": "variable_names", "group": "Ungrouped variables", "definition": "shuffle(['a','b','c','d','m','w','x','y','z'])", "description": "", "templateType": "anything"}, "common_expression1": {"name": "common_expression1", "group": "Part A", "definition": "variable_names[0]+'^'+indexes[0]", "description": "", "templateType": "anything"}, "indexes": {"name": "indexes", "group": "Ungrouped variables", "definition": "repeat(random(1..3),2)", "description": "", "templateType": "anything"}, "common_number1": {"name": "common_number1", "group": "Part A", "definition": "random(2..9)", "description": "", "templateType": "anything"}, "extra_expression1": {"name": "extra_expression1", "group": "Part A", "definition": "variable_names[1]", "description": "", "templateType": "anything"}, "extra_expression2": {"name": "extra_expression2", "group": "Part A", "definition": "variable_names[2]", "description": "", "templateType": "anything"}, "different_number1": {"name": "different_number1", "group": "Part A", "definition": "random(-5..5 except 0)", "description": "", "templateType": "anything"}, "expr1": {"name": "expr1", "group": "Part A", "definition": "expression(common_number1+ \"*\"+common_expression1+ \"*\"+extra_expression1+ \"+\" + (different_number1*common_number1) + \"*\" +extra_expression2+\"*\"+common_expression1) ", "description": "", "templateType": "anything"}, "common_number2": {"name": "common_number2", "group": "Part B", "definition": "random(2..9)", "description": "", "templateType": "anything"}, "common_expression2": {"name": "common_expression2", "group": "Part B", "definition": "variable_names[3]", "description": "", "templateType": "anything"}, "expr2": {"name": "expr2", "group": "Part B", "definition": "expression((common_number2*different_number2)+\"*\"+common_expression2+\"+\"+common_number2+\"*\"+common_expression2+\"^\"+index2+\"+\"+common_number2+\"*\"+common_expression2+\"*\"+extra_expression3)", "description": "", "templateType": "anything"}, "different_number2": {"name": "different_number2", "group": "Part B", "definition": "random(2..6)", "description": "", "templateType": "anything"}, "index2": {"name": "index2", "group": "Part B", "definition": "random(2..4)", "description": "", "templateType": "anything"}, "extra_expression3": {"name": "extra_expression3", "group": "Part B", "definition": "variable_names[4]", "description": "", "templateType": "anything"}, "expr3": {"name": "expr3", "group": "Part C", "definition": "expression(variable_names[5]+\"^\"+indexes[1]+\"*\"+variable_names[6]+\"+\"+variable_names[6]+\"*\"+variable_names[7]+\"+\"+variable_names[8]+\"*\"+variable_names[5]+\"^\"+indexes[1]+\"+\"+variable_names[7]+\"*\"+variable_names[8])", "description": "", "templateType": "anything"}, "expr1args": {"name": "expr1args", "group": "Part A", "definition": "args(expr1)", "description": "", "templateType": "anything"}, "expr2args": {"name": "expr2args", "group": "Part B", "definition": "args(expr2)", "description": "", "templateType": "anything"}, "expr3args": {"name": "expr3args", "group": "Part C", "definition": "args(expr3)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["variable_names", "indexes"], "variable_groups": [{"name": "Part A", "variables": ["different_number1", "extra_expression2", "expr1", "extra_expression1", "common_number1", "common_expression1", "expr1args"]}, {"name": "Part B", "variables": ["common_number2", "common_expression2", "expr2", "different_number2", "index2", "extra_expression3", "expr2args"]}, {"name": "Part C", "variables": ["expr3", "expr3args"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

\\(\\simplify{{expr1args[0]} } \\)  plus  \\(\\simplify{{expr1args[1]} } \\)  = [[0]]

", "gaps": [{"type": "jme", "useCustomName": true, "customName": "Part1Gap", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{expr1}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "mustmatchpattern": {"pattern": "$n*($v^($n `?))($v + ?)", "partialCredit": "0", "message": "You haven´t factorised fully.", "nameToCompare": ""}, "valuegenerators": []}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

\\(\\simplify{{expr2args[0]}} \\)  plus  \\(\\simplify{{expr2args[1]}} \\)= [[0]]

", "gaps": [{"type": "jme", "useCustomName": true, "customName": "Part2Gap", "marks": "2.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{expr2}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": true, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "mustmatchpattern": {"pattern": "$n*$v*($n + $v;a^($n `?) + $v) `where a=expression(common_expression2)", "partialCredit": "0", "message": "You haven´t factorised fully.", "nameToCompare": ""}, "valuegenerators": []}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

\\(\\simplify{{expr3args[0]}} \\)  plus  \\(\\simplify{{expr3args[1]}} \\)= [[0]]

", "gaps": [{"type": "jme", "useCustomName": true, "customName": "Part3Gap", "marks": "2.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{expr3} ", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "mustmatchpattern": {"pattern": "[\"x\": $v `| $v^($n)] \n`@ (x + x)* (x + x)", "partialCredit": "0", "message": "You haven´t factorised fully.", "nameToCompare": ""}, "valuegenerators": []}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}, {"name": "Sequences", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", ""], "questions": [{"name": "Sequences: Next two terms", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julian Zylber", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4538/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Find the next two terms of the following sequences:

", "advice": "", "rulesets": {}, "variables": {"seq1": {"name": "seq1", "group": "Ungrouped variables", "definition": "map(d[0]*x+a0[0],x,1..6)", "description": "", "templateType": "anything"}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "repeat(random(-7..7 except 0),2)", "description": "", "templateType": "anything"}, "a0": {"name": "a0", "group": "Ungrouped variables", "definition": "repeat(random(-10..30),2)", "description": "", "templateType": "anything"}, "seq2": {"name": "seq2", "group": "Ungrouped variables", "definition": "map(d[1]*x+a0[1],x,1..6)", "description": "", "templateType": "anything"}, "r": {"name": "r", "group": "Ungrouped variables", "definition": "random(2..8)", "description": "", "templateType": "anything"}, "ga0": {"name": "ga0", "group": "Ungrouped variables", "definition": "r^6*random(2..10)", "description": "", "templateType": "anything"}, "seq3": {"name": "seq3", "group": "Ungrouped variables", "definition": "map(r^(-x)*ga0,x,1..6)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "not(d[0] = d[1]) and\nnot(a0[0] = a0[1])", "maxRuns": 100}, "ungrouped_variables": ["seq1", "seq2", "d", "a0", "r", "ga0", "seq3"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

\\(\\var{seq1[0]},\\var{seq1[1]},\\var{seq1[2]},\\var{seq1[3]} \\),[[0]],[[1]]

", "gaps": [{"type": "jme", "useCustomName": true, "customName": "5th term", "marks": "0.5", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{seq1[4]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "valuegenerators": []}, {"type": "jme", "useCustomName": true, "customName": "6th term", "marks": "0.5", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{seq1[5]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "valuegenerators": []}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

\\(\\var{seq2[0]},\\var{seq2[1]},\\var{seq2[2]},\\var{seq2[3]} \\),[[0]],[[1]]

", "gaps": [{"type": "jme", "useCustomName": true, "customName": "5th term", "marks": "0.5", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{seq2[4]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "valuegenerators": []}, {"type": "jme", "useCustomName": true, "customName": "6th term", "marks": "0.5", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{seq2[5]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "valuegenerators": []}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

\\(\\var{seq3[0]},\\var{seq3[1]},\\var{seq3[2]},\\var{seq3[3]} \\),[[0]],[[1]]

", "gaps": [{"type": "jme", "useCustomName": true, "customName": "5th term", "marks": "0.5", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{seq3[4]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "valuegenerators": []}, {"type": "jme", "useCustomName": true, "customName": "6th term", "marks": "0.5", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{seq3[5]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "valuegenerators": []}], "sortAnswers": false}]}, {"name": "Sequences: Nth term Simple", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julian Zylber", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4538/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Find the nth term of the following sequences:

", "advice": "", "rulesets": {}, "variables": {"nth1": {"name": "nth1", "group": "Ungrouped variables", "definition": "expression(d[0]+\"*\"+\"n\" + \"+\"+ a0[0])", "description": "", "templateType": "anything"}, "a0": {"name": "a0", "group": "Ungrouped variables", "definition": "repeat(random(-10..30),2)", "description": "", "templateType": "anything"}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "repeat(random(-7..9 except 0),2)", "description": "", "templateType": "anything"}, "nth2": {"name": "nth2", "group": "Ungrouped variables", "definition": "expression(d[1]+\"*\"+\"n\" + \"+\"+ a0[1])", "description": "", "templateType": "anything"}, "seq1": {"name": "seq1", "group": "Ungrouped variables", "definition": "map(eval(nth1, [\"n\":n]),n,1..4)", "description": "", "templateType": "anything"}, "seq2": {"name": "seq2", "group": "Ungrouped variables", "definition": "map(eval(nth2, [\"n\":n]),n,1..4)", "description": "", "templateType": "anything"}, "power": {"name": "power", "group": "Ungrouped variables", "definition": "random(2..3)", "description": "", "templateType": "anything"}, "hint_seq": {"name": "hint_seq", "group": "Ungrouped variables", "definition": "map((n+1)^power,n,1..4)", "description": "", "templateType": "anything"}, "option": {"name": "option", "group": "Ungrouped variables", "definition": "random([0,1])", "description": "", "templateType": "anything"}, "nth3": {"name": "nth3", "group": "Ungrouped variables", "definition": "expression(\"(\"+\"n\"+\"+\"+if(option = 0, 1 + random([-1,1]),1)+\")\"+\"^\"+power+\"+\"+if(option = 1,random(-5..5 except 0),0))", "description": "", "templateType": "anything"}, "seq3": {"name": "seq3", "group": "Ungrouped variables", "definition": "map(eval(nth3, [\"n\":n]),n,1..4)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "not(d[0] = d[1]) and\nnot(a0[0] = a0[1])", "maxRuns": 100}, "ungrouped_variables": ["nth1", "a0", "d", "nth2", "seq1", "seq2", "power", "hint_seq", "option", "nth3", "seq3"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

\\(\\var{seq1[0]},\\var{seq1[1]},\\var{seq1[2]},\\var{seq1[3]} \\)

", "answer": "{nth1}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

\\(\\var{seq2[0]},\\var{seq2[1]},\\var{seq2[2]},\\var{seq2[3]} \\)

", "answer": "{nth2}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "1.5", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

\\(\\var{seq3[0]},\\var{seq3[1]},\\var{seq3[2]},\\var{seq3[3]} \\)

\n

Hint: The nth term for the sequence \\(\\var{hint_seq[0]},\\var{hint_seq[1]},\\var{hint_seq[2]},\\var{hint_seq[3]} \\) is \\((n + 1)^\\var{power} \\)

", "answer": "{nth3}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "valuegenerators": []}]}, {"name": "Sequences: Nth term Complex", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Julian Zylber", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4538/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "", "advice": "", "rulesets": {}, "variables": {"denominator": {"name": "denominator", "group": "Ungrouped variables", "definition": "random(3..7)", "description": "", "templateType": "anything"}, "sub_integer": {"name": "sub_integer", "group": "Ungrouped variables", "definition": "random(1..denominator)", "description": "", "templateType": "anything"}, "term": {"name": "term", "group": "Ungrouped variables", "definition": "denominator*random(6..15)", "description": "", "templateType": "anything"}, "ans1": {"name": "ans1", "group": "Ungrouped variables", "definition": "(term^2 * (term - sub_integer))/denominator", "description": "", "templateType": "anything"}, "nth": {"name": "nth", "group": "Ungrouped variables", "definition": "if(arithmetic,expression(random(-5..5 except 0)+\"*\" + \"n\" + \"+\" + random(-9..9 except 0)),expression(random(-5..5 except 0)+\"*\" + \"n^2\" + \"+\" + random(-4..4)))", "description": "", "templateType": "anything"}, "arithmetic": {"name": "arithmetic", "group": "Ungrouped variables", "definition": "random([true,false])", "description": "", "templateType": "anything"}, "a_term": {"name": "a_term", "group": "Ungrouped variables", "definition": "eval(ar_seq, [\"n\":n_a_term])", "description": "", "templateType": "anything"}, "ar_seq": {"name": "ar_seq", "group": "Ungrouped variables", "definition": "expression(random(-5..5 except 0)+\"*\" + \"n\" + \"+\" + random(-9..9 except 0))", "description": "", "templateType": "anything"}, "belonging": {"name": "belonging", "group": "Ungrouped variables", "definition": "eval(ar_seq, [\"n\":n_belonging])", "description": "", "templateType": "anything"}, "n_belonging": {"name": "n_belonging", "group": "Ungrouped variables", "definition": "random(20..45)", "description": "", "templateType": "anything"}, "n_a_term": {"name": "n_a_term", "group": "Ungrouped variables", "definition": "random(-9..10)", "description": "", "templateType": "anything"}, "belongs": {"name": "belongs", "group": "Ungrouped variables", "definition": "n_a_term > 0", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "not(ar_seq = nth)", "maxRuns": 100}, "ungrouped_variables": ["denominator", "sub_integer", "term", "ans1", "nth", "arithmetic", "a_term", "ar_seq", "belonging", "n_belonging", "n_a_term", "belongs"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Find the term $\\var{term}$ of the sequence whose nth term is \\(\\dfrac{n^2 * (n - \\var{sub_integer})}{\\var{denominator}} \\)

", "minValue": "{ans1}", "maxValue": "{ans1}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "information", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

The \"Why?\" of the following questions must be answered on your answer sheet

"}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": false, "showFeedbackIcon": false, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Is the sequence whose nth term is \\(\\simplify{{nth}} \\) an arithmetic sequence? Why? 

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": false, "choices": ["Yes", "No"], "matrix": ["if({arithmetic},1,0)", "if({arithmetic},0,1)"], "distractors": ["", ""]}, {"type": "information", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

 The nth term of sequence $A_n$ is \\(\\simplify{{ar_seq}}\\).

"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

{belonging} is a term of the sequence $A_n$. Find out the position (or n) of {belonging}.

", "minValue": "{n_belonging}", "maxValue": "{n_belonging}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Is {a_term} a term of sequence $A_n$? Why?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Yes", "No"], "matrix": ["if({belongs},1,0)", "if({belongs},0,1)"], "distractors": ["", ""]}]}]}], "allowPrinting": true, "navigation": {"allowregen": false, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "showresultspage": "oncompletion", "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "startpassword": ""}, "timing": {"allowPause": false, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "warn", "message": "

5 minutes left for this exam session!

"}}, "feedback": {"showactualmark": false, "showtotalmark": true, "showanswerstate": false, "allowrevealanswer": false, "advicethreshold": 0, "intro": "

For entering alebraic formulas:

\n\n

Remember to separate variables with multiplication when entering the answer. \"ab\" is \"a * b\".

", "reviewshowscore": true, "reviewshowfeedback": true, "reviewshowexpectedanswer": true, "reviewshowadvice": true, "feedbackmessages": []}, "contributors": [{"name": "Julian Zylber", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4538/"}], "extensions": [], "custom_part_types": [], "resources": []}