// Numbas version: finer_feedback_settings {"name": "Square and cube numbers 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "
Try the following questions on square and cube numbers.
", "advice": "Squared integers are called square numbers. It may be useful to remember the first few square numbers to be able to use them without a calculator.
\nHere:
\n\\[ \\begin{align} \\var{x[0]}^2 &= \\var{x[0]} \\times \\var{x[0]} \\\\&= \\var{x[0]^2} \\text{.}\\end{align}\\]
\n\\[ \\begin{align} \\var{x[1]}^2 &= \\var{x[1]} \\times \\var{x[1]} \\\\&= \\var{x[1]^2} \\text{.}\\end{align}\\]
\n\\[ \\begin{align} \\var{x[2]}^2 &= \\var{x[2]} \\times \\var{x[2]} \\\\&= \\var{x[2]^2} \\text{.}\\end{align}\\]
\n\\[ \\begin{align} \\var{x[3]}^2 &= \\var{x[3]} \\times \\var{x[3]} \\\\&= \\var{x[3]^2} \\text{.}\\end{align}\\]
\n\\[ \\begin{align} \\var{x[4]}^2 &= \\var{x[4]} \\times \\var{x[4]} \\\\&= \\var{x[4]^2} \\text{.}\\end{align}\\]
\n\nCubed integers are called cubed numbers. To obtain these, we would typically always use a calculator.
\nWe can either cube the number $x$:
\n\\[ \\begin{align} \\var{x[0]}^3 &= \\var{x[0]} \\times \\var{x[0]} \\times \\var{x[0]} \\\\&= \\var{x[0]^3} \\text{,} \\end{align}\\]
\nor we can multiply the square number $(x_n)^2$ from part a) by the appropriate $x_n$:
\n\\[ \\begin{align} \\var{x[0]}^3 &= \\var{x[0]}^2 \\times \\var{x[0]} \\\\&= \\var{x[0]^2} \\times \\var{x[0]}\\\\&= \\var{x[0]^3} \\text{.} \\end{align}\\]
\n\\[ \\begin{align} \\var{x[1]}^3 &= \\var{x[1]} \\times \\var{x[1]} \\times \\var{x[1]} \\\\ &= \\var{x[1]^3} \\text{.}\\end{align}\\]
\n\\[ \\begin{align} \\var{x[2]}^3 &= \\var{x[2]} \\times \\var{x[2]} \\times \\var{x[2]} \\\\ &= \\var{x[2]^3} \\text{.}\\end{align}\\]
\n\\[ \\begin{align} \\var{x[3]}^3 &= \\var{x[3]} \\times \\var{x[3]} \\times \\var{x[3]} \\\\ &= \\var{x[3]^3} \\text{.}\\end{align}\\]
\n\\[ \\begin{align} \\var{x[3]}^4 &= \\var{x[4]} \\times \\var{x[4]} \\times \\var{x[4]} \\\\ &= \\var{x[4]^3} \\text{.}\\end{align}\\]
\n\nHere is a table of square numbers for integers from $1$ to $15$:
\n$y$ | \n$1$ | \n$2$ | \n$3$ | \n$4$ | \n$5$ | \n$6$ | \n$7$ | \n$8$ | \n$9$ | \n$10$ | \n$11$ | \n$12$ | \n$13$ | \n$14$ | \n$15$ | \n
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
$y^2$ | \n$1$ | \n$4$ | \n$9$ | \n$16$ | \n$25$ | \n$36$ | \n$49$ | \n$64$ | \n$81$ | \n$100$ | \n$121$ | \n$144$ | \n$169$ | \n$196$ | \n$225$ | \n
The only square number between $\\var{ly}$ and $\\var{uy}$ is $\\var{y2}$.
\nTo calculate $y$ we must calculate the square root of $y^2$,
\n\\[ \\sqrt{\\var{y2}} = \\var{y} \\text{.}\\]
\nThis is our integer $y$.
\n\n", "functions": {}, "variable_groups": [], "parts": [{"variableReplacementStrategy": "originalfirst", "scripts": {}, "unitTests": [], "gaps": [{"unitTests": [], "maxValue": "x[0]*x[0]", "correctAnswerFraction": false, "minValue": "x[0]*x[0]", "adaptiveMarkingPenalty": 0, "mustBeReducedPC": 0, "customName": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "customMarkingAlgorithm": "", "marks": 1, "mustBeReduced": false, "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "allowFractions": false, "variableReplacements": [], "type": "numberentry"}, {"unitTests": [], "maxValue": "x[1]*x[1]", "correctAnswerFraction": false, "minValue": "x[1]*x[1]", "adaptiveMarkingPenalty": 0, "mustBeReducedPC": 0, "customName": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "customMarkingAlgorithm": "", "marks": 1, "mustBeReduced": false, "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "allowFractions": false, "variableReplacements": [], "type": "numberentry"}, {"unitTests": [], "maxValue": "x[2]*x[2]", "correctAnswerFraction": false, "minValue": "x[2]*x[2]", "adaptiveMarkingPenalty": 0, "mustBeReducedPC": 0, "customName": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "customMarkingAlgorithm": "", "marks": 1, "mustBeReduced": false, "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "allowFractions": false, "variableReplacements": [], "type": "numberentry"}, {"unitTests": [], "maxValue": "x[3]*x[3]", "correctAnswerFraction": false, "minValue": "x[3]*x[3]", "adaptiveMarkingPenalty": 0, "mustBeReducedPC": 0, "customName": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "customMarkingAlgorithm": "", "marks": 1, "mustBeReduced": false, "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "allowFractions": false, "variableReplacements": [], "type": "numberentry"}, {"unitTests": [], "maxValue": "x[4]*x[4]", "correctAnswerFraction": false, "minValue": "x[4]*x[4]", "adaptiveMarkingPenalty": 0, "mustBeReducedPC": 0, "customName": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "customMarkingAlgorithm": "", "marks": 1, "mustBeReduced": false, "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "allowFractions": false, "variableReplacements": [], "type": "numberentry"}], "marks": 0, "adaptiveMarkingPenalty": 0, "showCorrectAnswer": true, "customName": "", "useCustomName": false, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "sortAnswers": false, "prompt": "Find the following:
\n$\\var{x[0]}^2 =$ [[0]]
\n$\\var{x[1]}^2 =$ [[1]]
\n$\\var{x[2]}^2 =$ [[2]]
\n$\\var{x[3]}^2 =$ [[3]]
\n$\\var{x[4]}^2 =$ [[4]]
\n", "customMarkingAlgorithm": "", "variableReplacements": [], "type": "gapfill"}, {"variableReplacementStrategy": "originalfirst", "scripts": {}, "unitTests": [], "gaps": [{"unitTests": [], "maxValue": "x[0]*x[0]*x[0]", "correctAnswerFraction": false, "minValue": "x[0]*x[0]*x[0]", "adaptiveMarkingPenalty": 0, "mustBeReducedPC": 0, "customName": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "customMarkingAlgorithm": "", "marks": 1, "mustBeReduced": false, "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "allowFractions": false, "variableReplacements": [], "type": "numberentry"}, {"unitTests": [], "maxValue": "x[1]*x[1]*x[1]", "correctAnswerFraction": false, "minValue": "x[1]*x[1]*x[1]", "adaptiveMarkingPenalty": 0, "mustBeReducedPC": 0, "customName": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "customMarkingAlgorithm": "", "marks": 1, "mustBeReduced": false, "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "allowFractions": false, "variableReplacements": [], "type": "numberentry"}, {"unitTests": [], "maxValue": "x[2]*x[2]*x[2]", "correctAnswerFraction": false, "minValue": "x[2]*x[2]*x[2]", "adaptiveMarkingPenalty": 0, "mustBeReducedPC": 0, "customName": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "customMarkingAlgorithm": "", "marks": 1, "mustBeReduced": false, "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "allowFractions": false, "variableReplacements": [], "type": "numberentry"}, {"unitTests": [], "maxValue": "x[3]*x[3]*x[3]", "correctAnswerFraction": false, "minValue": "x[3]*x[3]*x[3]", "adaptiveMarkingPenalty": 0, "mustBeReducedPC": 0, "customName": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "customMarkingAlgorithm": "", "marks": 1, "mustBeReduced": false, "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "allowFractions": false, "variableReplacements": [], "type": "numberentry"}, {"unitTests": [], "maxValue": "x[4]*x[4]*x[4]", "correctAnswerFraction": false, "minValue": "x[4]*x[4]*x[4]", "adaptiveMarkingPenalty": 0, "mustBeReducedPC": 0, "customName": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "customMarkingAlgorithm": "", "marks": 1, "mustBeReduced": false, "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "allowFractions": false, "variableReplacements": [], "type": "numberentry"}], "marks": 0, "adaptiveMarkingPenalty": 0, "showCorrectAnswer": true, "customName": "", "useCustomName": false, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "sortAnswers": false, "prompt": "Find the following:
\n$\\var{x[0]}^3 =$ [[0]]
\n$\\var{x[1]}^3 =$ [[1]]
\n$\\var{x[2]}^3 =$ [[2]]
\n$\\var{x[3]}^3 =$ [[3]]
\n$\\var{x[4]}^3 =$ [[4]]
", "customMarkingAlgorithm": "", "variableReplacements": [], "type": "gapfill"}, {"variableReplacementStrategy": "originalfirst", "scripts": {}, "unitTests": [], "gaps": [{"unitTests": [], "maxValue": "y^2", "correctAnswerFraction": false, "minValue": "y^2", "adaptiveMarkingPenalty": 0, "mustBeReducedPC": 0, "customName": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "showCorrectAnswer": true, "customMarkingAlgorithm": "", "marks": 1, "mustBeReduced": false, "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "allowFractions": false, "variableReplacements": [], "type": "numberentry"}, {"variableReplacementStrategy": "originalfirst", "scripts": {}, "unitTests": [], "matchMode": "regex", "answer": "{y}|{-y}", "marks": 1, "adaptiveMarkingPenalty": 0, "showCorrectAnswer": true, "customName": "", "useCustomName": false, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "displayAnswer": "{y}", "customMarkingAlgorithm": "", "variableReplacements": [], "type": "patternmatch"}], "marks": 0, "adaptiveMarkingPenalty": 0, "showCorrectAnswer": true, "customName": "", "useCustomName": false, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "sortAnswers": false, "prompt": "Find a square number $y^2$ between $\\var{ly}$ and $\\var{uy}$ and its integer root $y$.
\n$y^2 = $ [[0]]
\n$y = $ [[1]]
", "customMarkingAlgorithm": "", "variableReplacements": [], "type": "gapfill"}], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "Find the squares, and cubes, of some numbers.
\nFinally, find a square number between two given limits.
"}, "variables": {"x3": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "x3", "definition": "random(5..7 except x1 except x2)"}, "y2": {"templateType": "anything", "group": "Ungrouped variables", "description": "Squared number in part c).
", "name": "y2", "definition": "y^2"}, "x": {"templateType": "anything", "group": "Ungrouped variables", "description": "Sorted list of integers from 1 to 12.
", "name": "x", "definition": "sort([x1,x2,x3,x4,x5])"}, "y": {"templateType": "anything", "group": "Ungrouped variables", "description": "Answer to part c).
", "name": "y", "definition": "random(3..12 except x)"}, "uy": {"templateType": "anything", "group": "Ungrouped variables", "description": "Upper bound in part c).
", "name": "uy", "definition": "y2 + 2y - random(2..5)"}, "x1": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "x1", "definition": "random(1..3)"}, "x5": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "x5", "definition": "random(10..12 except x1 except x2 except x3 except x4)"}, "x4": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "x4", "definition": "random(7..10 except x1 except x2 except x3)"}, "x2": {"templateType": "anything", "group": "Ungrouped variables", "description": "", "name": "x2", "definition": "random(3..5 except x1)"}, "ly": {"templateType": "anything", "group": "Ungrouped variables", "description": "Lower bound in part c).
", "name": "ly", "definition": "y2 - 2y + random(2..4)"}}, "name": "Square and cube numbers 1", "rulesets": {}, "preamble": {"css": "", "js": ""}, "variablesTest": {"condition": "", "maxRuns": "1000"}, "ungrouped_variables": ["x1", "x2", "x3", "x4", "x5", "x", "y2", "y", "ly", "uy"], "tags": [], "extensions": [], "type": "question", "contributors": [{"name": "Mario Orsi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/427/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}, {"name": "Leonardo Juliano", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3600/"}]}]}], "contributors": [{"name": "Mario Orsi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/427/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}, {"name": "Leonardo Juliano", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3600/"}]}