// Numbas version: exam_results_page_options {"name": "Algebra: binomial expansion, coefficient of particular term, calculator", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"preventleave": false, "allowregen": true, "showfrontpage": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"c2": {"group": "Ungrouped variables", "templateType": "anything", "definition": "comb(n,k2)*a^(n-k2)*b^k2", "description": "", "name": "c2"}, "a": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..5)", "description": "", "name": "a"}, "k2": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(3..{n}-3)", "description": "", "name": "k2"}, "k": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(3..{n}-3)", "description": "", "name": "k"}, "c": {"group": "Ungrouped variables", "templateType": "anything", "definition": "comb(n,k)*a^(n-k)*b^k", "description": "", "name": "c"}, "n": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(7..12)", "description": "", "name": "n"}, "b": {"group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..9 except a)*-1", "description": "", "name": "b"}}, "metadata": {"licence": "Creative Commons Attribution-NonCommercial 4.0 International", "description": "

Expression of the (a+bx)^n is given and a couple of coefficients are asked for.

"}, "name": "Algebra: binomial expansion, coefficient of particular term, calculator", "statement": "

This is a calculator question. Note that the numbers in this question will be quite large.

See 8.1 and 8.2 for background and examples.

", "type": "question", "variable_groups": [], "tags": [], "preamble": {"js": "", "css": ""}, "rulesets": {}, "extensions": [], "functions": {}, "variablesTest": {"condition": "mod(k-k2,2)<>0", "maxRuns": 100}, "ungrouped_variables": ["a", "b", "n", "k", "k2", "c", "c2"], "contributors": [{"name": "Angharad Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/315/"}, {"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}, {"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}], "parts": [{"sortAnswers": false, "scripts": {}, "unitTests": [], "marks": 0, "showFeedbackIcon": true, "prompt": "

Calculate the coefficient of \$x^{\\var{k}}\$ if you multiply out the expression \$\\simplify{({a} + {b}x)^{n}}\$

\n

\n

The coefficient of \\(x^{\\var{k}}\\) is  [[0]]

\n

\n

How about the coefficient of \$x^{\\var{k2}}\$? [[1]]

", "customMarkingAlgorithm": "", "gaps": [{"notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": "50", "scripts": {}, "unitTests": [], "mustBeReduced": false, "marks": "2", "maxValue": "{c}", "allowFractions": false, "customMarkingAlgorithm": "", "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": false, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "numberentry", "correctAnswerFraction": false, "showCorrectAnswer": true, "minValue": "{c}"}, {"notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": "50", "scripts": {}, "unitTests": [], "mustBeReduced": false, "marks": "2", "maxValue": "{c2}", "allowFractions": false, "customMarkingAlgorithm": "", "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": false, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "numberentry", "correctAnswerFraction": false, "showCorrectAnswer": true, "minValue": "{c2}"}], "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "type": "gapfill", "showCorrectAnswer": true}]}]}], "contributors": [{"name": "Angharad Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/315/"}, {"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}, {"name": "Lovkush Agarwal", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1358/"}]}