{"base":{"id":"alcm-27-01","subject":"Combined Maths","title":"Factorial and the principles of counting","scene":"alcm","steps":[{"mode":"fig","work":{"title":"Write it like this","lines":["3 shirts and 4 trousers","outfits = 3 × 4 = 12",{"t":"a 4-digit PIN: 10 × 10 × 10 × 10 = 10 000","note":"repetition allowed"},{"t":"no repeated digit: 10 × 9 × 8 × 7 = 5040","note":"one fewer each time"}]},"say":["Tap for examples.","Clothes.","Multiply.","PIN with repeats.","PIN without repeats."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"Multiplication principle","title":"Choices in a row multiply","body":"If one task can be done in m ways and a second, independent task in n ways, both together can be done in m × n ways."},{"mode":"fig","work":{"title":"Write it like this","lines":["travel by 3 buses or 2 trains","ways = 3 + 2 = 5",{"t":"\"and\" → ×,   \"or\" → +","note":"rule of thumb"}]},"say":["Tap for the rule.","Choose one route.","Add.","Remember."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"Addition principle","title":"Either one or the other","body":"If a task can be done in m ways OR in n ways (and not both at once), it can be done in m + n ways. Use \"and → multiply, or → add\"."},{"mode":"fig","work":{"title":"Write it like this","lines":["5! = 5 × 4 × 3 × 2 × 1 = 120","0! = 1",{"t":"n! = n × (n − 1)!","note":"recursive"},{"t":"8!/6! = 8 × 7 = 56","note":"cancel"}]},"say":["Tap for factorials.","Five factorial.","Zero factorial.","A useful rule.","Simplify a ratio."],"actions":[{"id":"step","label":"Show the next step"}],"eyebrow":"Factorial","title":"n! = n(n − 1)(n − 2)…1","body":"n! (n factorial) is the number of ways to arrange n different objects in a line. By definition 0! = 1. Factorials grow very fast."},{"mode":"plot","controls":[{"id":"n","label":"n","min":1,"max":10,"step":1,"value":6}],"view":[0,-100,10.5,4000],"axes":{"xs":1,"ys":500,"xl":"n"},"fns":[{"e":"fact(floor(x))","col":"r","from":1,"to":10.4},{"e":"2^x","col":"b","from":0},{"e":"x^2","col":"g","from":0}],"vl":["n"],"ptitle":"Growth","rows":["n = {n|0}",["n! = {fact(n)|0}","r"],["2ⁿ = {2^n|0}","b"],["n² = {n^2|0}","g"]],"note":"10! = 3 628 800: ten books can be arranged on a shelf in over 3.6 million ways.","st":"n! = {fact(n)|0}","eyebrow":"See it","title":"How fast n! grows","body":"Compare n! with 2ⁿ and n². Move n: factorials overtake every power quickly."},{"mode":"quiz","look":"fig","fig":{"view":[0,0,10,10],"items":[{"k":"txt","p":[5,5],"t":"letters A–E,  3 places,  no repeats","size":84,"col":"v","max":1400}]},"eyebrow":"Check yourself","title":"Count","body":"Multiply the choices.","question":"How many 3-letter codes can be made from A–E with no repeats?","options":["60","125","10"],"answer":0,"right":"Correct. 5 × 4 × 3.","wrong":"Not quite. 5 choices, then 4, then 3."}],"more":[{"type":"cards","id":"detail","eyebrow":"The ideas in detail","title":"Counting in detail","items":[{"tag":"Boxes","title":"The box method","body":"Draw one box for each position and write the number of choices in it, filling restricted positions first. Then multiply. Example: odd 3-digit numbers from 1–6, no repeats: last box 3 choices, then 5, then 4 → 60."},{"tag":"0! = 1","title":"Why zero factorial is 1","body":"There is exactly one way to arrange nothing. Also n! = n × (n − 1)! with n = 1 gives 1! = 1 × 0!, so 0! = 1 keeps the rule working."},{"tag":"Complement","title":"Count what you do not want","body":"Sometimes it is easier to count all cases and subtract the unwanted ones. PINs with at least one repeated digit: 10 000 − 5040 = 4960."}]},{"type":"cards","id":"ideas","eyebrow":"Marks lost in the exam","title":"Common mistakes","items":[{"tag":"Common mistake","title":"Adding when you should multiply","body":"Independent choices made one after another (\"and\") multiply."},{"tag":"Common mistake","title":"Ignoring restrictions","body":"Fill restricted positions (like \"odd\", \"not starting with 0\") first, then the rest."}]},{"type":"quiz","id":"quiz","eyebrow":"Go further","title":"Thirty questions: easy, medium, hard","questions":[{"level":"easy","question":"4! = ?","options":["16","24","10"],"answer":1,"right":"Correct. n! = n(n − 1)…1, 0! = 1.","wrong":"Not quite. Cancel common factorials."},{"level":"easy","question":"6!/4! = ?","options":["2","30","720"],"answer":1,"right":"Correct. n! = n(n − 1)…1, 0! = 1.","wrong":"Not quite. Cancel common factorials."},{"level":"easy","question":"0! = ?","options":["1","0","undefined"],"answer":0,"right":"Correct. n! = n(n − 1)…1, 0! = 1.","wrong":"Not quite. Cancel common factorials."},{"level":"easy","question":"5!/(3! 2!) = ?","options":["20","60","10"],"answer":2,"right":"Correct. n! = n(n − 1)…1, 0! = 1.","wrong":"Not quite. Cancel common factorials."},{"level":"easy","question":"3! × 2! = ?","options":["12","720","5"],"answer":0,"right":"Correct. n! = n(n − 1)…1, 0! = 1.","wrong":"Not quite. Cancel common factorials."},{"level":"easy","question":"A menu has 4 starters and 6 mains. Number of two-course meals?","options":["10","24","6"],"answer":1,"right":"Correct. Multiply for \"and\", add for \"or\".","wrong":"Not quite. Fill boxes left to right."},{"level":"easy","question":"Travel by 3 roads or 2 railways. Number of ways?","options":["6","5","9"],"answer":1,"right":"Correct. Multiply for \"and\", add for \"or\".","wrong":"Not quite. Fill boxes left to right."},{"level":"easy","question":"A coin is tossed 4 times. Outcomes?","options":["8","4","16"],"answer":2,"right":"Correct. Multiply for \"and\", add for \"or\".","wrong":"Not quite. Fill boxes left to right."},{"level":"easy","question":"Number plates with 2 letters (A–Z) then 3 digits, repeats allowed:","options":["676 000","67 600","1 757 600"],"answer":0,"right":"Correct. Multiply for \"and\", add for \"or\".","wrong":"Not quite. Fill boxes left to right."},{"level":"easy","question":"Ways to arrange 5 different books in a row:","options":["25","60","120"],"answer":2,"right":"Correct. Multiply for \"and\", add for \"or\".","wrong":"Not quite. Fill boxes left to right."},{"level":"medium","question":"4-digit numbers from 1–9 with no repeats:","options":["6561","3024","126"],"answer":1,"right":"Correct. Fill the restricted position first.","wrong":"Not quite. Count choices for each box."},{"level":"medium","question":"Even 3-digit numbers from 1, 2, 3, 4, 5 (no repeats):","options":["60","24","48"],"answer":1,"right":"Correct. Fill the restricted position first.","wrong":"Not quite. Count choices for each box."},{"level":"medium","question":"3-digit numbers greater than 400 from 1–6, no repeats:","options":["120","40","60"],"answer":2,"right":"Correct. Fill the restricted position first.","wrong":"Not quite. Count choices for each box."},{"level":"medium","question":"Numbers from 0–9 with 3 different digits (first not 0):","options":["720","648","504"],"answer":1,"right":"Correct. Fill the restricted position first.","wrong":"Not quite. Count choices for each box."},{"level":"medium","question":"Ways for 4 people to sit in 6 chairs in a row:","options":["360","24","1296"],"answer":0,"right":"Correct. Fill the restricted position first.","wrong":"Not quite. Count choices for each box."},{"level":"medium","question":"n! notation: n!/(n − 1)! = ?","options":["n","n − 1","1"],"answer":0,"right":"Correct. Expand and cancel.","wrong":"Not quite. (n + 2)! = (n + 2)(n + 1)n!."},{"level":"medium","question":"n! notation: (n + 1)!/(n − 1)! = ?","options":["n + 1","n²","n(n + 1)"],"answer":2,"right":"Correct. Expand and cancel.","wrong":"Not quite. (n + 2)! = (n + 2)(n + 1)n!."},{"level":"medium","question":"n! notation: Solve n!/(n − 2)! = 30.","options":["n = 5","n = 6","n = 30"],"answer":1,"right":"Correct. Expand and cancel.","wrong":"Not quite. (n + 2)! = (n + 2)(n + 1)n!."},{"level":"medium","question":"n! notation: Solve (n + 2)! = 20 n!.","options":["n = 4","n = 18","n = 3"],"answer":2,"right":"Correct. Expand and cancel.","wrong":"Not quite. (n + 2)! = (n + 2)(n + 1)n!."},{"level":"medium","question":"n! notation: The number of zeros at the end of 10! is…","options":["2","1","10"],"answer":0,"right":"Correct. Expand and cancel.","wrong":"Not quite. (n + 2)! = (n + 2)(n + 1)n!."},{"level":"hard","question":"PINs of 4 digits with at least one repeated digit:","options":["4960","5040","10 000"],"answer":0,"right":"Correct. Use complements and case splits.","wrong":"Not quite. Divisors: (3 + 1)(2 + 1)."},{"level":"hard","question":"Odd 4-digit numbers using 0–9 with no repeats:","options":["2520","2240","4536"],"answer":1,"right":"Correct. Use complements and case splits.","wrong":"Not quite. Divisors: (3 + 1)(2 + 1)."},{"level":"hard","question":"Numbers between 1000 and 9999 with all digits even:","options":["625","256","500"],"answer":2,"right":"Correct. Use complements and case splits.","wrong":"Not quite. Divisors: (3 + 1)(2 + 1)."},{"level":"hard","question":"Ways to choose a president and a secretary from 12 people:","options":["132","66","144"],"answer":0,"right":"Correct. Use complements and case splits.","wrong":"Not quite. Divisors: (3 + 1)(2 + 1)."},{"level":"hard","question":"5 flags of different colours: signals using 1, 2 or 3 flags in a row:","options":["60","85","125"],"answer":1,"right":"Correct. Use complements and case splits.","wrong":"Not quite. Divisors: (3 + 1)(2 + 1)."},{"level":"hard","question":"Number of divisors of 72 (= 2³ × 3²):","options":["6","9","12"],"answer":2,"right":"Correct. Use complements and case splits.","wrong":"Not quite. Divisors: (3 + 1)(2 + 1)."},{"level":"hard","question":"Ways to answer 10 true/false questions:","options":["20","1024","100"],"answer":1,"right":"Correct. Use complements and case splits.","wrong":"Not quite. Divisors: (3 + 1)(2 + 1)."},{"level":"hard","question":"3-digit numbers from 1–5 (repeats allowed) divisible by 5:","options":["25","20","125"],"answer":0,"right":"Correct. Use complements and case splits.","wrong":"Not quite. Divisors: (3 + 1)(2 + 1)."},{"level":"hard","question":"Ways to give 3 different prizes to 5 students (one prize each at most):","options":["60","125","10"],"answer":0,"right":"Correct. Use complements and case splits.","wrong":"Not quite. Divisors: (3 + 1)(2 + 1)."},{"level":"hard","question":"…if a student may win more than one prize:","options":["60","243","125"],"answer":2,"right":"Correct. Use complements and case splits.","wrong":"Not quite. Divisors: (3 + 1)(2 + 1)."}]},{"type":"keywords","id":"words","title":"Key words","items":[{"word":"Multiplication principle","meaning":"Choices in sequence multiply."},{"word":"Addition principle","meaning":"Alternative choices add."},{"word":"Factorial","meaning":"n! = n × (n − 1) × … × 1."},{"word":"Arrangement","meaning":"An ordering of objects."},{"word":"Restriction","meaning":"A condition on some positions."},{"word":"Complement","meaning":"All cases minus unwanted ones."}]},{"type":"checklist","id":"check","title":"I can…","items":["use the multiplication and addition principles","calculate and simplify factorials","count arrangements with restrictions"]},{"type":"sources","id":"sources","title":"Sources","items":["NIE Sri Lanka, G.C.E. (A/L) Combined Mathematics syllabus, Grade 12 and 13, 2017 (competency level I 24.1–24.2)."]}],"slug":"factorial-counting-principles"},"overlay":null}