// Numbas version: finer_feedback_settings {"name": "Johan's copy of Multiples and Factors", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"rulesets": {}, "preamble": {"css": "", "js": ""}, "extensions": [], "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "
Multiples, factors, lowest common multiples and highest common factors.
"}, "name": "Johan's copy of Multiples and Factors", "question_groups": [{"pickQuestions": 0, "questions": [], "pickingStrategy": "all-ordered", "name": ""}], "tags": [], "advice": "Multiples are in the times table of the original number (e.g., 10, 15, 20 are multiples of 5 because they are in the 5 times table).
\nFactors multiply together in pairs to give the original number (e.g., the factors of 10 are 1, 2, 5 and 10, because 1x10=10 and 2x5=10.
\nA lowest common multiple (LCM) is the lowest number that is in the times tables of both given numbers (e.g., the LCM of 4 and 6 is 12, because that is the lowest number that the times tables of 4 and 6 have in common).
\nA highest common factors is the highest number that is the list of factors of both given numbers (e.g., the HCF of 10 and 15 is 5, because that is the highest number in both lists of factors).
", "ungrouped_variables": ["hcf2", "lcm2", "a", "b", "c", "product", "answers", "wa1", "wa2", "ca1", "ca2", "d", "f", "g", "h", "j", "k", "l", "lcm", "m", "n", "hcf", "p", "q", "hcf3", "lcm4"], "statement": "Solve the following.
", "showQuestionGroupNames": false, "type": "question", "variables": {"ca1": {"definition": "random(answers)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "ca1"}, "hcf3": {"definition": "gcd(p,q)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "hcf3"}, "lcm4": {"definition": "lcm(p,q)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "lcm4"}, "ca2": {"definition": "random(answers except ca1)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "ca2"}, "lcm2": {"definition": "lcm(n,m)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "lcm2"}, "c": {"definition": "random(5,7)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "c"}, "f": {"definition": "random(2..10)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "f"}, "q": {"definition": "random(4..36 except p)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "q"}, "product": {"definition": "a*b*c", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "product"}, "d": {"definition": "random(1..12)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "d"}, "j": {"definition": "random(1..50 except [d,f,g,h])", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "j"}, "k": {"definition": "random(4..12)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "k"}, "m": {"definition": "random(2..15 except [k,l,lcm])", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "m"}, "hcf": {"definition": "gcd(k,l)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "hcf"}, "hcf2": {"definition": "gcd(n,m)+1", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "hcf2"}, "l": {"definition": "random(4..15 except k)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "l"}, "a": {"definition": "random(1,2,3)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "a"}, "b": {"definition": "random(2,3)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "b"}, "p": {"definition": "random(6..24)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "p"}, "g": {"definition": "random(2..10 except b)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "g"}, "n": {"definition": "random(6..15 except [k,l,lcm,m])", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "n"}, "answers": {"definition": "[a,b,c,a*b,a*c,b*c,1,product]", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "answers"}, "wa2": {"definition": "random(1..product except [a,b,c,a*b,a*c,b*c,1,product,wa1])", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "wa2"}, "lcm": {"definition": "lcm(k,l)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "lcm"}, "wa1": {"definition": "random(1..product except answers)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "wa1"}, "h": {"definition": "random(1..100 except [d,f,g])", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "h"}}, "functions": {}, "parts": [{"maxAnswers": "0", "displayType": "checkbox", "scripts": {}, "maxMarks": 0, "marks": 0, "showCorrectAnswer": true, "warningType": "warn", "minAnswers": 0, "distractors": ["", "", "", ""], "displayColumns": 0, "variableReplacements": [], "choices": ["$\\var{ca1}$
", "$\\var{ca2}$
", "$\\var{wa1}$
", "$\\var{wa2}$
"], "variableReplacementStrategy": "originalfirst", "prompt": "Choose all of the factors of $\\var{product}$.
", "type": "m_n_2", "matrix": ["1", "1", 0, 0], "shuffleChoices": true, "minMarks": 0}, {"maxAnswers": "0", "displayType": "checkbox", "scripts": {}, "maxMarks": "2", "marks": 0, "showCorrectAnswer": true, "warningType": "none", "minAnswers": 0, "distractors": ["", "", "", ""], "displayColumns": 0, "variableReplacements": [], "choices": ["$\\var{h}$
", "$\\var{d*f}$
", "$\\var{d*g}$
", "$\\var{j}$
"], "variableReplacementStrategy": "originalfirst", "prompt": "Choose all of the multiples of $\\var{d}$.
", "type": "m_n_2", "matrix": [0, "1", "1", 0], "shuffleChoices": true, "minMarks": 0}, {"showCorrectAnswer": true, "scripts": {}, "maxMarks": 0, "type": "1_n_2", "distractors": ["", "", "", ""], "displayColumns": 0, "displayType": "radiogroup", "variableReplacements": [], "choices": ["$\\var{lcm}$
", "$\\var{lcm2}$
", "$\\var{hcf}$
", "$\\var{hcf+1}$
"], "variableReplacementStrategy": "originalfirst", "prompt": "Give the lowest common multiple of $\\var{k}$ and $\\var{l}$.
", "marks": 0, "matrix": ["1", 0, 0, 0], "shuffleChoices": true, "minMarks": 0}, {"showCorrectAnswer": true, "scripts": {}, "maxMarks": 0, "type": "1_n_2", "distractors": ["", "", "", ""], "displayColumns": 0, "displayType": "radiogroup", "variableReplacements": [], "choices": ["$\\var{hcf3}$
", "$\\var{hcf2}$
", "$\\var{lcm4}$
", "$\\var{lcm}$
"], "variableReplacementStrategy": "originalfirst", "prompt": "Give the highest common factor of $\\var{p}$ and $\\var{q}$.
", "marks": 0, "matrix": ["1", 0, 0, 0], "shuffleChoices": false, "minMarks": 0}], "variable_groups": [], "variablesTest": {"condition": "", "maxRuns": 100}, "contributors": [{"name": "Johan Maertens", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1301/"}]}]}], "contributors": [{"name": "Johan Maertens", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1301/"}]}