// Numbas version: exam_results_page_options {"name": "Divisibility: 25", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"tags": [], "parts": [{"variableReplacements": [], "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "prompt": "

Is $\\var{num}$ divisible by $25$?

", "showFeedbackIcon": true, "type": "1_n_2", "showCellAnswerState": true, "unitTests": [], "shuffleChoices": false, "steps": [{"variableReplacements": [], "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "marks": 0, "customMarkingAlgorithm": "", "prompt": "

A numbers is divisible by $25$ if and only if it ends with the two digits $00, \\, 25,\\, 50$ or $75$. 

\n

Since $\\var{num}$ ends with the digits $\\var{d1}\\var{d0}$ it is NOT divisible by $25$.

\n

Since $\\var{num}$ ends with the digits $\\var{d1}\\var{d0}$ it is divisible by $25$.

\n

To work out how many twenty-fives are in a number, you can double the number, double it again, and then cross off the last two zero digits (this works because multiplying by $4$ and then dividing by $100$ is equivalent to dividing by $25$).

\n

For instance, $\\var{num}$ doubles to give $\\var{2*num}$, doubling again gives $\\var{4*num}$ so we can cross of the last two zeros and conclude there are $\\var{thismany}$ twenty-fives in $\\var{num}$. In other words, $\\frac{\\var{num}}{25}=\\var{thismany}$. 

\n

\n

", "unitTests": [], "showFeedbackIcon": true, "type": "information", "showCorrectAnswer": true, "scripts": {}}], "distractors": ["", ""], "matrix": ["seed", "1-seed"], "showCorrectAnswer": true, "minMarks": 0, "displayColumns": 0, "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "displayType": "radiogroup", "maxMarks": 0, "stepsPenalty": "1", "choices": ["Yes", "No"]}], "rulesets": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "

Is this number divisible by 25? 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 twenty-fives.

"}, "advice": "", "variable_groups": [], "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.

", "name": "Divisibility: 25", "ungrouped_variables": ["seed", "twentyfiver", "num", "thismany", "d0", "d1"], "preamble": {"js": "", "css": ""}, "functions": {}, "extensions": [], "variables": {"d0": {"templateType": "anything", "definition": "mod(num,10)", "group": "Ungrouped variables", "name": "d0", "description": ""}, "num": {"templateType": "anything", "definition": "if(seed=0, twentyfiver+random(1..24),twentyfiver)", "group": "Ungrouped variables", "name": "num", "description": ""}, "thismany": {"templateType": "anything", "definition": "num/25", "group": "Ungrouped variables", "name": "thismany", "description": ""}, "seed": {"templateType": "anything", "definition": "random(0,1)", "group": "Ungrouped variables", "name": "seed", "description": ""}, "twentyfiver": {"templateType": "anything", "definition": "random(300..10000#25)", "group": "Ungrouped variables", "name": "twentyfiver", "description": ""}, "d1": {"templateType": "anything", "definition": "mod(floor(num/10),10)", "group": "Ungrouped variables", "name": "d1", "description": ""}}, "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/"}]}