// Numbas version: exam_results_page_options {"name": "Gemma's copy of Binomial series for Natural exponent", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Gemma's copy of Binomial series for Natural exponent", "metadata": {"licence": "Creative Commons Attribution-NonCommercial 4.0 International", "description": "

Binomial series for Natural exponent

"}, "parts": [{"variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "sortAnswers": true, "showCorrectAnswer": true, "prompt": "

Calculate the coefficient of \\(x^{\\var{k}}\\)  [[0]]using the Binomial Theorem.

", "gaps": [{"variableReplacements": [], "correctAnswerFraction": false, "variableReplacementStrategy": "originalfirst", "maxValue": "{c}", "showFeedbackIcon": true, "mustBeReduced": false, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "correctAnswerStyle": "plain", "notationStyles": ["plain", "en", "si-en"], "marks": 1, "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "scripts": {}, "minValue": "{c}", "allowFractions": true, "unitTests": [], "type": "numberentry"}], "marks": 0, "extendBaseMarkingAlgorithm": true, "scripts": {}, "unitTests": [], "type": "gapfill"}], "ungrouped_variables": ["a", "b", "n", "c", "k"], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"js": "", "css": ""}, "rulesets": {}, "advice": "

The binomial series expansion for an expression of the form \\((a+bx)^n\\) where \\(n\\) is a Natural number is given by:

\n

\\((a+bx)^n=\\tbinom{n}{0}(a)^n(bx)^{0}+\\tbinom{n}{1}(a)^{n-1}(bx)^{1}+\\tbinom{n}{2}(a)^{n-2}(bx)^{2}+...\\tbinom{n}{k}(a)^{n-k}(bx)^{k}+...\\tbinom{n}{n}(a)^{0}(bx)^{n}\\)

\n

In this example  \\(n=\\var{n}\\),  \\(k=\\var{k}\\),  \\(a=\\var{a}\\)  and  \\(b=\\var{b}\\).

\n

So the coefficient of \\(x^{\\var{k}}\\) is given by \\(\\tbinom{\\var{n}}{\\var{k}}*\\var{a}^{\\var{n}-\\var{k}}*\\var{b}^{\\var{k}}=\\var{c}\\).

\n

", "variables": {"b": {"name": "b", "group": "Ungrouped variables", "templateType": "randrange", "definition": "random(1..6#1)", "description": ""}, "c": {"name": "c", "group": "Ungrouped variables", "templateType": "anything", "definition": "comb({n},{k})*{a}^({n}-{k})*{b}^{k}", "description": ""}, "a": {"name": "a", "group": "Ungrouped variables", "templateType": "randrange", "definition": "random(1..6#1)", "description": ""}, "k": {"name": "k", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..{n}-1)", "description": ""}, "n": {"name": "n", "group": "Ungrouped variables", "templateType": "randrange", "definition": "random(3..10#1)", "description": ""}}, "statement": "

Given the expression \\((\\var{a}+\\var{b}x)^{\\var{n}}\\)

", "tags": [], "functions": {}, "variable_groups": [], "extensions": [], "type": "question", "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}, {"name": "Gemma Crowe", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2440/"}]}]}], "contributors": [{"name": "Frank Doheny", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/789/"}, {"name": "Gemma Crowe", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2440/"}]}