// Numbas version: finer_feedback_settings {"name": "Divisibility: 50", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"d0": {"templateType": "anything", "description": "", "name": "d0", "definition": "mod(num,10)", "group": "Ungrouped variables"}, "num": {"templateType": "anything", "description": "", "name": "num", "definition": "if(seed=0, fiver+random(1..49),fiver)", "group": "Ungrouped variables"}, "d1": {"templateType": "anything", "description": "", "name": "d1", "definition": "mod(floor(num/10),10)", "group": "Ungrouped variables"}, "seed": {"templateType": "anything", "description": "", "name": "seed", "definition": "random(0,1)", "group": "Ungrouped variables"}, "fiver": {"templateType": "anything", "description": "", "name": "fiver", "definition": "random(300..2000#50)", "group": "Ungrouped variables"}, "thismany": {"templateType": "anything", "description": "", "name": "thismany", "definition": "num/50", "group": "Ungrouped variables"}}, "parts": [{"scripts": {}, "stepsPenalty": "1", "showFeedbackIcon": true, "showCorrectAnswer": true, "displayColumns": 0, "maxMarks": 0, "choices": ["Yes", "No"], "shuffleChoices": false, "minMarks": 0, "marks": 0, "showCellAnswerState": true, "steps": [{"customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "scripts": {}, "type": "information", "variableReplacements": [], "showFeedbackIcon": true, "marks": 0, "unitTests": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "prompt": "
A number is divisible by $50$ if and only if it ends with the digits $00$ or the digits $50$ (because we need ito to be divisible by $10$ and then after dividing by $10$ it still needs to be divisible by $5$).
\nSince $\\var{num}$ ends with the digits $\\var{d1}\\var{d0}$ it is NOT divisible by $50$.
\nSince $\\var{num}$ ends with the digits $\\var{d1}\\var{d0}$ it is divisible by $50$.
\nTo work out how many fifties are in a number, you could divide by $10$ and then by $5$.
\nFor instance, $\\frac{\\var{num}}{50}=\\frac{\\var{num/10}}{5}$ by crossing off zeros (i.e. dividing top and bottom by $10$), and to divide by $5$ we can double and cross of zeros: $\\frac{\\var{num/10}}{5}=\\frac{\\var{num/5}}{10}=\\var{thismany}$.
\n\n"}], "extendBaseMarkingAlgorithm": true, "type": "1_n_2", "variableReplacements": [], "unitTests": [], "distractors": ["", ""], "displayType": "radiogroup", "matrix": ["seed", "1-seed"], "prompt": "Is $\\var{num}$ divisible by $50$?
", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst"}], "statement": "If you are unsure of how to do a question, click on Show steps to see the full working. Then, once you understand how to do the question, click on Try another question like this one to start again.
", "functions": {}, "extensions": [], "tags": [], "ungrouped_variables": ["seed", "fiver", "num", "thismany", "d1", "d0"], "rulesets": {}, "advice": "", "metadata": {"description": "Is this number divisible by 50? Half the time the number is, half the time it isn't. Steps give the divisibility test and a way to determine the number of fifties.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "name": "Divisibility: 50", "preamble": {"js": "", "css": ""}, "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}