// Numbas version: exam_results_page_options {"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": "

a)

\n

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.

\n

Here:

\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

\n

b)

\n

Cubed integers are called cubed numbers. To obtain these, we would typically always use a calculator.

\n

We 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}\\]

\n

or 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

\n

c)

\n

Here is a table of square numbers for integers from $1$ to $15$:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$y$$1$$2$$3$$4$$5$$6$$7$$8$$9$$10$$11$$12$$13$$14$$15$
$y^2$$1$$4$$9$$16$$25$$36$$49$$64$$81$$100$$121$$144$$169$$196$$225$
\n

The only square number between $\\var{ly}$ and $\\var{uy}$ is $\\var{y2}$.

\n

To calculate $y$ we must calculate the square root of $y^2$,

\n

\\[ \\sqrt{\\var{y2}} = \\var{y} \\text{.}\\]

\n

This 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.

\n

Finally, 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": [], "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/"}]}