// Numbas version: exam_results_page_options {"name": "Arithmetic series 5", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"advice": "

We can manipulate the equation like so: $\\sum\\limits_{r=1}^\\var{upsum} (\\simplify{{coeff}r+{const}})=\\var{coeff}\\sum\\limits_{r=1}^\\var{upsum}r+\\sum\\limits_{r=1}^\\var{upsum}\\var{const}=\\var{coeff}\\times \\frac{\\var{upsum}(\\var{upsum}+1)}{2} + \\var{upsum}\\times \\var{const}$

", "parts": [{"correctAnswerFraction": false, "minValue": "{ans}", "variableReplacements": [], "showCorrectAnswer": true, "prompt": "

Calculate $\\sum\\limits_{r=1}^\\var{upsum} (\\simplify{{coeff}r+{const}})$

", "type": "numberentry", "maxValue": "{ans}", "allowFractions": false, "marks": 1, "variableReplacementStrategy": "originalfirst", "scripts": {}, "showPrecisionHint": false}], "variable_groups": [], "ungrouped_variables": ["upsum", "coeff", "const", "ans"], "rulesets": {}, "name": "Arithmetic series 5", "tags": [], "type": "question", "functions": {}, "preamble": {"css": "", "js": ""}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "questions": [], "pickQuestions": 0}], "variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"description": "", "notes": "", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "variables": {"upsum": {"templateType": "anything", "definition": "random(6..10)", "description": "", "group": "Ungrouped variables", "name": "upsum"}, "coeff": {"templateType": "anything", "definition": "random(2..5)", "description": "", "group": "Ungrouped variables", "name": "coeff"}, "ans": {"templateType": "anything", "definition": "coeff*upsum*(upsum+1)/2 + upsum*const", "description": "", "group": "Ungrouped variables", "name": "ans"}, "const": {"templateType": "anything", "definition": "random(-2..2 except 0)", "description": "", "group": "Ungrouped variables", "name": "const"}}, "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/"}]}